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
| $ sudo chef-client | |
| Starting Chef Client, version 11.6.0 | |
| resolving cookbooks for run list: ["et_base", "logserver"] | |
| Synchronizing Cookbooks: | |
| - et_base | |
| - chef-solo-search | |
| - apt | |
| - postfix | |
| - chef_handler | |
| - yum |
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
| set['logstash']['service_options']['url'] = "http://ops.evertrue.com.s3.amazonaws.com/pkgs/logstash-1.1.13-flatjar.jar" | |
| set['logstash']['service_options']['checksum'] = "5ba0639ff4da064c2a4f6a04bd7006b1997a6573859d3691e210b6855e1e47f1" | |
| set['logstash']['service_options']['version'] = "1.1.13-flatjar" | |
| set['logstash']['service_options']['service_type'] = "runit" | |
| set["logstash"]["shipper"]["redis_hosts"] = [ "127.0.0.1" ] |
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
| action :create do | |
| template new_resource.path do | |
| source "other_template.erb" | |
| action :nothing | |
| end | |
| t = template "#{Chef::Config[:file_cache_path]}/#{apex}.zone" do | |
| source "zone.erb" | |
| notifies :create, "template[#{new_resource.path}]" |
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
| recipes/default.rb: | |
| g = gem_package "fog" do | |
| action :nothing | |
| end | |
| g.run_action(:install) | |
| require 'fog' |
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
| include_recipe "chef_gem" | |
| p = package "libxslt-dev" do | |
| action :nothing | |
| end | |
| p.run_action(:install) | |
| p = package "libxml2-dev" do | |
| action :nothing |
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
| packagename="PACKAGE" | |
| case node["platform"] | |
| when "debian","ubuntu" | |
| pkg_chk_cmd="dpkg -s #{packagename}" | |
| when "redhat","centos","fedora","amazon","scientific" | |
| pkg_chk_cmd="yum list installed #{packagename}" | |
| end | |
| if `#{pkg_chk_cmd}` |
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
| ec2-107-21-90-172.compute-1.amazonaws.com [Sat, 09 Jun 2012 20:52:56 +0000] INFO: Processing chef_gem[ruby-shadow] action install (dynamically defined) | |
| ec2-107-21-90-172.compute-1.amazonaws.com [Sat, 09 Jun 2012 20:53:01 +0000] ERROR: chef_gem[ruby-shadow] (dynamically defined) has had an error | |
| ec2-107-21-90-172.compute-1.amazonaws.com [Sat, 09 Jun 2012 20:53:01 +0000] ERROR: Running exception handlers | |
| ec2-107-21-90-172.compute-1.amazonaws.com [Sat, 09 Jun 2012 20:53:01 +0000] FATAL: Saving node information to /var/chef/cache/failed-run-data.json | |
| ec2-107-21-90-172.compute-1.amazonaws.com [Sat, 09 Jun 2012 20:53:01 +0000] ERROR: Exception handlers complete | |
| ec2-107-21-90-172.compute-1.amazonaws.com [Sat, 09 Jun 2012 20:53:01 +0000] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
| ec2-107-21-90-172.compute-1.amazonaws.com [Sat, 09 Jun 2012 20:53:01 +0000] FATAL: Mixlib::ShellOut::ShellCommandFailed: chef_gem[ruby-shadow] (dynamically defined) had an error: Mixlib::ShellOut::ShellCommandFailed: Exp |
NewerOlder