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
root@ip-10-196-203-96:~# chef-solo -l debug -c solo.rb -j chef.json | |
[Thu, 26 Aug 2010 22:19:22 +0000] INFO: Starting Chef Solo Run | |
[Thu, 26 Aug 2010 22:19:22 +0000] DEBUG: Loading plugin os | |
[Thu, 26 Aug 2010 22:19:22 +0000] DEBUG: Loading plugin kernel | |
[Thu, 26 Aug 2010 22:19:22 +0000] DEBUG: Loading plugin ruby | |
[Thu, 26 Aug 2010 22:19:22 +0000] DEBUG: Loading plugin languages | |
[Thu, 26 Aug 2010 22:19:22 +0000] DEBUG: ---- Begin ruby -e "require 'rbconfig'; puts %Q(host_cpu=#{::Config::CONFIG['host_cpu']},host_vendor=#{::Config::CONFIG['host_vendor']},release_date=#{RUBY_RELEASE_DATE},bin_dir=#{::Config::CONFIG['bindir']},host=#{::Config::CONFIG['host']},target_cpu=#{::Config::CONFIG['target_cpu']},ruby_bin=#{::File.join(::Config::CONFIG['bindir'], ::Config::CONFIG['ruby_install_name'])},host_os=#{::Config::CONFIG['host_os']},target_vendor=#{::Config::CONFIG['target_vendor']},version=#{RUBY_VERSION},platform=#{RUBY_PLATFORM},target_os=#{::Config::CONFIG['target_os']},target=#{::Config::CONFIG['target']},)" ST |
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
root@ip-10-196-203-96:~# chef-solo -l debug -c solo.rb -j chef.json -r http://s3.amazonaws.com/chef-solo/bootstrap-0.8.10_fix_runit_lucid.tar.gz | |
[Thu, 26 Aug 2010 21:51:13 +0000] DEBUG: Creating path /tmp/chef-solo to extract recipes into | |
[Thu, 26 Aug 2010 21:51:13 +0000] DEBUG: Executing tar zxvfC /tmp/chef-solo/recipes.tgz /tmp/chef-solo | |
[Thu, 26 Aug 2010 21:51:14 +0000] DEBUG: ---- Begin output of tar zxvfC /tmp/chef-solo/recipes.tgz /tmp/chef-solo ---- | |
[Thu, 26 Aug 2010 21:51:14 +0000] DEBUG: STDOUT: cookbooks/apache2/ | |
cookbooks/apache2/attributes/ | |
cookbooks/apache2/definitions/ | |
cookbooks/apache2/files/ | |
cookbooks/apache2/metadata.json | |
cookbooks/apache2/metadata.rb |
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
root@ip-10-196-203-96:~# chef-solo -l debug -c solo.rb -j chef.json -r http://s3.amazonaws.com/chef-solo/bootstrap-0.8.10_fix_runit_lucid.tar.gz | |
[Thu, 26 Aug 2010 21:43:31 +0000] DEBUG: Creating path /tmp/chef-solo to extract recipes into | |
/usr/lib/ruby/1.8/open-uri.rb:277:in `open_http': 403 Forbidden (OpenURI::HTTPError) | |
from /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open' | |
from /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop' | |
from /usr/lib/ruby/1.8/open-uri.rb:162:in `catch' | |
from /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop' | |
from /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri' | |
from /usr/lib/ruby/1.8/open-uri.rb:518:in `open' |
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
root@ip-10-196-203-96:~# chef-solo -l debug -c solo.rb -j chef.json -r http://s3.amazonaws.com/chef-solo/bootstrap-0.8.10.tar.gz | |
[Thu, 26 Aug 2010 21:22:24 +0000] DEBUG: Creating path /tmp/chef-solo to extract recipes into | |
[Thu, 26 Aug 2010 21:22:25 +0000] DEBUG: Executing tar zxvfC /tmp/chef-solo/recipes.tgz /tmp/chef-solo | |
[Thu, 26 Aug 2010 21:22:25 +0000] DEBUG: ---- Begin output of tar zxvfC /tmp/chef-solo/recipes.tgz /tmp/chef-solo ---- | |
[Thu, 26 Aug 2010 21:22:25 +0000] DEBUG: STDOUT: cookbooks/apache2/ | |
cookbooks/apache2/attributes/ | |
cookbooks/apache2/attributes/apache.rb | |
cookbooks/apache2/definitions/ | |
cookbooks/apache2/definitions/apache_conf.rb |
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
root@ip-10-204-37-155:~# chef-solo -l debug -c solo.rb -j chef.json -r http://s3.amazonaws.com/chef-solo/bootstrap-0.8.16.tar.gz | |
[Thu, 26 Aug 2010 19:02:27 +0000] DEBUG: Creating path /tmp/chef-solo to extract recipes into | |
[Thu, 26 Aug 2010 19:02:27 +0000] DEBUG: Executing tar zxvfC /tmp/chef-solo/recipes.tgz /tmp/chef-solo | |
[Thu, 26 Aug 2010 19:02:27 +0000] DEBUG: ---- Begin output of tar zxvfC /tmp/chef-solo/recipes.tgz /tmp/chef-solo ---- | |
[Thu, 26 Aug 2010 19:02:27 +0000] DEBUG: STDOUT: cookbooks/apache2/ | |
cookbooks/apache2/attributes/ | |
cookbooks/apache2/attributes/default.rb | |
cookbooks/apache2/definitions/ | |
cookbooks/apache2/definitions/apache_conf.rb | |
cookbooks/apache2/definitions/apache_module.rb |
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 daemon 30 # with start delay 30 | |
set mailserver localhost # sudo apt-get install postfix | |
set mail-format { from: [email protected] } | |
set alert [email protected] | |
set logfile /var/log/monit.log | |
check process redis-server with pidfile /var/run/redis.pid | |
start program = "/usr/local/bin/redis-server /data/redis/redis.conf" | |
stop program = "/usr/bin/killall -9 redis-server" | |
if totalmem is greater than 500.0 MB for 5 cycles then alert | |
if cpu is greater than 80% for 5 cycles then alert |
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
*** LOCAL GEMS *** | |
abstract (1.0.0) | |
actionmailer (2.3.5) | |
actionpack (2.3.5) | |
activerecord (2.3.5) | |
activeresource (2.3.5) | |
activesupport (2.3.5) | |
amazon-ec2 (0.9.10) | |
amqp (0.6.7) |
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
# 1 | |
execute "apt-get-update" do | |
command "apt-get update" | |
end | |
############################## | |
# 2 | |
e = execute "apt-get-update" do | |
command "apt-get update" | |
action :run |
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
# Command definitions | |
# | |
# Automatically generated by Chef | |
# Host checks | |
define command { | |
command_name check-host-alive | |
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 2000,80% -c 3000,100% -p 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
ubuntu@qa-admin-server-2:/tmp$ sudo /etc/init.d/rabbitmq-server start | |
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err | |
rabbitmq-server. |