molecule.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ---
  2. scenario:
  3. name: ubuntu
  4. dependency:
  5. name: galaxy
  6. driver:
  7. name: docker
  8. lint:
  9. name: yamllint
  10. enabled: True
  11. platforms:
  12. - name: ubuntu-14.04
  13. image: dokken/ubuntu-14.04
  14. command: /sbin/init
  15. capabilities:
  16. - SYS_ADMIN
  17. - name: ubuntu-16.04
  18. image: dokken/ubuntu-16.04
  19. command: /bin/systemd
  20. capabilities:
  21. - SYS_ADMIN
  22. volumes:
  23. - /sys/fs/cgroup:/sys/fs/cgroup:ro
  24. # Disabled for now, missing Sensu and RabbitMQ packages, total mess to override in tests
  25. # - name: ubuntu-18.04
  26. # image: dokken/ubuntu-18.04
  27. # command: /bin/systemd
  28. # capabilities:
  29. # - SYS_ADMIN
  30. # volumes:
  31. # - /sys/fs/cgroup:/sys/fs/cgroup:ro
  32. provisioner:
  33. name: ansible
  34. config_options:
  35. defaults:
  36. callback_whitelist: timer,profile_tasks
  37. fact_caching: jsonfile
  38. fact_caching_connection: ./cache
  39. poll_interval: 3
  40. forks: 100
  41. connection:
  42. pipelining: true
  43. playbooks:
  44. prepare: ../shared/prepare.yml
  45. create: ../shared/create.yml
  46. destroy: ../shared/destroy.yml
  47. converge: ../shared/playbook.yml
  48. verify: ../shared/verify.yml
  49. lint:
  50. name: ansible-lint
  51. enabled: True
  52. inventory:
  53. group_vars:
  54. all:
  55. sensu_master: true
  56. sensu_include_dashboard: true
  57. rabbitmq_server: true
  58. redis_server: true
  59. rabbitmq_host: "{{ ansible_hostname }}"
  60. redis_host: "{{ ansible_hostname }}"
  61. sensu_api_host: "{{ ansible_hostname }}"
  62. ansible_default_ipv4:
  63. address: 127.0.0.1
  64. host_vars:
  65. ubuntu-14.04:
  66. inspec_download_url: https://packages.chef.io/files/stable/inspec/2.1.68/ubuntu/14.04/inspec_2.1.68-1_amd64.deb
  67. inspec_download_sha256sum: bb411271af5275c26f0129a61230a1080d22a6e99eb0f1b52223ee9d55827375
  68. ubuntu-16.04:
  69. inspec_download_url: https://packages.chef.io/files/stable/inspec/2.1.68/ubuntu/16.04/inspec_2.1.68-1_amd64.deb
  70. inspec_download_sha256sum: bb411271af5275c26f0129a61230a1080d22a6e99eb0f1b52223ee9d55827375
  71. ubuntu-18.04:
  72. inspec_download_url: https://packages.chef.io/files/stable/inspec/2.1.68/ubuntu/18.04/inspec_2.1.68-1_amd64.deb
  73. inspec_download_sha256sum: bb411271af5275c26f0129a61230a1080d22a6e99eb0f1b52223ee9d55827375
  74. verifier:
  75. name: inspec
  76. directory: ../shared/tests/
  77. lint:
  78. name: rubocop
  79. enabled: true