molecule.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ---
  2. scenario:
  3. name: amazonlinux
  4. dependency:
  5. name: galaxy
  6. driver:
  7. name: docker
  8. lint:
  9. name: yamllint
  10. platforms:
  11. - name: amazonlinux-1
  12. image: dokken/amazonlinux
  13. command: /sbin/init
  14. capabilities:
  15. - SYS_ADMIN
  16. groups:
  17. - sensu_checks
  18. - name: amazonlinux-2
  19. image: dokken/amazonlinux-2
  20. command: /usr/lib/systemd/systemd
  21. capabilities:
  22. - SYS_ADMIN
  23. groups:
  24. - sensu_checks
  25. volumes:
  26. - /sys/fs/cgroup:/sys/fs/cgroup:ro
  27. provisioner:
  28. name: ansible
  29. config_options:
  30. defaults:
  31. callback_whitelist: timer,profile_tasks
  32. fact_caching: jsonfile
  33. fact_caching_connection: ./cache
  34. poll_interval: 3
  35. forks: 100
  36. connection:
  37. pipelining: true
  38. playbooks:
  39. prepare: ../shared/prepare.yml
  40. create: ../shared/create.yml
  41. destroy: ../shared/destroy.yml
  42. converge: ../shared/playbook.yml
  43. verify: ../shared/verify.yml
  44. lint:
  45. name: ansible-lint
  46. inventory:
  47. group_vars:
  48. all:
  49. sensu_master: true
  50. sensu_include_dashboard: true
  51. sensu_rabbitmq_server: true
  52. sensu_redis_server: true
  53. sensu_rabbitmq_host: "{{ ansible_hostname }}"
  54. sensu_redis_host: "{{ ansible_hostname }}"
  55. sensu_api_host: "{{ ansible_hostname }}"
  56. ansible_default_ipv4:
  57. address: 127.0.0.1
  58. sensu_remote_plugins:
  59. - sensu-plugins-disk-checks
  60. sensu_check_interval: 60
  61. host_vars:
  62. amazonlinux-1:
  63. inspec_version: el6
  64. amazonlinux-2:
  65. inspec_version: el7
  66. verifier:
  67. name: inspec
  68. directory: ../shared/tests/
  69. lint:
  70. name: rubocop