Skip to content

Commit c475e4b

Browse files
committed
Fix CI
1 parent 95e9545 commit c475e4b

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ jobs:
6464
include: ${{fromJson(needs.setup_matrix.outputs.github_action_test_matrix)}}
6565
name: ${{ matrix.puppet.name }} - ${{ matrix.setfile.name }}
6666
steps:
67+
- name: Enable IPv6 on docker
68+
run: |
69+
echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
70+
sudo service docker restart
6771
- uses: actions/checkout@v2
6872
- name: Setup ruby
6973
uses: ruby/setup-ruby@v1

spec/classes/enterprise_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
end
8686

8787
it_behaves_like 'splunk enterprise nix defaults'
88-
it { is_expected.to contain_package('net-tools').with(ensure: 'present') }
88+
it { is_expected.to contain_package('net-tools').with(ensure: 'installed') }
8989
it { is_expected.to contain_class('splunk::enterprise').with(service_name: 'splunk') }
9090
it { is_expected.not_to contain_file('/etc/init.d/splunk').with(ensure: 'absent') }
9191
it { is_expected.to contain_exec('stop_splunk').with(command: '/opt/splunk/bin/splunk stop') }
@@ -123,7 +123,7 @@
123123
end
124124

125125
it_behaves_like 'splunk enterprise nix defaults'
126-
it { is_expected.not_to contain_package('net-tools').with(ensure: 'present') }
126+
it { is_expected.not_to contain_package('net-tools').with(ensure: 'installed') }
127127
it { is_expected.to contain_class('splunk::enterprise').with(service_name: 'splunk') }
128128
it { is_expected.not_to contain_file('/etc/init.d/splunk').with(ensure: 'absent') }
129129
it { is_expected.to contain_exec('stop_splunk').with(command: '/opt/splunk/bin/splunk stop') }
@@ -161,7 +161,7 @@
161161
end
162162

163163
it_behaves_like 'splunk enterprise nix defaults'
164-
it { is_expected.to contain_package('net-tools').with(ensure: 'present') }
164+
it { is_expected.to contain_package('net-tools').with(ensure: 'installed') }
165165
it { is_expected.to contain_class('splunk::enterprise').with(service_name: 'Splunkd') }
166166
it { is_expected.to contain_file('/etc/init.d/splunk').with(ensure: 'absent') }
167167
it { is_expected.to contain_exec('stop_splunk').with(command: '/opt/splunk/bin/splunk stop') }
@@ -211,7 +211,7 @@
211211
end
212212

213213
it_behaves_like 'splunk enterprise nix defaults'
214-
it { is_expected.not_to contain_package('net-tools').with(ensure: 'present') }
214+
it { is_expected.not_to contain_package('net-tools').with(ensure: 'installed') }
215215
it { is_expected.to contain_class('splunk::enterprise').with(service_name: 'splunk') }
216216
it { is_expected.not_to contain_file('/etc/init.d/splunk').with(ensure: 'absent') }
217217
it { is_expected.to contain_exec('stop_splunk').with(command: '/opt/splunk/bin/splunk stop') }
@@ -255,7 +255,7 @@
255255
end
256256

257257
it_behaves_like 'splunk enterprise nix defaults'
258-
it { is_expected.to contain_package('net-tools').with(ensure: 'present') }
258+
it { is_expected.to contain_package('net-tools').with(ensure: 'installed') }
259259
it { is_expected.to contain_class('splunk::enterprise').with(service_name: 'splunk') }
260260
it { is_expected.not_to contain_file('/etc/init.d/splunk').with(ensure: 'absent') }
261261
it { is_expected.not_to contain_exec('stop_splunk') }
@@ -293,7 +293,7 @@
293293
end
294294

295295
it_behaves_like 'splunk enterprise nix defaults'
296-
it { is_expected.not_to contain_package('net-tools').with(ensure: 'present') }
296+
it { is_expected.not_to contain_package('net-tools').with(ensure: 'installed') }
297297
it { is_expected.to contain_class('splunk::enterprise').with(service_name: 'splunk') }
298298
it { is_expected.not_to contain_file('/etc/init.d/splunk').with(ensure: 'absent') }
299299
it { is_expected.not_to contain_exec('stop_splunk') }
@@ -331,7 +331,7 @@
331331
end
332332

333333
it_behaves_like 'splunk enterprise nix defaults'
334-
it { is_expected.to contain_package('net-tools').with(ensure: 'present') }
334+
it { is_expected.to contain_package('net-tools').with(ensure: 'installed') }
335335
it { is_expected.to contain_class('splunk::enterprise').with(service_name: 'Splunkd') }
336336
it { is_expected.to contain_file('/etc/init.d/splunk').with(ensure: 'absent') }
337337
it { is_expected.not_to contain_exec('stop_splunk') }
@@ -369,7 +369,7 @@
369369
end
370370

371371
it_behaves_like 'splunk enterprise nix defaults'
372-
it { is_expected.not_to contain_package('net-tools').with(ensure: 'present') }
372+
it { is_expected.not_to contain_package('net-tools').with(ensure: 'installed') }
373373
it { is_expected.to contain_class('splunk::enterprise').with(service_name: 'splunk') }
374374
it { is_expected.not_to contain_file('/etc/init.d/splunk').with(ensure: 'absent') }
375375
it { is_expected.not_to contain_exec('stop_splunk') }

0 commit comments

Comments
 (0)