Mount EFS volume for CentOS / RHEL / Amazon Linux 2 / Debian.
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.

112 lines
2.7KB

  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-aws-efs"
  34. roles_path: "."
  35. platforms:
  36. - name: "rhel-7"
  37. driver:
  38. instance_type: "t3.small"
  39. tags:
  40. Name: "tk-ansible-role-aws-efs"
  41. kitchen: "true"
  42. packer: "true"
  43. block_device_mappings:
  44. - device_name: "/dev/sda1"
  45. ebs:
  46. volume_type: "gp2"
  47. volume_size: 15
  48. delete_on_termination: true
  49. - name: "centos-7"
  50. driver:
  51. image_search:
  52. name: "CentOS Linux 7*"
  53. owner-id: "679593333241"
  54. product-code: "aw0evgkw8e5c1q413zgy5pjce"
  55. instance_type: "t3.small"
  56. tags:
  57. Name: "tk-ansible-role-aws-efs"
  58. kitchen: "true"
  59. packer: "true"
  60. transport:
  61. username: "centos"
  62. - name: "amazon2-2019"
  63. driver:
  64. instance_type: "t3.small"
  65. tags:
  66. Name: "tk-ansible-role-aws-efs"
  67. kitchen: "true"
  68. packer: "true"
  69. verifier:
  70. name: inspec
  71. sudo: true
  72. reporter:
  73. - cli
  74. - junit:%{platform}_%{suite}_inspec.xml
  75. suites:
  76. - name: "rhel"
  77. includes:
  78. - "rhel-7"
  79. provisioner:
  80. name: "ansible_playbook"
  81. playbook: "tests/test.yml"
  82. verifier:
  83. inspec_tests:
  84. - name: local
  85. path: test/integration/default/
  86. - name: "centos"
  87. includes:
  88. - "centos-7"
  89. provisioner:
  90. name: "ansible_playbook"
  91. playbook: "tests/test.yml"
  92. verifier:
  93. inspec_tests:
  94. - name: local
  95. path: test/integration/default/
  96. - name: "amazon"
  97. includes:
  98. - "amazon2-2019"
  99. provisioner:
  100. name: "ansible_playbook"
  101. playbook: "tests/test.yml"
  102. verifier:
  103. inspec_tests:
  104. - name: local
  105. path: test/integration/default/