@@ -14,58 +14,55 @@ provisioner:
14
14
custom_pre_apply_command : ' cp -r /tmp/modules/* /tmp/kitchen/modules/'
15
15
16
16
platforms :
17
- - name : centos-7-puppet-5
18
- driver_config :
19
- # we use a custom image that runs systemd
20
- image : ' datadog/docker-library:chef_kitchen_systemd_centos_7'
21
- run_command : /root/start.sh
17
+ - name : ubuntu-24.04-puppet-8
22
18
driver :
19
+ image : ' ubuntu:24.04'
23
20
provision_command :
24
- - rpm -ivh http://yum.puppetlabs.com/puppet5-release-el-7.noarch.rpm # installs the puppet-agent repo
25
- - yum install -y puppet-agent rubygems
21
+ - apt-get install -y apt-utils apt-transport-https ca-certificates
22
+ - wget https://apt.puppet.com/puppet8-release-noble.deb
23
+ - dpkg -i puppet8-release-noble.deb # installs the puppet-agent repo
24
+ - apt-get update
25
+ - apt-get install -y puppet-agent rubygems ruby-dev make gcc
26
26
- ln -s /opt/puppetlabs/bin/puppet /usr/bin/puppet
27
27
28
28
- mkdir /home/kitchen/puppet
29
29
- printf <%= File.read('environments/etc/Puppetfile').inspect %> > /home/kitchen/puppet/Puppetfile
30
30
- printf <%= File.read('environments/etc/Gemfile').inspect %> > /home/Gemfile
31
31
32
32
- gem install bundler -v '= 2.4.13'
33
- # we use bundle to install gems and to lock dependencies versions of semantic_puppet and multipart-post
34
33
- cd /home && bundle install
35
34
- cd /home/kitchen/puppet && r10k puppetfile install --moduledir=/tmp/modules
36
35
37
- - name : rocky-8-puppet-5
38
- driver_config :
39
- # we use a custom image that runs systemd
40
- image : ' datadog/docker-library:chef_kitchen_systemd_rocky_8'
41
- platform : rhel # kitchen-docker doesn't recognize rocky otherwise
42
- run_command : /root/start.sh
36
+ - name : ubuntu-22.04-puppet-8
43
37
driver :
38
+ image : ' ubuntu:22.04'
44
39
provision_command :
45
- - dnf install -y https://yum.puppetlabs.com/puppet7-release-el-8.noarch.rpm # installs the puppet-agent repo
46
- - dnf install -y puppet-agent rubygems
40
+ - apt-get update
41
+ - apt-get install -y apt-utils apt-transport-https ca-certificates wget
42
+ - wget https://apt.puppet.com/puppet8-release-jammy.deb
43
+ - dpkg -i puppet8-release-jammy.deb # installs the puppet-agent repo
44
+ - apt-get update
45
+ - apt-get install -y puppet-agent rubygems ruby-dev make gcc
47
46
- ln -s /opt/puppetlabs/bin/puppet /usr/bin/puppet
48
47
49
- - mkdir /home/kitchen/puppet
48
+ - mkdir /home/kitchen/puppet -p
50
49
- printf <%= File.read('environments/etc/Puppetfile').inspect %> > /home/kitchen/puppet/Puppetfile
51
50
- printf <%= File.read('environments/etc/Gemfile').inspect %> > /home/Gemfile
52
51
53
52
- gem install bundler -v '= 2.4.13'
54
-
55
53
- cd /home && bundle install
56
54
- cd /home/kitchen/puppet && r10k puppetfile install --moduledir=/tmp/modules
57
55
58
- - name : ubuntu-1604-puppet-6
59
- driver_config :
60
- # we use the official image
61
- image : ' ubuntu:16.04'
56
+ - name : ubuntu-20.04-puppet-8
62
57
driver :
58
+ image : ' ubuntu:20.04'
59
+ docker_platform : linux/amd64
63
60
provision_command :
64
- - apt-get install -y apt-utils apt-transport-https ca-certificates
65
- - wget https://apt.puppetlabs .com/puppet6 -release-xenial .deb
66
- - dpkg -i puppet6 -release-xenial .deb # installs the puppet-agent repo
61
+ - apt-get install -y apt-utils apt-transport-https ca-certificates make gcc
62
+ - wget https://apt.puppet .com/puppet8 -release-focal .deb
63
+ - dpkg -i puppet8 -release-focal .deb # installs the puppet-agent repo
67
64
- apt-get update
68
- - apt-get install -y puppet-agent rubygems
65
+ - apt-get install -y puppet-agent rubygems ruby-dev
69
66
- ln -s /opt/puppetlabs/bin/puppet /usr/bin/puppet
70
67
71
68
- mkdir /home/kitchen/puppet
@@ -76,40 +73,99 @@ platforms:
76
73
- cd /home && bundle install
77
74
- cd /home/kitchen/puppet && r10k puppetfile install --moduledir=/tmp/modules
78
75
79
- - name : opensuse/leap-15
80
- # Workaround for flakes on initializing opensuse/leap-15:
81
- # => SCP did not finish successfully (255): (Net::SCP::Error)
82
- transport :
83
- max_ssh_sessions : 1
84
- driver_config :
85
- # we use a custom image that runs systemd
86
- image : ' datadog/docker-library:chef_kitchen_systemd_opensuse_leap_15'
87
- run_command : /root/start.sh
88
-
76
+ # mirrorlist.centos.org is no longer available for <= centos8/centos-stream8
77
+ # - name: centos-stream8-puppet-8
78
+ # driver_config:
79
+ # image: 'quay.io/centos/centos:stream9'
80
+ # platform: centosstream
81
+ # driver:
82
+ # use_sudo: true
83
+ # privileged: true
84
+ # provision_command:
85
+ # - rpm -Uvh https://yum.puppet.com/puppet8-release-el-8.noarch.rpm #installs the puppet-agent repo
86
+ # - yum install -y puppet-agent rubygems ruby-devel make gcc
87
+ # - ln -s /opt/puppetlabs/bin/puppet /usr/bin/puppet
88
+
89
+ # - mkdir /home/kitchen/puppet -p
90
+ # - printf <%= File.read('environments/etc/Puppetfile').inspect %> > /home/kitchen/puppet/Puppetfile
91
+ # - printf <%= File.read('environments/etc/Gemfile').inspect %> > /home/Gemfile
92
+
93
+ # - gem install bundler -v '= 2.4.13'
94
+ # # we use bundle to install gems and to lock dependencies versions of semantic_puppet and multipart-post
95
+ # - cd /home && bundle install
96
+ # - cd /home/kitchen/puppet && r10k puppetfile install --moduledir=/tmp/modules
97
+
98
+ - name : centos-stream9-puppet-8
89
99
driver :
100
+ image : ' quay.io/centos/centos:stream9'
101
+ platform : centosstream
102
+ use_sudo : true
103
+ privileged : true
90
104
provision_command :
91
- - zypper ar -G https://yum.puppet.com/puppet/sles/15/x86_64/ puppet-repo
92
- - zypper install -y puppet-agent ruby=2.5
105
+ - rpm -Uvh https://yum.puppet.com/puppet8-release-el-9.noarch.rpm # installs the puppet-agent repo
106
+ - yum install -y puppet-agent rubygems ruby-devel
107
+ - dnf group install -y "Development Tools"
108
+ - ln -s /opt/puppetlabs/bin/puppet /usr/bin/puppet
109
+
110
+ - mkdir /home/kitchen/puppet -p
111
+ - printf <%= File.read('environments/etc/Puppetfile').inspect %> > /home/kitchen/puppet/Puppetfile
112
+ - printf <%= File.read('environments/etc/Gemfile').inspect %> > /home/Gemfile
113
+
93
114
- gem install bundler -v '= 2.4.13'
94
- - gem install net-ssh -v '= 6.1.0'
95
- - gem install rspec-its -v '= 1.3.1'
96
- - gem install serverspec rspec
97
- - ln -s /usr/bin/rspec.ruby2.5 /usr/bin/rspec
98
- - ln -s /opt/puppetlabs/puppet/bin/puppet /usr/bin/puppet
115
+ # we use bundle to install gems and to lock dependencies versions of semantic_puppet and multipart-post
116
+ - cd /home && bundle install
117
+ - cd /home/kitchen/puppet && r10k puppetfile install --moduledir=/tmp/modules
118
+
119
+ - name : rocky-9-puppet-8
120
+ driver :
121
+ image : ' rockylinux:9.3'
122
+ platform : centosstream # kitchen-docker has issues installing packages otherwises
123
+ provision_command :
124
+ - dnf install -y https://yum.puppet.com/puppet8-release-el-9.noarch.rpm # installs the puppet-agent repo
125
+ - dnf install -y puppet-agent rubygems ruby-devel
126
+ - dnf group install -y "Development Tools"
127
+ - ln -s /opt/puppetlabs/bin/puppet /usr/bin/puppet
128
+
99
129
- mkdir /home/kitchen/puppet
100
130
- printf <%= File.read('environments/etc/Puppetfile').inspect %> > /home/kitchen/puppet/Puppetfile
101
131
- printf <%= File.read('environments/etc/Gemfile').inspect %> > /home/Gemfile
102
132
103
- - cd /home && bundle.ruby2.5 install
133
+ - gem install bundler -v '= 2.4.13'
134
+
135
+ - cd /home && bundle install
104
136
- cd /home/kitchen/puppet && r10k puppetfile install --moduledir=/tmp/modules
105
137
106
- verifier :
107
- name : serverspec
138
+ # - name: opensuse/leap-15
139
+ # # Workaround for flakes on initializing opensuse/leap-15:
140
+ # # => SCP did not finish successfully (255): (Net::SCP::Error)
141
+ # transport:
142
+ # max_ssh_sessions: 1
143
+ # driver_config:
144
+ # # we use a custom image that runs systemd
145
+ # image: 'datadog/docker-library:chef_kitchen_systemd_opensuse_leap_15'
146
+ # run_command: /root/start.sh
147
+ # driver:
148
+ # provision_command:
149
+ # - zypper ar -G https://yum.puppet.com/puppet/sles/15/x86_64/ puppet-repo
150
+ # - zypper install -y puppet-agent ruby=2.5
151
+ # - gem install bundler -v '= 1.17.3'
152
+ # - gem install net-ssh -v '= 6.1.0'
153
+ # - gem install rspec-its -v '= 1.3.1'
154
+ # - gem install serverspec rspec
155
+ # - ln -s /usr/bin/rspec.ruby2.5 /usr/bin/rspec
156
+ # - ln -s /opt/puppetlabs/puppet/bin/puppet /usr/bin/puppet
157
+ # - mkdir /home/kitchen/puppet
158
+ # - printf <%= File.read('environments/etc/Puppetfile').inspect %> > /home/kitchen/puppet/Puppetfile
159
+ # - printf <%= File.read('environments/etc/Gemfile').inspect %> > /home/Gemfile
160
+
161
+ # - cd /home && bundle.ruby2.5 install
162
+ # - cd /home/kitchen/puppet && r10k puppetfile install --moduledir=/tmp/modules
108
163
109
164
suites :
110
165
- name : dd-agent
111
166
manifests : init.pp
112
167
verifier :
168
+ name : serverspec
113
169
default_pattern : true
114
170
additional_install_commmand : source /etc/profile.d/rvm.sh
115
171
env_vars :
@@ -122,6 +178,7 @@ suites:
122
178
provisioner :
123
179
manifests_path : environments/etc/installer-manifests
124
180
verifier :
181
+ name : serverspec
125
182
default_pattern : true
126
183
additional_install_commmand : source /etc/profile.d/rvm.sh
127
184
env_vars :
0 commit comments