You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
2.9KB

  1. ---
  2. driver:
  3. name: "ec2"
  4. associate_public_ip: true
  5. interface: "public"
  6. region: "us-east-1"
  7. require_chef_omnibus: false
  8. transport:
  9. name: "ssh"
  10. username: "ec2-user"
  11. connection_retries: 5
  12. connection_retry_sleep: 30
  13. max_wait_until_ready: 300
  14. # BUG Related to https://github.com/test-kitchen/test-kitchen/pull/1047
  15. max_ssh_sessions: 2
  16. provisioner:
  17. name: "ansible_playbook"
  18. hosts: "all"
  19. ansible_connection: "local"
  20. ansible_verbose: false
  21. ansible_verbosity: 2
  22. # Upgrading pip outside of the package manager is an ugly hack.
  23. # It's mandatory because of pip cryptography: https://github.com/pyca/cryptography/issues/5753
  24. # Another workaround would be to pip3 install cryptography==3.3.2
  25. custom_pre_install_command: "sudo yum install -y python3-pip && sudo python3 -m pip install --prefix='/usr' -U pip"
  26. require_pip3: true
  27. ansible_binary_path: "/usr/local/bin"
  28. ansible_version: "2.9.17"
  29. idempotency_test: true
  30. idempotency_skip_tags: ["kitchen_idempotency_skip_tag"]
  31. require_chef_for_busser: false
  32. require_ruby_for_busser: false
  33. role_name: "ansible-role-docker"
  34. roles_path: "."
  35. platforms:
  36. - name: "rhel-7"
  37. driver:
  38. instance_type: "t3.small"
  39. image_search:
  40. name: "RHEL-7.*_HVM_GA*"
  41. owner-id: "309956199498"
  42. tags:
  43. Name: "tk-ansible-role-docker-rhel"
  44. kitchen: "true"
  45. packer: "true"
  46. block_device_mappings:
  47. - device_name: "/dev/sda1"
  48. ebs:
  49. volume_type: "gp2"
  50. volume_size: 15
  51. delete_on_termination: true
  52. - name: "centos-7"
  53. driver:
  54. image_search:
  55. name: "CentOS Linux 7*"
  56. owner-id: "679593333241"
  57. product-code: "aw0evgkw8e5c1q413zgy5pjce"
  58. instance_type: "t3.small"
  59. tags:
  60. Name: "tk-ansible-role-docker-centos"
  61. kitchen: "true"
  62. packer: "true"
  63. transport:
  64. username: "centos"
  65. - name: "amazon2-2019"
  66. driver:
  67. instance_type: "t3.small"
  68. tags:
  69. Name: "tk-ansible-role-docker-amazon"
  70. kitchen: "true"
  71. packer: "true"
  72. verifier:
  73. name: inspec
  74. sudo: true
  75. reporter:
  76. - cli
  77. - junit:%{platform}_%{suite}_inspec.xml
  78. suites:
  79. - name: "rhel"
  80. includes:
  81. - "rhel-7"
  82. provisioner:
  83. name: "ansible_playbook"
  84. playbook: "tests/test.yml"
  85. extra_vars:
  86. rhel_docker_repo_workaround: true
  87. verifier:
  88. inspec_tests:
  89. - name: local
  90. path: test/integration/default/rhel.rb
  91. - name: "centos"
  92. includes:
  93. - "centos-7"
  94. provisioner:
  95. name: "ansible_playbook"
  96. playbook: "tests/test.yml"
  97. verifier:
  98. inspec_tests:
  99. - name: local
  100. path: test/integration/default/centos.rb
  101. - name: "amazon"
  102. includes:
  103. - "amazon2-2019"
  104. provisioner:
  105. name: "ansible_playbook"
  106. playbook: "tests/test.yml"
  107. verifier:
  108. inspec_tests:
  109. - name: local
  110. path: test/integration/default/amazon.rb