megumiteam/chef-amimoto — pull request #6 by sawanoboly (2013-10-09 11:39:57+00:00)
Title: Add report handler

Chefのログにリソース一覧を出力するレシピを追加。

ついでに`/var/chef/reports/`にChef実行後のレポートを出力、利用する時はランリストに追加する。

```
[2013-10-09T20:29:13+09:00] INFO: Chef Run complete in 6.481720036 seconds
[2013-10-09T20:29:13+09:00] INFO: Running report handlers
[2013-10-09T20:29:13+09:00] WARN: ======= All Resources are following...
[2013-10-09T20:29:13+09:00] WARN: 0:link[/etc/localtime]
[2013-10-09T20:29:13+09:00] WARN: 1:package[zip]
[2013-10-09T20:29:13+09:00] WARN: 2:package[unzip]
[2013-10-09T20:29:13+09:00] WARN: 3:package[wget]
[2013-10-09T20:29:13+09:00] WARN: 4:package[iptables]
[2013-10-09T20:29:13+09:00] WARN: 5:package[git]
[2013-10-09T20:29:13+09:00] WARN: 6:package[memcached]
[2013-10-09T20:29:13+09:00] WARN: 7:service[memcached]
[2013-10-09T20:29:13+09:00] WARN: 8:cookbook_file[/tmp/kitchen-chef-solo/cache/percona-release-0.0-1.x86_64.rpm]
[2013-10-09T20:29:13+09:00] WARN: 9:package[percona-release]
[2013-10-09T20:29:13+09:00] WARN: 10:package[Percona-Server-server-55]
[2013-10-09T20:29:13+09:00] WARN: 11:package[Percona-Server-client-55]
[2013-10-09T20:29:13+09:00] WARN: 12:package[Percona-Server-shared-compat]
[2013-10-09T20:29:13+09:00] WARN: 13:service[httpd]
[2013-10-09T20:29:13+09:00] WARN: 14:package[nginx]
[2013-10-09T20:29:13+09:00] WARN: 15:package[php54]
[2013-10-09T20:29:13+09:00] WARN: 16:package[php54-cli]
[2013-10-09T20:29:13+09:00] WARN: 17:package[php54-fpm]
[2013-10-09T20:29:13+09:00] WARN: 18:package[php54-devel]
[2013-10-09T20:29:13+09:00] WARN: 19:package[php54-mbstring]
[2013-10-09T20:29:13+09:00] WARN: 20:package[php54-gd]
[2013-10-09T20:29:13+09:00] WARN: 21:package[php-pear]
[2013-10-09T20:29:13+09:00] WARN: 22:package[php54-xml]
[2013-10-09T20:29:13+09:00] WARN: 23:package[php54-mcrypt]
[2013-10-09T20:29:13+09:00] WARN: 24:package[php54-mysqlnd]
[2013-10-09T20:29:13+09:00] WARN: 25:package[php54-pdo]
[2013-10-09T20:29:13+09:00] WARN: 26:package[php54-pecl-apc]
[2013-10-09T20:29:13+09:00] WARN: 27:package[php54-pecl-memcache]
[2013-10-09T20:29:13+09:00] WARN: 28:service[mysql]
[2013-10-09T20:29:13+09:00] WARN: 29:template[/etc/my.cnf]
[2013-10-09T20:29:13+09:00] WARN: 30:template[/etc/nginx/nginx.conf]
[2013-10-09T20:29:13+09:00] WARN: 31:template[/etc/nginx/drop]
[2013-10-09T20:29:13+09:00] WARN: 32:template[/etc/nginx/expires]
[2013-10-09T20:29:13+09:00] WARN: 33:template[/etc/nginx/mobile-detect]
[2013-10-09T20:29:13+09:00] WARN: 34:template[/etc/nginx/phpmyadmin]
[2013-10-09T20:29:13+09:00] WARN: 35:template[/etc/nginx/wp-multisite-subdir]
[2013-10-09T20:29:13+09:00] WARN: 36:template[/etc/nginx/wp-singlesite]
[2013-10-09T20:29:13+09:00] WARN: 37:template[/etc/nginx/conf.d/default.conf]
[2013-10-09T20:29:13+09:00] WARN: 38:template[/etc/nginx/conf.d/default.backend.conf]
[2013-10-09T20:29:13+09:00] WARN: 39:directory[/var/cache/nginx]
[2013-10-09T20:29:13+09:00] WARN: 40:directory[/var/log/nginx]
[2013-10-09T20:29:13+09:00] WARN: 41:directory[/var/www/vhosts/i-2d374328]
[2013-10-09T20:29:13+09:00] WARN: 42:service[nginx]
[2013-10-09T20:29:13+09:00] WARN: 43:template[/etc/php.d/apc.ini]
[2013-10-09T20:29:13+09:00] WARN: 44:template[/etc/php.d/memcache.ini]
[2013-10-09T20:29:13+09:00] WARN: 45:template[/etc/php.ini]
[2013-10-09T20:29:13+09:00] WARN: 46:template[/etc/php-fpm.conf]
[2013-10-09T20:29:13+09:00] WARN: 47:template[/etc/php-fpm.d/www.conf]
[2013-10-09T20:29:13+09:00] WARN: 48:directory[/var/tmp/php/session]
[2013-10-09T20:29:13+09:00] WARN: 49:directory[/var/log/php-fpm]
[2013-10-09T20:29:13+09:00] WARN: 50:service[php-fpm]
[2013-10-09T20:29:13+09:00] WARN: 51:directory[/usr/share/wp-cli]
[2013-10-09T20:29:13+09:00] WARN: 52:remote_file[/usr/share/wp-cli/installer.sh]
[2013-10-09T20:29:13+09:00] WARN: 53:bash[install wp-cli]
[2013-10-09T20:29:13+09:00] WARN: 54:link[/usr/bin/wp]
[2013-10-09T20:29:13+09:00] WARN: ======= Update Resources are following...
[2013-10-09T20:29:13+09:00] WARN: 0:cookbook_file[/tmp/kitchen-chef-solo/cache/percona-release-0.0-1.x86_64.rpm]
[2013-10-09T20:29:13+09:00] WARN: 1:service[nginx]
[2013-10-09T20:29:13+09:00] WARN: 2:service[php-fpm]
[2013-10-09T20:29:13+09:00] WARN: 3:bash[install wp-cli]
[2013-10-09T20:29:13+09:00] INFO: Creating JSON run report
[2013-10-09T20:29:13+09:00] INFO: Report handlers complete
Chef Client finished, 4 resources updated
```