|
| 1 | +--- |
| 2 | +driver: |
| 3 | + name: docker |
| 4 | + |
| 5 | +provisioner: |
| 6 | + name: puppet_apply |
| 7 | + manifests_path: environments/etc/manifests |
| 8 | + modules_path: /tmp/modules |
| 9 | + require_puppet_repo: true |
| 10 | + require_chef_for_busser: false |
| 11 | + puppet_debug: true |
| 12 | + puppet_verbose: true |
| 13 | + custom_pre_apply_command: 'cp -r /tmp/modules/* /tmp/kitchen/modules/' |
| 14 | + |
| 15 | +platforms: |
| 16 | + - name: centos-7 |
| 17 | + driver_config: |
| 18 | + # we use a custom image that runs systemd |
| 19 | + image: 'datadog/docker-library:chef_kitchen_systemd_centos_7' |
| 20 | + run_command: /root/start.sh |
| 21 | + |
| 22 | + driver: |
| 23 | + provision_command: |
| 24 | + - rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm |
| 25 | + - yum install -y puppet |
| 26 | + |
| 27 | + - mkdir /home/kitchen/puppet |
| 28 | + - printf <%= File.read('environments/etc/Puppetfile').inspect %> > /home/kitchen/puppet/Puppetfile |
| 29 | + |
| 30 | + - gem install r10k -v 2.6.7 |
| 31 | + - cd /home/kitchen/puppet && r10k puppetfile install --moduledir=/tmp/modules |
| 32 | + |
| 33 | + - name: centos-8 |
| 34 | + driver_config: |
| 35 | + # we use a custom image that runs systemd |
| 36 | + image: 'datadog/docker-library:chef_kitchen_systemd_centos_8' |
| 37 | + run_command: /root/start.sh |
| 38 | + |
| 39 | + driver: |
| 40 | + provision_command: |
| 41 | + - dnf install -y https://yum.puppetlabs.com/puppet-release-el-8.noarch.rpm |
| 42 | + - dnf install -y puppet |
| 43 | + |
| 44 | + - mkdir /home/kitchen/puppet |
| 45 | + - printf <%= File.read('environments/etc/Puppetfile').inspect %> > /home/kitchen/puppet/Puppetfile |
| 46 | + |
| 47 | + - gem install r10k -v 2.6.7 |
| 48 | + - cd /home/kitchen/puppet && r10k puppetfile install --moduledir=/tmp/modules |
| 49 | + |
| 50 | + - name: ubuntu-16.04 # we use the official image |
| 51 | + driver: |
| 52 | + provision_command: |
| 53 | + - apt-get install -y apt-utils apt-transport-https ca-certificates |
| 54 | + - wget https://apt.puppetlabs.com/puppet6-release-xenial.deb |
| 55 | + - dpkg -i puppet6-release-xenial.deb |
| 56 | + - apt-get install -y puppet |
| 57 | + |
| 58 | + - mkdir /home/kitchen/puppet |
| 59 | + - printf <%= File.read('environments/etc/Puppetfile').inspect %> > /home/kitchen/puppet/Puppetfile |
| 60 | + |
| 61 | + - gem install r10k -v 2.6.7 |
| 62 | + - cd /home/kitchen/puppet && r10k puppetfile install --moduledir=/tmp/modules |
| 63 | + |
| 64 | +verifier: |
| 65 | + name: serverspec |
| 66 | + |
| 67 | +suites: |
| 68 | + - name: dd-agent |
| 69 | + manifests: init.pp |
| 70 | + verifier: |
| 71 | + default_pattern: true |
| 72 | + additional_install_commmand: source /etc/profile.d/rvm.sh |
| 73 | + env_vars: |
| 74 | + TARGET_HOST: 127.0.0.1 |
| 75 | + TARGET_PORT: 2222 |
| 76 | + LOGIN_USER: root |
| 77 | + LOGIN_PASSWORD: puppet |
0 commit comments