-
-
Save askz/88b714d78859dd74c994c8e91b876517 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
driver: | |
name: dokken | |
privileged: true # because Docker and SystemD/Upstart | |
chef_version: <%= ENV['CHEF_VERSION'] || 'current' %> | |
transport: | |
name: dokken | |
provisioner: | |
name: dokken | |
platforms: | |
- name: debian-8 | |
driver: | |
image: dokken/debian-8 | |
pid_one_command: /bin/systemd | |
intermediate_instructions: | |
- RUN /usr/bin/apt-get update | |
- RUN touch /var/log/auth.log | |
- name: debian-9 | |
driver: | |
image: dokken/debian-9 | |
pid_one_command: /bin/systemd | |
intermediate_instructions: | |
- RUN /usr/bin/apt-get update | |
- RUN touch /var/log/auth.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
driver: | |
name: vagrant | |
network: | |
# - ["forwarded_port", {guest: 2223, host: 2223}] | |
# - ["public_network", {bridge: "enp0s31f6"}] | |
# - ["public_network", {bridge: "wlp2s0"}] | |
customize: | |
memory: 1024 | |
cpus: 2 | |
provisioner: | |
name: chef_zero | |
always_update_cookbooks: <%= !ENV['CI'] %> | |
roles_path: ../../roles | |
verifier: | |
name: inspec | |
platforms: | |
- name: debian-8 | |
- name: debian-9 | |
transport: | |
name: sftp | |
ruby_path: /usr/bin/ruby | |
suites: | |
# Base machine without firewall | |
- name: base-wo-fw | |
data_bags_path: "../../data_bags" | |
run_list: | |
- role[base] | |
verifier: | |
inspec_tests: | |
- test/integration/base/default | |
- test/integration/base/default_disabled_firewall | |
attributes: | |
ssh-hardening: | |
ssh: | |
ports: ['22'] | |
base: | |
firewall: | |
enable: false | |
- name: base-with-fw | |
data_bags_path: "../../data_bags" | |
run_list: | |
- role[base] | |
verifier: | |
inspec_tests: | |
- test/integration/base/default | |
- test/integration/base/default_enabled_firewall | |
attributes: | |
ssh-hardening: | |
ssh: | |
ports: ['22'] | |
base: | |
firewall: | |
open_ports: [ | |
{ protocol: 'tcp', port: 22} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running handlers:[0m | |
Running handlers complete | |
[0m[0m | |
Deprecated features used![0m | |
Resource sysctl_param from a cookbook is overriding the resource from the client. Please upgrade your cookbook or remove the cookbook from your run_list before the next major release of Chef. at 1 location:[0m | |
- /opt/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.109/lib/chef/log.rb:51:in `caller_location'[0m | |
See https://docs.chef.io/deprecations_map_collision.html for further details.[0m | |
Resource cron_d from a cookbook is overriding the resource from the client. Please upgrade your cookbook or remove the cookbook from your run_list before the next major release of Chef. at 1 location:[0m | |
- /opt/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-15.0.109/lib/chef/log.rb:51:in `caller_location'[0m | |
See https://docs.chef.io/deprecations_map_collision.html for further details.[0m | |
[0m | |
Chef Client finished, 83/157 resources updated in 02 minutes 46 seconds[0m | |
Finished converging <base-wo-fw-debian-9> (2m48.79s). | |
-----> Setting up <base-wo-fw-debian-9>... | |
Finished setting up <base-wo-fw-debian-9> (0m0.00s). | |
-----> Verifying <base-wo-fw-debian-9>... | |
Loaded tests from {:path=>".builds.DevOps.clinigrid-chef.site-cookbooks.base.test.integration.base.default"} | |
Loaded tests from {:path=>".builds.DevOps.clinigrid-chef.site-cookbooks.base.test.integration.base.default_disabled_firewall"} | |
[DEPRECATION] `processes.list` is deprecated. Please use `processes.entries` instead. It will be removed in version 4.0. | |
Profile: tests from {:path=>"/builds/DevOps/clinigrid-chef/site-cookbooks/base/test/integration/base/default"} (tests from {:path=>".builds.DevOps.clinigrid-chef.site-cookbooks.base.test.integration.base.default"}) | |
Version: (not specified) | |
Target: docker://60f6f5c73b8496c3437fa291fa102988995279cd0ea2ab88bcd50f7bf2109c65 | |
User root | |
[38;5;247m ↺ [0m | |
Port 22 | |
[38;5;247m ↺ [0m | |
System Package htop | |
[38;5;41m ✔ should be installed[0m | |
System Package iftop | |
[38;5;41m ✔ should be installed[0m | |
System Package netcat | |
[38;5;41m ✔ should be installed[0m | |
System Package zsh | |
[38;5;41m ✔ should be installed[0m | |
System Package glances | |
[38;5;41m ✔ should be installed[0m | |
System Package dnsutils | |
[38;5;41m ✔ should be installed[0m | |
System Package traceroute | |
[38;5;41m ✔ should be installed[0m | |
Group devops | |
[38;5;41m ✔ should exist[0m | |
Group regular | |
[38;5;41m ✔ should exist[0m | |
Processes ntpd | |
[38;5;41m ✔ list.length should eq 1[0m | |
Profile: tests from {:path=>"/builds/DevOps/clinigrid-chef/site-cookbooks/base/test/integration/base/default_disabled_firewall"} (tests from {:path=>".builds.DevOps.clinigrid-chef.site-cookbooks.base.test.integration.base.default_disabled_firewall"}) | |
Version: (not specified) | |
Target: docker://60f6f5c73b8496c3437fa291fa102988995279cd0ea2ab88bcd50f7bf2109c65 | |
Iptables | |
[38;5;41m ✔ should have rule "-P INPUT ACCEPT"[0m | |
[38;5;41m ✔ should have rule "-P OUTPUT ACCEPT"[0m | |
Command: `ufw status` | |
[38;5;41m ✔ should not exist[0m | |
Test Summary: [38;5;41m13 successful[0m, 0 failures, [38;5;247m2 skipped[0m | |
Finished verifying <base-wo-fw-debian-9> (0m1.35s). | |
-----> Destroying <base-wo-fw-debian-9>... | |
Deleting kitchen sandbox at /root/.dokken/kitchen_sandbox/9ccac8b2f0-base-wo-fw-debian-9 | |
Deleting verifier sandbox at /root/.dokken/verifier_sandbox/9ccac8b2f0-base-wo-fw-debian-9 | |
Finished destroying <base-wo-fw-debian-9> (0m10.89s). | |
Finished testing <base-wo-fw-debian-9> (3m3.49s). | |
-----> Cleaning up any prior instances of <base-with-fw-debian-8> | |
-----> Destroying <base-with-fw-debian-8>... | |
Deleting kitchen sandbox at /root/.dokken/kitchen_sandbox/9ccac8b2f0-base-with-fw-debian-8 | |
Deleting verifier sandbox at /root/.dokken/verifier_sandbox/9ccac8b2f0-base-with-fw-debian-8 | |
Finished destroying <base-with-fw-debian-8> (0m10.43s). | |
-----> Testing <base-with-fw-debian-8> | |
-----> Creating <base-with-fw-debian-8>... | |
Creating kitchen sandbox at /root/.dokken/kitchen_sandbox/9ccac8b2f0-base-with-fw-debian-8 | |
Creating verifier sandbox at /root/.dokken/verifier_sandbox/9ccac8b2f0-base-with-fw-debian-8 | |
Building work image.. | |
Creating container 9ccac8b2f0-base-with-fw-debian-8 | |
Finished creating <base-with-fw-debian-8> (0m2.07s). | |
-----> Converging <base-with-fw-debian-8>... | |
Creating kitchen sandbox in /root/.dokken/kitchen_sandbox/9ccac8b2f0-base-with-fw-debian-8 | |
Preparing dna.json | |
Resolving cookbook dependencies with Berkshelf 7.0.7... | |
Removing non-cookbook files before transfer | |
Preparing data_bags | |
Preparing roles | |
Preparing validation.pem | |
Preparing client.rb | |
[2019-01-03T14:12:39+00:00] WARN: ***************************************** | |
[2019-01-03T14:12:39+00:00] WARN: Did not find config file: /opt/kitchen/client.rb, using command line options. | |
[2019-01-03T14:12:39+00:00] WARN: ***************************************** | |
[2019-01-03T14:12:39+00:00] WARN: No cookbooks directory found at or above current directory. Assuming /. | |
[2019-01-03T14:12:39+00:00] FATAL: Cannot load configuration from /opt/kitchen/dna.json | |
-----> Cleaning up any prior instances of <base-with-fw-debian-9> | |
-----> Destroying <base-with-fw-debian-9>... | |
Deleting kitchen sandbox at /root/.dokken/kitchen_sandbox/9ccac8b2f0-base-with-fw-debian-9 | |
Deleting verifier sandbox at /root/.dokken/verifier_sandbox/9ccac8b2f0-base-with-fw-debian-9 | |
Finished destroying <base-with-fw-debian-9> (0m10.45s). | |
-----> Testing <base-with-fw-debian-9> | |
-----> Creating <base-with-fw-debian-9>... | |
Creating kitchen sandbox at /root/.dokken/kitchen_sandbox/9ccac8b2f0-base-with-fw-debian-9 | |
Creating verifier sandbox at /root/.dokken/verifier_sandbox/9ccac8b2f0-base-with-fw-debian-9 | |
Building work image.. | |
Creating container 9ccac8b2f0-base-with-fw-debian-9 | |
Finished creating <base-with-fw-debian-9> (0m5.90s). | |
-----> Converging <base-with-fw-debian-9>... | |
Creating kitchen sandbox in /root/.dokken/kitchen_sandbox/9ccac8b2f0-base-with-fw-debian-9 | |
Preparing dna.json | |
Resolving cookbook dependencies with Berkshelf 7.0.7... | |
Removing non-cookbook files before transfer | |
Preparing data_bags | |
Preparing roles | |
Preparing validation.pem | |
Preparing client.rb | |
[2019-01-03T14:12:57+00:00] WARN: ***************************************** | |
[2019-01-03T14:12:57+00:00] WARN: Did not find config file: /opt/kitchen/client.rb, using command line options. | |
[2019-01-03T14:12:57+00:00] WARN: ***************************************** | |
[2019-01-03T14:12:57+00:00] WARN: No cookbooks directory found at or above current directory. Assuming /. | |
[2019-01-03T14:12:57+00:00] FATAL: Cannot load configuration from /opt/kitchen/dna.json | |
>>>>>> ------Exception------- | |
>>>>>> Class: Kitchen::ActionFailed | |
>>>>>> Message: 3 actions failed. | |
>>>>>> Converge failed on instance <base-wo-fw-debian-8>. Please see .kitchen/logs/base-wo-fw-debian-8.log for more details | |
>>>>>> Converge failed on instance <base-with-fw-debian-8>. Please see .kitchen/logs/base-with-fw-debian-8.log for more details | |
>>>>>> Converge failed on instance <base-with-fw-debian-9>. Please see .kitchen/logs/base-with-fw-debian-9.log for more details | |
>>>>>> ---------------------- | |
>>>>>> Please see .kitchen/logs/kitchen.log for more details | |
>>>>>> Also try running `kitchen diagnose --all` for configuration | |
section_end:1546524778:build_script | |
[0Ksection_start:1546524778:after_script | |
[0Ksection_end:1546524779:after_script | |
[0Ksection_start:1546524779:upload_artifacts_on_failure | |
[0Ksection_end:1546524780:upload_artifacts_on_failure | |
[0K[31;1mERROR: Job failed: exit code 20 | |
[0;m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment