molecule.yml 1.7 KB

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