Created
September 8, 2014 18:02
-
-
Save juliandunn/4671f4f02118418022f8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$ kitchen test --destroy=never service-init-centos-65 | |
-----> Starting Kitchen (v1.2.1) | |
-----> Cleaning up any prior instances of <service-init-centos-65> | |
-----> Destroying <service-init-centos-65>... | |
Finished destroying <service-init-centos-65> (0m0.00s). | |
-----> Testing <service-init-centos-65> | |
-----> Creating <service-init-centos-65>... | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'opscode-centos-6.5'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Setting the name of the VM: service-init-centos-65_default_1410199210647_40875 | |
==> default: Fixed port collision for 22 => 2222. Now on port 2200. | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
==> default: Forwarding ports... | |
default: 22 => 2200 (adapter 1) | |
==> default: Booting VM... | |
==> default: Waiting for machine to boot. This may take a few minutes... | |
default: SSH address: 127.0.0.1:2200 | |
default: SSH username: vagrant | |
default: SSH auth method: private key | |
default: Warning: Connection timeout. Retrying... | |
==> default: Machine booted and ready! | |
==> default: Checking for guest additions in VM... | |
==> default: Setting hostname... | |
==> default: Machine not provisioning because `--no-provision` is specified. | |
Vagrant instance <service-init-centos-65> created. | |
Finished creating <service-init-centos-65> (0m42.73s). | |
-----> Converging <service-init-centos-65>... | |
Preparing files for transfer | |
Resolving cookbook dependencies with Berkshelf 3.1.5... | |
Removing non-cookbook files before transfer | |
-----> Installing Chef Omnibus (true) | |
downloading https://www.getchef.com/chef/install.sh | |
to file /tmp/install.sh | |
trying wget... | |
trying curl... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 | |
100 16519 100 16519 0 0 44725 0 --:--:-- --:--:-- --:--:-- 117k | |
Downloading Chef for el... | |
downloading https://www.getchef.com/chef/metadata?v=&prerelease=false&nightlies=false&p=el&pv=6&m=x86_64 | |
to file /tmp/install.sh.1990/metadata.txt | |
trying wget... | |
trying curl... | |
url https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-11.16.0-1.el6.x86_64.rpm | |
md5 5c8cfdbab2684148e2bb859b736b6827 | |
sha256 e4d0236cc495d080f8e7a01704e2ef554e12088687e4fe946ee8027b79871bbb | |
downloaded metadata file looks valid... | |
downloading https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-11.16.0-1.el6.x86_64.rpm | |
to file /tmp/install.sh.1990/chef-11.16.0-1.el6.x86_64.rpm | |
trying wget... | |
Comparing checksum with sha256sum... | |
Installing Chef | |
installing with rpm... | |
warning: /tmp/install.sh.1990/chef-11.16.0-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY | |
Preparing... ########################################### [100%] | |
1:chef ########################################### [100%] | |
Thank you for installing Chef! | |
Transfering files to <service-init-centos-65> | |
[2014-09-08T18:00:58+00:00] INFO: Starting chef-zero on host localhost, port 8889 with repository at repository at /tmp/kitchen | |
One version per cookbook | |
[2014-09-08T18:00:58+00:00] INFO: Forking chef instance to converge... | |
Starting Chef Client, version 11.16.0 | |
[2014-09-08T18:00:59+00:00] INFO: *** Chef 11.16.0 *** | |
[2014-09-08T18:00:59+00:00] INFO: Chef-client pid: 2094 | |
Creating a new client identity for service-init-centos-65 using the validator key. | |
[2014-09-08T18:01:01+00:00] INFO: Client key /tmp/kitchen/client.pem is not present - registering | |
[2014-09-08T18:01:01+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://localhost:8889/nodes/service-init-centos-65 | |
[2014-09-08T18:01:01+00:00] INFO: Setting the run_list to ["recipe[chef-client::config]", "recipe[chef-client::init_service]"] from CLI options | |
[2014-09-08T18:01:01+00:00] INFO: Run List is [recipe[chef-client::config], recipe[chef-client::init_service]] | |
[2014-09-08T18:01:01+00:00] INFO: Run List expands to [chef-client::config, chef-client::init_service] | |
[2014-09-08T18:01:01+00:00] INFO: Starting Chef Run for service-init-centos-65 | |
[2014-09-08T18:01:01+00:00] INFO: Running start handlers | |
[2014-09-08T18:01:01+00:00] INFO: Start handlers complete. | |
[2014-09-08T18:01:01+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: /reports/nodes/service-init-centos-65/runs | |
resolving cookbooks for run list: ["chef-client::config", "chef-client::init_service"] | |
[2014-09-08T18:01:02+00:00] INFO: Loading cookbooks [[email protected], [email protected], [email protected], [email protected], [email protected]] | |
Synchronizing Cookbooks: | |
[2014-09-08T18:01:02+00:00] INFO: Storing updated cookbooks/chef-client/recipes/service.rb in the cache. | |
[2014-09-08T18:01:02+00:00] INFO: Storing updated cookbooks/chef-client/recipes/bsd_service.rb in the cache. | |
[2014-09-08T18:01:02+00:00] INFO: Storing updated cookbooks/chef-client/recipes/config.rb in the cache. | |
[2014-09-08T18:01:02+00:00] INFO: Storing updated cookbooks/chef-client/recipes/upstart_service.rb in the cache. | |
[2014-09-08T18:01:02+00:00] INFO: Storing updated cookbooks/chef-client/recipes/systemd_service.rb in the cache. | |
[2014-09-08T18:01:02+00:00] INFO: Storing updated cookbooks/chef-client/recipes/runit_service.rb in the cache. | |
[2014-09-08T18:01:02+00:00] INFO: Storing updated cookbooks/chef-client/recipes/windows_service.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/recipes/default.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/recipes/task.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/recipes/winsw_service.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/recipes/daemontools_service.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/recipes/launchd_service.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/recipes/arch_service.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/recipes/smf_service.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/recipes/bluepill_service.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/recipes/init_service.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/recipes/delete_validation.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/attributes/default.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/recipes/cron.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/metadata.json in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/libraries/helpers.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/chef-client/README.md in the cache. | |
- chef-client | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/cron/resources/d.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/cron/libraries/matchers.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/cron/providers/d.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/cron/recipes/default.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/cron/definitions/manage.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/logrotate/recipes/default.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/cron/metadata.json in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/cron/README.md in the cache. | |
- cron | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/logrotate/recipes/global.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/logrotate/definitions/logrotate_app.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/logrotate/libraries/logrotate_config.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/logrotate/attributes/default.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/logrotate/metadata.json in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/windows/resources/shortcut.rb in the cache. | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/logrotate/README.md in the cache. | |
- logrotate | |
[2014-09-08T18:01:03+00:00] INFO: Storing updated cookbooks/windows/resources/batch.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/resources/printer.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/resources/zipfile.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/resources/path.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/resources/pagefile.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/resources/task.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/resources/feature.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/resources/printer_port.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/resources/auto_run.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/resources/reboot.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/resources/registry.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/resources/package.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/providers/shortcut.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/providers/printer.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/providers/feature_servermanagercmd.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/providers/batch.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/providers/zipfile.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/providers/path.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/providers/feature_powershell.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/providers/pagefile.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/providers/task.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/providers/printer_port.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/providers/reboot.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/providers/package.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/providers/registry.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/providers/auto_run.rb in the cache. | |
[2014-09-08T18:01:04+00:00] INFO: Storing updated cookbooks/windows/recipes/reboot_handler.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/providers/feature_dism.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/libraries/wmi_helper.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/recipes/default.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/libraries/windows_architecture_helper.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/libraries/powershell_out.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/libraries/version.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/libraries/registry_helper.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/libraries/windows_helper.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/libraries/windows_privileged.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/libraries/matchers.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/libraries/feature_base.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/libraries/powershell_helper.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/metadata.json in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/chef_handler/recipes/json_file.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/attributes/default.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/windows/README.md in the cache. | |
- windows | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/chef_handler/resources/default.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/chef_handler/providers/default.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/chef_handler/recipes/default.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/chef_handler/libraries/matchers.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/chef_handler/metadata.json in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/chef_handler/attributes/default.rb in the cache. | |
[2014-09-08T18:01:05+00:00] INFO: Storing updated cookbooks/chef_handler/README.md in the cache. | |
- chef_handler | |
Compiling Cookbooks... | |
[2014-09-08T18:01:05+00:00] INFO: WindowsPackage lightweight resource already initialized -- overriding! | |
[2014-09-08T18:01:05+00:00] WARN: Cloning resource attributes for directory[/var/run/chef] from prior resource (CHEF-3694) | |
[2014-09-08T18:01:05+00:00] WARN: Previous directory[/var/run/chef]: /tmp/kitchen/cache/cookbooks/chef-client/libraries/helpers.rb:91:in `block in create_directories' | |
[2014-09-08T18:01:05+00:00] WARN: Current directory[/var/run/chef]: /tmp/kitchen/cache/cookbooks/chef-client/libraries/helpers.rb:91:in `block in create_directories' | |
[2014-09-08T18:01:05+00:00] WARN: Cloning resource attributes for directory[/var/cache/chef] from prior resource (CHEF-3694) | |
[2014-09-08T18:01:05+00:00] WARN: Previous directory[/var/cache/chef]: /tmp/kitchen/cache/cookbooks/chef-client/libraries/helpers.rb:91:in `block in create_directories' | |
[2014-09-08T18:01:05+00:00] WARN: Current directory[/var/cache/chef]: /tmp/kitchen/cache/cookbooks/chef-client/libraries/helpers.rb:91:in `block in create_directories' | |
[2014-09-08T18:01:05+00:00] WARN: Cloning resource attributes for directory[/var/lib/chef] from prior resource (CHEF-3694) | |
[2014-09-08T18:01:05+00:00] WARN: Previous directory[/var/lib/chef]: /tmp/kitchen/cache/cookbooks/chef-client/libraries/helpers.rb:91:in `block in create_directories' | |
[2014-09-08T18:01:05+00:00] WARN: Current directory[/var/lib/chef]: /tmp/kitchen/cache/cookbooks/chef-client/libraries/helpers.rb:91:in `block in create_directories' | |
[2014-09-08T18:01:05+00:00] WARN: Cloning resource attributes for directory[/var/log/chef] from prior resource (CHEF-3694) | |
[2014-09-08T18:01:05+00:00] WARN: Previous directory[/var/log/chef]: /tmp/kitchen/cache/cookbooks/chef-client/libraries/helpers.rb:91:in `block in create_directories' | |
[2014-09-08T18:01:05+00:00] WARN: Current directory[/var/log/chef]: /tmp/kitchen/cache/cookbooks/chef-client/libraries/helpers.rb:91:in `block in create_directories' | |
[2014-09-08T18:01:05+00:00] WARN: Cloning resource attributes for directory[/etc/chef] from prior resource (CHEF-3694) | |
[2014-09-08T18:01:05+00:00] WARN: Previous directory[/etc/chef]: /tmp/kitchen/cache/cookbooks/chef-client/libraries/helpers.rb:91:in `block in create_directories' | |
[2014-09-08T18:01:05+00:00] WARN: Current directory[/etc/chef]: /tmp/kitchen/cache/cookbooks/chef-client/libraries/helpers.rb:91:in `block in create_directories' | |
Converging 16 resources | |
Recipe: chef-client::config | |
* directory[/var/run/chef] action create | |
[2014-09-08T18:01:05+00:00] INFO: Processing directory[/var/run/chef] action create (chef-client::config line 91) | |
[2014-09-08T18:01:05+00:00] INFO: directory[/var/run/chef] created directory /var/run/chef | |
- create new directory /var/run/chef | |
[2014-09-08T18:01:05+00:00] INFO: directory[/var/run/chef] owner changed to 0 | |
[2014-09-08T18:01:05+00:00] INFO: directory[/var/run/chef] group changed to 0 | |
- change owner from '' to 'root' | |
- change group from '' to 'root' | |
- restore selinux security context | |
* directory[/var/cache/chef] action create[2014-09-08T18:01:06+00:00] INFO: Processing directory[/var/cache/chef] action create (chef-client::config line 91) | |
[2014-09-08T18:01:06+00:00] INFO: directory[/var/cache/chef] created directory /var/cache/chef | |
- create new directory /var/cache/chef[2014-09-08T18:01:06+00:00] INFO: directory[/var/cache/chef] owner changed to 0 | |
[2014-09-08T18:01:06+00:00] INFO: directory[/var/cache/chef] group changed to 0 | |
- change owner from '' to 'root' | |
- change group from '' to 'root' | |
- restore selinux security context | |
* directory[/var/lib/chef] action create[2014-09-08T18:01:06+00:00] INFO: Processing directory[/var/lib/chef] action create (chef-client::config line 91) | |
[2014-09-08T18:01:06+00:00] INFO: directory[/var/lib/chef] created directory /var/lib/chef | |
- create new directory /var/lib/chef | |
[2014-09-08T18:01:06+00:00] INFO: directory[/var/lib/chef] owner changed to 0 | |
[2014-09-08T18:01:06+00:00] INFO: directory[/var/lib/chef] group changed to 0 | |
- change owner from '' to 'root' | |
- change group from '' to 'root' | |
- restore selinux security context | |
* directory[/var/log/chef] action create[2014-09-08T18:01:06+00:00] INFO: Processing directory[/var/log/chef] action create (chef-client::config line 91) | |
[2014-09-08T18:01:06+00:00] INFO: directory[/var/log/chef] created directory /var/log/chef | |
- create new directory /var/log/chef | |
[2014-09-08T18:01:06+00:00] INFO: directory[/var/log/chef] owner changed to 0 | |
[2014-09-08T18:01:06+00:00] INFO: directory[/var/log/chef] group changed to 0 | |
[2014-09-08T18:01:06+00:00] INFO: directory[/var/log/chef] mode changed to 750 | |
- change mode from '' to '0750' | |
- change owner from '' to 'root' | |
- change group from '' to 'root' | |
- restore selinux security context | |
* directory[/etc/chef] action create[2014-09-08T18:01:06+00:00] INFO: Processing directory[/etc/chef] action create (chef-client::config line 91) | |
[2014-09-08T18:01:06+00:00] INFO: directory[/etc/chef] created directory /etc/chef | |
- create new directory /etc/chef | |
[2014-09-08T18:01:06+00:00] INFO: directory[/etc/chef] owner changed to 0 | |
[2014-09-08T18:01:06+00:00] INFO: directory[/etc/chef] group changed to 0 | |
- change owner from '' to 'root' | |
- change group from '' to 'root' | |
- restore selinux security context | |
* template[/etc/chef/client.rb] action create | |
[2014-09-08T18:01:06+00:00] INFO: Processing template[/etc/chef/client.rb] action create (chef-client::config line 73) | |
[2014-09-08T18:01:06+00:00] INFO: template[/etc/chef/client.rb] created file /etc/chef/client.rb | |
- create new file /etc/chef/client.rb | |
[2014-09-08T18:01:06+00:00] INFO: template[/etc/chef/client.rb] updated file contents /etc/chef/client.rb | |
- update content in file /etc/chef/client.rb from none to 3342f0 | |
--- /etc/chef/client.rb 2014-09-08 18:01:06.877035612 +0000 | |
+++ /tmp/chef-rendered-template20140908-2094-11ytdh5 2014-09-08 18:01:06.880037112 +0000 | |
@@ -1 +1,9 @@ | |
+chef_server_url "http://localhost:8889" | |
+validation_client_name "chef-validator" | |
+node_name "service-init-centos-65" | |
+ | |
+ | |
+Dir.glob(File.join("/etc/chef", "client.d", "*.rb")).each do |conf| | |
+ Chef::Config.from_file(conf) | |
+end[2014-09-08T18:01:06+00:00] INFO: template[/etc/chef/client.rb] owner changed to 0 | |
[2014-09-08T18:01:06+00:00] INFO: template[/etc/chef/client.rb] group changed to 0 | |
[2014-09-08T18:01:06+00:00] INFO: template[/etc/chef/client.rb] mode changed to 644 | |
- change mode from '' to '0644' | |
- change owner from '' to 'root' | |
- change group from '' to 'root' | |
- restore selinux security context | |
[2014-09-08T18:01:07+00:00] INFO: template[/etc/chef/client.rb] sending create action to ruby_block[reload_client_config] (immediate) | |
* ruby_block[reload_client_config] action create | |
[2014-09-08T18:01:07+00:00] INFO: Processing ruby_block[reload_client_config] action create (chef-client::config line 99) | |
[2014-09-08T18:01:07+00:00] INFO: ruby_block[reload_client_config] called | |
- execute the ruby block reload_client_config | |
* directory[/etc/chef/client.d] action create[2014-09-08T18:01:07+00:00] INFO: Processing directory[/etc/chef/client.d] action create (chef-client::config line 92) | |
[2014-09-08T18:01:07+00:00] INFO: directory[/etc/chef/client.d] created directory /etc/chef/client.d | |
- create new directory /etc/chef/client.d | |
[2014-09-08T18:01:07+00:00] INFO: directory[/etc/chef/client.d] owner changed to 0 | |
[2014-09-08T18:01:07+00:00] INFO: directory[/etc/chef/client.d] group changed to 0 | |
[2014-09-08T18:01:07+00:00] INFO: directory[/etc/chef/client.d] mode changed to 755 | |
- change mode from '' to '0755' | |
- change owner from '' to 'root' | |
- change group from '' to 'root' | |
- restore selinux security context | |
* ruby_block[reload_client_config] action nothing[2014-09-08T18:01:07+00:00] INFO: Processing ruby_block[reload_client_config] action nothing (chef-client::config line 99) | |
(skipped due to action :nothing) | |
Recipe: chef-client::init_service | |
* directory[/var/run/chef] action create | |
[2014-09-08T18:01:07+00:00] INFO: Processing directory[/var/run/chef] action create (chef-client::init_service line 91) | |
(up to date) | |
* directory[/var/cache/chef] action create | |
[2014-09-08T18:01:07+00:00] INFO: Processing directory[/var/cache/chef] action create (chef-client::init_service line 91) | |
(up to date) | |
* directory[/var/lib/chef] action create[2014-09-08T18:01:07+00:00] INFO: Processing directory[/var/lib/chef] action create (chef-client::init_service line 91) | |
(up to date) | |
* directory[/var/log/chef] action create[2014-09-08T18:01:07+00:00] INFO: Processing directory[/var/log/chef] action create (chef-client::init_service line 91) | |
(up to date) | |
* directory[/etc/chef] action create[2014-09-08T18:01:07+00:00] INFO: Processing directory[/etc/chef] action create (chef-client::init_service line 91) | |
(up to date) | |
* template[/etc/init.d/chef-client] action create[2014-09-08T18:01:07+00:00] INFO: Processing template[/etc/init.d/chef-client] action create (chef-client::init_service line 19) | |
[2014-09-08T18:01:07+00:00] INFO: template[/etc/init.d/chef-client] created file /etc/init.d/chef-client | |
- create new file /etc/init.d/chef-client | |
[2014-09-08T18:01:07+00:00] INFO: template[/etc/init.d/chef-client] updated file contents /etc/init.d/chef-client | |
- update content in file /etc/init.d/chef-client from none to 024f89 | |
--- /etc/init.d/chef-client 2014-09-08 18:01:07.252223111 +0000 | |
+++ /tmp/chef-rendered-template20140908-2094-1epdu82 2014-09-08 18:01:07.253223611 +0000 | |
@@ -1 +1,111 @@ | |
+#!/bin/bash | |
+# | |
+# chef-client Startup script for the Chef client | |
+# | |
+# chkconfig: - 98 02 | |
+# description: Client component of the Chef systems integration framework. | |
+ | |
+### BEGIN INIT INFO | |
+# Provides: chef-client | |
+# Required-Start: $local_fs $network $remote_fs | |
+# Required-Stop: $local_fs $network $remote_fs | |
+# Should-Start: $named $time | |
+# Should-Stop: $named $time | |
+# Short-Description: Startup script for the Chef client | |
+# Description: Client component of the Chef systems integration framework. | |
+### END INIT INFO | |
+ | |
+# Source function library | |
+. /etc/init.d/functions | |
+ | |
+exec="/usr/bin/chef-client" | |
+prog="chef-client" | |
+ | |
+[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog | |
+ | |
+config=${CONFIG-/etc/chef/client.rb} | |
+pidfile=${PIDFILE-/var/run/chef/client.pid} | |
+lockfile=${LOCKFILE-/var/lock/subsys/$prog} | |
+logfile=${LOGFILE-/var/log/chef/client.log} | |
+interval=${INTERVAL-1800} | |
+splay=${SPLAY-20} | |
+options=${OPTIONS-} | |
+ | |
+start() { | |
+ [ -x $exec ] || exit 5 | |
+ [ -f $config ] || exit 6 | |
+ echo -n $"Starting $prog: " | |
+ daemon $exec -d -c "$config" -L "$logfile" -P "$pidfile" -i "$interval" -s "$splay" "$options" | |
+ retval=$? | |
+ echo | |
+ [ $retval -eq 0 ] && touch $lockfile | |
+ return $retval | |
+} | |
+ | |
+stop() { | |
+ echo -n $"Stopping $prog: " | |
+ killproc -p $pidfile $exec | |
+ retval=$? | |
+ echo | |
+ [ $retval -eq 0 ] && rm -f $lockfile | |
+ return $retval | |
+} | |
+ | |
+restart () { | |
+ stop | |
+ start | |
+} | |
+ | |
+reload() { | |
+ echo -n $"Reloading $prog: " | |
+ killproc -p $pidfile $exec -HUP | |
+ retval=$? | |
+ echo | |
+ return $retval | |
+} | |
+ | |
+force_reload() { | |
+ restart | |
+} | |
+ | |
+rh_status() { | |
+ # run checks to determine if the service is running or use generic status | |
+ status -p $pidfile $prog | |
+} | |
+ | |
+rh_status_q() { | |
+ rh_status >/dev/null 2>&1 | |
+} | |
+ | |
+case "$1" in | |
+ start) | |
+ rh_status_q && exit 0 | |
+ $1 | |
+ ;; | |
+ stop) | |
+ rh_status_q || exit 0 | |
+ $1 | |
+ ;; | |
+ restart) | |
+ $1 | |
+ ;; | |
+ reload) | |
+ rh_status_q || exit 7 | |
+ $1 | |
+ ;; | |
+ force-reload) | |
+ force_reload | |
+ ;; | |
+ status) | |
+ rh_status | |
+ ;; | |
+ condrestart|try-restart) | |
+ rh_status_q || exit 0 | |
+ restart | |
+ ;; | |
+ *) | |
+ echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}" | |
+ exit 2 | |
+esac | |
+exit $?[2014-09-08T18:01:07+00:00] INFO: template[/etc/init.d/chef-client] mode changed to 755 | |
- change mode from '' to '0755' | |
- restore selinux security context | |
* template[/etc/sysconfig/chef-client] action create[2014-09-08T18:01:07+00:00] INFO: Processing template[/etc/sysconfig/chef-client] action create (chef-client::init_service line 26) | |
[2014-09-08T18:01:07+00:00] INFO: template[/etc/sysconfig/chef-client] created file /etc/sysconfig/chef-client | |
- create new file /etc/sysconfig/chef-client | |
[2014-09-08T18:01:07+00:00] INFO: template[/etc/sysconfig/chef-client] updated file contents /etc/sysconfig/chef-client | |
- update content in file /etc/sysconfig/chef-client from none to c7eb24 | |
--- /etc/sysconfig/chef-client 2014-09-08 18:01:07.478336111 +0000 | |
+++ /tmp/chef-rendered-template20140908-2094-ctguso 2014-09-08 18:01:07.480337111 +0000 | |
@@ -1 +1,16 @@ | |
+# Configuration file for the chef-client service | |
+ | |
+CONFIG=/etc/chef/client.rb | |
+PIDFILE=/var/run/chef/client.pid | |
+#LOCKFILE=/var/lock/subsys/chef-client | |
+LOGFILE=/var/log/chef/client.log | |
+# Sleep interval between runs. | |
+# This value is in seconds. | |
+INTERVAL=1800 | |
+# Maximum amount of random delay before starting a run. Prevents every client | |
+# from contacting the server at the exact same time. | |
+# This value is in seconds. | |
+SPLAY=300 | |
+# Any additional chef-client options. | |
+OPTIONS="" | |
[2014-09-08T18:01:07+00:00] INFO: template[/etc/sysconfig/chef-client] mode changed to 644 | |
- change mode from '' to '0644' | |
- restore selinux security context | |
[2014-09-08T18:01:07+00:00] INFO: template[/etc/sysconfig/chef-client] not queuing delayed action restart on service[chef-client] (delayed), as it's already been queued | |
* service[chef-client] action enable[2014-09-08T18:01:07+00:00] INFO: Processing service[chef-client] action enable (chef-client::init_service line 32) | |
[2014-09-08T18:01:07+00:00] INFO: service[chef-client] enabled | |
- enable service service[chef-client] | |
* service[chef-client] action start | |
[2014-09-08T18:01:07+00:00] INFO: Processing service[chef-client] action start (chef-client::init_service line 32) | |
[2014-09-08T18:01:09+00:00] INFO: service[chef-client] started | |
- start service service[chef-client] | |
[2014-09-08T18:01:09+00:00] INFO: template[/etc/init.d/chef-client] sending restart action to service[chef-client] (delayed) | |
* service[chef-client] action restart[2014-09-08T18:01:09+00:00] INFO: Processing service[chef-client] action restart (chef-client::init_service line 32) | |
[2014-09-08T18:01:13+00:00] INFO: service[chef-client] restarted | |
- restart service service[chef-client] | |
[2014-09-08T18:01:13+00:00] INFO: Chef Run complete in 12.658299385 seconds | |
Running handlers: | |
[2014-09-08T18:01:13+00:00] INFO: Running report handlers | |
Running handlers complete | |
[2014-09-08T18:01:13+00:00] INFO: Report handlers complete | |
Chef Client finished, 13/18 resources updated in 14.921712765 seconds | |
Finished converging <service-init-centos-65> (0m34.86s). | |
-----> Setting up <service-init-centos-65>... | |
Fetching: thor-0.19.0.gem (100%) | |
Fetching: busser-0.6.2.gem (100%) | |
Successfully installed thor-0.19.0 | |
Successfully installed busser-0.6.2 | |
2 gems installed | |
-----> Setting up Busser | |
Creating BUSSER_ROOT in /tmp/busser | |
Creating busser binstub | |
Plugin serverspec installed (version 0.2.6) | |
-----> Running postinstall for serverspec plugin | |
Finished setting up <service-init-centos-65> (0m22.70s). | |
-----> Verifying <service-init-centos-65>... | |
Suite path directory /tmp/busser/suites does not exist, skipping. | |
Uploading /tmp/busser/suites/serverspec/service_init_spec.rb (mode=0644) | |
-----> Running serverspec test suite | |
/opt/chef/embedded/bin/ruby -I/tmp/busser/suites/serverspec -S /opt/chef/embedded/bin/rspec /tmp/busser/suites/serverspec/service_init_spec.rb --color --format documentation | |
Service "chef-client" | |
should be running | |
Finished in 0.06478 seconds | |
1 example, 0 failures | |
Finished verifying <service-init-centos-65> (0m1.40s). | |
Finished testing <service-init-centos-65> (1m41.72s). | |
-----> Kitchen is finished. (1m42.30s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment