Created
August 19, 2014 19:29
-
-
Save nathenharvey/8d2919cc8e375d8ed486 to your computer and use it in GitHub Desktop.
testing output for apache cookbook
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
➜ apache git:(master) rubocop . | |
Inspecting 5 files | |
..... | |
5 files inspected, no offenses detected | |
➜ apache git:(master) foodcritic . | |
➜ apache git:(master) rspec spec/unit/default.rb ............. | |
Finished in 0.22822 seconds (files took 2.39 seconds to load) | |
13 examples, 0 failures | |
➜ apache git:(master) kitchen test | |
-----> Starting Kitchen (v1.2.2.dev) | |
-----> Cleaning up any prior instances of <default-centos-64> | |
-----> Destroying <default-centos-64>... | |
Finished destroying <default-centos-64> (0m0.00s). | |
-----> Testing <default-centos-64> | |
-----> Creating <default-centos-64>... | |
Bringing machine 'default' up with 'virtualbox' provider... | |
[default] Importing base box 'opscode-centos-6.4'... | |
[default] Matching MAC address for NAT networking... | |
[default] Setting the name of the VM... | |
[default] Clearing any previously set forwarded ports... | |
[default] Clearing any previously set network interfaces... | |
[default] Preparing network interfaces based on configuration... | |
[default] Forwarding ports... | |
[default] -- 22 => 2222 (adapter 1) | |
[default] Booting VM... | |
[default] Waiting for machine to boot. This may take a few minutes... | |
[default] Machine booted and ready! | |
[default] Setting hostname... | |
Vagrant instance <default-centos-64> created. | |
Finished creating <default-centos-64> (0m57.50s). | |
-----> Converging <default-centos-64>... | |
Preparing files for transfer | |
Resolving cookbook dependencies with Berkshelf 3.1.3... | |
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:00:05 --:--:-- 0 | |
100 16519 100 16519 0 0 3132 0 0:00:05 0:00:05 --:--:-- 230k | |
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.2411/metadata.txt | |
trying wget... | |
trying curl... | |
url https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-11.14.6-1.el6.x86_64.rpm | |
md5 3b48cadc7d27794f4be60918d97a0ae0 | |
sha256 2f6b86b44c11d1132a9663135e4c0ee03fa6707af7a42bc54f0a111dd382543b | |
downloaded metadata file looks valid... | |
downloading https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-11.14.6-1.el6.x86_64.rpm | |
to file /tmp/install.sh.2411/chef-11.14.6-1.el6.x86_64.rpm | |
trying wget... | |
Comparing checksum with sha256sum... | |
Installing Chef | |
installing with rpm... | |
warning: /tmp/install.sh.2411/chef-11.14.6-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY | |
Preparing... ##### ########################################### [100%] | |
1:chef ########################################### [100%] | |
Thank you for installing Chef! | |
Transferring files to <default-centos-64> | |
[2014-08-19T19:24:43+00:00] INFO: Starting chef-zero on host localhost, port 8889 with repository at repository at /tmp/kitchen | |
One version per cookbook | |
[2014-08-19T19:24:43+00:00] INFO: Forking chef instance to converge... | |
Starting Chef Client, version 11.14.6 | |
[2014-08-19T19:24:43+00:00] INFO: *** Chef 11.14.6 *** | |
[2014-08-19T19:24:43+00:00] INFO: Chef-client pid: 2529 | |
Creating a new client identity for default-centos-64 using the validator key. | |
[2014-08-19T19:24:50+00:00] INFO: Client key /tmp/kitchen/client.pem is not present - registering | |
[2014-08-19T19:24:51+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://localhost:8889/nodes/default-centos-64 | |
[2014-08-19T19:24:51+00:00] INFO: Setting the run_list to ["recipe[apache::default]"] from CLI options | |
[2014-08-19T19:24:51+00:00] INFO: Run List is [recipe[apache::default]] | |
[2014-08-19T19:24:51+00:00] INFO: Run List expands to [apache::default] | |
[2014-08-19T19:24:51+00:00] INFO: Starting Chef Run for default-centos-64 | |
[2014-08-19T19:24:51+00:00] INFO: Running start handlers | |
[2014-08-19T19:24:51+00:00] INFO: Start handlers complete. | |
[2014-08-19T19:24:51+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: /reports/nodes/default-centos-64/runs | |
resolving cookbooks for run list: ["apache::default"] | |
[2014-08-19T19:24:51+00:00] INFO: Loading cookbooks [[email protected]] | |
Synchronizing Cookbooks: | |
[2014-08-19T19:24:51+00:00] INFO: Storing updated cookbooks/apache/attributes/default.rb in the cache. | |
[2014-08-19T19:24:51+00:00] INFO: Storing updated cookbooks/apache/README.md in the cache. | |
[2014-08-19T19:24:51+00:00] INFO: Storing updated cookbooks/apache/recipes/default.rb in the cache. | |
[2014-08-19T19:24:51+00:00] INFO: Storing updated cookbooks/apache/metadata.json in the cache. | |
- apache | |
Compiling Cookbooks... | |
Converging 10 resources | |
Recipe: apache::default | |
* package[httpd] action install[2014-08-19T19:24:51+00:00] INFO: Processing package[httpd] action install (apache::default line 9) | |
[2014-08-19T19:25:20+00:00] INFO: package[httpd] installing httpd-2.2.15-31.el6.centos from updates repository | |
- install version 2.2.15-31.el6.centos of package httpd | |
* service[httpd] action start | |
[2014-08-19T19:25:36+00:00] INFO: Processing service[httpd] action start (apache::default line 13) | |
[2014-08-19T19:25:36+00:00] INFO: service[httpd] started | |
- start service service[httpd] | |
* service[httpd] action enable[2014-08-19T19:25:36+00:00] INFO: Processing service[httpd] action enable (apache::default line 13) | |
[2014-08-19T19:25:37+00:00] INFO: service[httpd] enabled | |
- enable service service[httpd] | |
* template[/var/www/html/index.html] action create[2014-08-19T19:25:37+00:00] INFO: Processing template[/var/www/html/index.html] action create (apache::default line 17) | |
[2014-08-19T19:25:37+00:00] INFO: template[/var/www/html/index.html] created file /var/www/html/index.html | |
- create new file /var/www/html/index.html | |
[2014-08-19T19:25:37+00:00] INFO: template[/var/www/html/index.html] updated file contents /var/www/html/index.html | |
- update content in file /var/www/html/index.html from none to b6bf8e | |
--- /var/www/html/index.html 2014-08-19 19:25:37.231249792 +0000 | |
+++ /tmp/chef-rendered-template20140819-2529-1es4qv4 2014-08-19 19:25:37.232250292 +0000 | |
@@ -1 +1,15 @@ | |
+<html> | |
+ <body> | |
+ <h1>Hello, Universe!</h1> | |
+ | |
+ <p> | |
+ We love | |
+ </p> | |
+ | |
+ <p> | |
+ I am 10.0.2.15: | |
+ </p> | |
+ | |
+ </body> | |
+</html> | |
- restore selinux security context | |
* execute[mv /etc/httpd/conf.d/welcome.conf{,.disabled}] action run[2014-08-19T19:25:37+00:00] INFO: Processing execute[mv /etc/httpd/conf.d/welcome.conf{,.disabled}] action run (apache::default line 22) | |
[2014-08-19T19:25:37+00:00] INFO: execute[mv /etc/httpd/conf.d/welcome.conf{,.disabled}] ran successfully | |
- execute mv /etc/httpd/conf.d/welcome.conf{,.disabled} | |
[2014-08-19T19:25:37+00:00] INFO: execute[mv /etc/httpd/conf.d/welcome.conf{,.disabled}] sending restart action to service[httpd] (immediate) | |
* service[httpd] action restart | |
[2014-08-19T19:25:37+00:00] INFO: Processing service[httpd] action restart (apache::default line 13) | |
[2014-08-19T19:25:39+00:00] INFO: service[httpd] restarted | |
- restart service service[httpd] | |
* template[/etc/httpd/conf.d/clowns.conf] action create[2014-08-19T19:25:39+00:00] INFO: Processing template[/etc/httpd/conf.d/clowns.conf] action create (apache::default line 36) | |
[2014-08-19T19:25:39+00:00] INFO: template[/etc/httpd/conf.d/clowns.conf] created file /etc/httpd/conf.d/clowns.conf | |
- create new file /etc/httpd/conf.d/clowns.conf | |
[2014-08-19T19:25:39+00:00] INFO: template[/etc/httpd/conf.d/clowns.conf] updated file contents /etc/httpd/conf.d/clowns.conf | |
- update content in file /etc/httpd/conf.d/clowns.conf from none to f8127f | |
--- /etc/httpd/conf.d/clowns.conf 2014-08-19 19:25:39.247257290 +0000 | |
+++ /tmp/chef-rendered-template20140819-2529-1uwgbjp 2014-08-19 19:25:39.248257790 +0000 | |
@@ -1 +1,17 @@ | |
+ | |
+<VirtualHost *:80> | |
+ ServerAdmin webmaster@localhost | |
+ | |
+ DocumentRoot /srv/apache/clowns | |
+ <Directory /> | |
+ Options FollowSymLinks | |
+ AllowOverride None | |
+ </Directory> | |
+ <Directory /srv/apache/clowns> | |
+ Options Indexes FollowSymLinks MultiViews | |
+ AllowOverride None | |
+ Order allow,deny | |
+ allow from all | |
+ </Directory> | |
+</VirtualHost> | |
[2014-08-19T19:25:39+00:00] INFO: template[/etc/httpd/conf.d/clowns.conf] mode changed to 644 | |
- change mode from '' to '0644' | |
- restore selinux security context | |
[2014-08-19T19:25:39+00:00] INFO: template[/etc/httpd/conf.d/clowns.conf] sending restart action to service[httpd] (immediate) | |
* service[httpd] action restart[2014-08-19T19:25:39+00:00] INFO: Processing service[httpd] action restart (apache::default line 13) | |
[2014-08-19T19:25:41+00:00] INFO: service[httpd] restarted | |
- restart service service[httpd] | |
* directory[/srv/apache/clowns] action create[2014-08-19T19:25:41+00:00] INFO: Processing directory[/srv/apache/clowns] action create (apache::default line 47) | |
[2014-08-19T19:25:41+00:00] INFO: directory[/srv/apache/clowns] created directory /srv/apache/clowns | |
- create new directory /srv/apache/clowns | |
[2014-08-19T19:25:41+00:00] INFO: directory[/srv/apache/clowns] mode changed to 755 | |
- change mode from '' to '0755' | |
- restore selinux security context | |
* template[/srv/apache/clowns/index.html] action create[2014-08-19T19:25:41+00:00] INFO: Processing template[/srv/apache/clowns/index.html] action create (apache::default line 54) | |
[2014-08-19T19:25:41+00:00] INFO: template[/srv/apache/clowns/index.html] created file /srv/apache/clowns/index.html | |
- create new file /srv/apache/clowns/index.html | |
[2014-08-19T19:25:41+00:00] INFO: template[/srv/apache/clowns/index.html] updated file contents /srv/apache/clowns/index.html | |
- update content in file /srv/apache/clowns/index.html from none to ad9c2c | |
--- /srv/apache/clowns/index.html 2014-08-19 19:25:41.204235291 +0000 | |
+++ /tmp/chef-rendered-template20140819-2529-1m41nin 2014-08-19 19:25:41.204235291 +0000 | |
@@ -1 +1,15 @@ | |
+<html> | |
+ <body> | |
+ <h1>Hello, Universe!</h1> | |
+ | |
+ <p> | |
+ We love clowns | |
+ </p> | |
+ | |
+ <p> | |
+ I am 10.0.2.15:80 | |
+ </p> | |
+ | |
+ </body> | |
+</html> | |
[2014-08-19T19:25:41+00:00] INFO: template[/srv/apache/clowns/index.html] mode changed to 644 | |
- change mode from '' to '0644' | |
- restore selinux security context | |
* template[/etc/httpd/conf.d/bears.conf] action create[2014-08-19T19:25:41+00:00] INFO: Processing template[/etc/httpd/conf.d/bears.conf] action create (apache::default line 36) | |
[2014-08-19T19:25:41+00:00] INFO: template[/etc/httpd/conf.d/bears.conf] created file /etc/httpd/conf.d/bears.conf | |
- create new file /etc/httpd/conf.d/bears.conf | |
[2014-08-19T19:25:41+00:00] INFO: template[/etc/httpd/conf.d/bears.conf] updated file contents /etc/httpd/conf.d/bears.conf | |
- update content in file /etc/httpd/conf.d/bears.conf from none to 02defd | |
--- /etc/httpd/conf.d/bears.conf 2014-08-19 19:25:41.392329291 +0000 | |
+++ /tmp/chef-rendered-template20140819-2529-7fqrm1 2014-08-19 19:25:41.394330290 +0000 | |
@@ -1 +1,18 @@ | |
+ Listen 81 | |
+ | |
+<VirtualHost *:81> | |
+ ServerAdmin webmaster@localhost | |
+ | |
+ DocumentRoot /srv/apache/bears | |
+ <Directory /> | |
+ Options FollowSymLinks | |
+ AllowOverride None | |
+ </Directory> | |
+ <Directory /srv/apache/bears> | |
+ Options Indexes FollowSymLinks MultiViews | |
+ AllowOverride None | |
+ Order allow,deny | |
+ allow from all | |
+ </Directory> | |
+</VirtualHost>[2014-08-19T19:25:41+00:00] INFO: template[/etc/httpd/conf.d/bears.conf] mode changed to 644 | |
- change mode from '' to '0644' | |
- restore selinux security context | |
[2014-08-19T19:25:41+00:00] INFO: template[/etc/httpd/conf.d/bears.conf] sending restart action to service[httpd] (immediate) | |
* service[httpd] action restart[2014-08-19T19:25:41+00:00] INFO: Processing service[httpd] action restart (apache::default line 13) | |
[2014-08-19T19:25:42+00:00] INFO: service[httpd] restarted | |
- restart service service[httpd] | |
* directory[/srv/apache/bears] action create[2014-08-19T19:25:42+00:00] INFO: Processing directory[/srv/apache/bears] action create (apache::default line 47) | |
[2014-08-19T19:25:42+00:00] INFO: directory[/srv/apache/bears] created directory /srv/apache/bears | |
- create new directory /srv/apache/bears | |
[2014-08-19T19:25:42+00:00] INFO: directory[/srv/apache/bears] mode changed to 755 | |
- change mode from '' to '0755' | |
- restore selinux security context | |
* template[/srv/apache/bears/index.html] action create[2014-08-19T19:25:43+00:00] INFO: Processing template[/srv/apache/bears/index.html] action create (apache::default line 54) | |
[2014-08-19T19:25:43+00:00] INFO: template[/srv/apache/bears/index.html] created file /srv/apache/bears/index.html | |
- create new file /srv/apache/bears/index.html | |
[2014-08-19T19:25:43+00:00] INFO: template[/srv/apache/bears/index.html] updated file contents /srv/apache/bears/index.html | |
- update content in file /srv/apache/bears/index.html from none to dfa6d8 | |
--- /srv/apache/bears/index.html 2014-08-19 19:25:43.002133789 +0000 | |
+++ /tmp/chef-rendered-template20140819-2529-1b1gnca 2014-08-19 19:25:43.002133790 +0000 | |
@@ -1 +1,15 @@ | |
+<html> | |
+ <body> | |
+ <h1>Hello, Universe!</h1> | |
+ | |
+ <p> | |
+ We love bears | |
+ </p> | |
+ | |
+ <p> | |
+ I am 10.0.2.15:81 | |
+ </p> | |
+ | |
+ </body> | |
+</html>[2014-08-19T19:25:43+00:00] INFO: template[/srv/apache/bears/index.html] mode changed to 644 | |
- change mode from '' to '0644' | |
- restore selinux security context | |
[2014-08-19T19:25:43+00:00] INFO: Chef Run complete in 51.99308542 seconds | |
Running handlers: | |
[2014-08-19T19:25:43+00:00] INFO: Running report handlers | |
Running handlers complete | |
[2014-08-19T19:25:43+00:00] INFO: Report handlers complete | |
Chef Client finished, 14/14 resources updated in 59.487959904 seconds | |
Finished converging <default-centos-64> (1m41.46s). | |
-----> Setting up <default-centos-64>... | |
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 <default-centos-64> (1m7.97s). | |
-----> Verifying <default-centos-64>... | |
Suite path directory /tmp/busser/suites does not exist, skipping. | |
Uploading /tmp/busser/suites/serverspec/default_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/default_spec.rb --color --format documentation | |
apache | |
is installed | |
is running | |
is enabled | |
clowns website | |
is listening on port 80 | |
displays a custom home page | |
bears website | |
is listening on port 81 | |
displays a custom home page | |
Finished in 0.23275 seconds | |
7 examples, 0 failures | |
Finished verifying <default-centos-64> (0m1.59s). | |
-----> Destroying <default-centos-64>... | |
[default] Forcing shutdown of VM... | |
[default] Destroying VM and associated drives... | |
Vagrant instance <default-centos-64> destroyed. | |
Finished destroying <default-centos-64> (0m8.06s). | |
Finished testing <default-centos-64> (3m56.60s). | |
-----> Kitchen is finished. (3m57.20s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment