This file contains 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@unknown:~# cat /opt/csw/lib/ruby/gems/1.8/gems/json-1.4.2/ext/json/ext/generator/gem_make.out | |
/opt/csw/bin/ruby extconf.rb | |
checking for ruby/re.h... no | |
checking for re.h... yes | |
checking for ruby/encoding.h... no | |
creating Makefile | |
make | |
/opt/csw/gcc4/bin/gcc -I. -I/opt/csw/lib/ruby/1.8/i386-solaris2.10 -I/opt/csw/lib/ruby/1.8/i386-solaris2.10 -I. -DHAVE_RE_H -I/opt/csw/include -D_FILE_OFFSET_BITS=64 -fPIC -mtune=i686 -O3 -fno-strict-aliasing -pipe -m32 -march=i386 -I/opt/csw/include -fPIC -Wall -c generator.c | |
In file included from /opt/csw/gcc4/lib/gcc/i386-pc-solaris2.8/4.3.3/include-fixed/string.h:27, |
This file contains 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
search(:node, 'nagios_monitor_removal:[* TO *]') do |monitoring_node| | |
if(monitoring_node[:nagios][:monitor_removal].include?(node[:hostname])) | |
node[:reclamation][:was_shut_down] = true | |
ruby_block "shutdown" do | |
block do | |
node.save | |
end | |
end |
This file contains 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
kurt@cadmium:~/chef-repo/site-cookbooks$ knife node show newlithium.rdc.internal -a fqdn{ | |
"fqdn": "newlithium.rdc.internal" | |
} | |
kurt@cadmium:~/chef-repo/site-cookbooks$ knife search node 'fqdn:newlithium.rdc.internal' -a fqdn | |
{ | |
"total": 0, | |
"start": 0, | |
"rows": [ | |
] |
This file contains 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
2010-08-04_22:44:44.90611 [Wed, 04 Aug 2010 18:44:44 -0400] INFO: Indexing node 8188a01c-8c8b-43b6-b63f-d4993421ba51 from chef/usr/lib/ruby/1.8/timeout.rb:60:in `rbuf_fill': execution expired (Timeout::Error) | |
2010-08-04_22:51:30.36956 from /usr/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill' | |
2010-08-04_22:51:30.36957 from /usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil' | |
2010-08-04_22:51:30.36958 from /usr/lib/ruby/1.8/net/protocol.rb:126:in `readline' | |
2010-08-04_22:51:30.36959 from /usr/lib/ruby/1.8/net/http.rb:2020:in `read_status_line' | |
2010-08-04_22:51:30.36960 from /usr/lib/ruby/1.8/net/http.rb:2009:in `read_new' | |
2010-08-04_22:51:30.36961 from /usr/lib/ruby/1.8/net/http.rb:1050:in `request' | |
2010-08-04_22:51:30.36961 from /usr/lib/ruby/1.8/net/http.rb:1037:in `request' | |
2010-08-04_22:51:30.36962 from /usr/lib/ruby/1.8/net/http.rb:543:in `start' | |
2010-08-04_22:51:30.36963 from /usr/lib/ruby/1.8/net/http.rb:1035:in `request' |
This file contains 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
INFO: Starting Chef Run | |
INFO: Ran execute[find /var/chef/cache/checksums -type f -mtime +5 | xargs rm -f] successfully | |
ERROR: package[rdiff-backup] (/srv/chef/cache/cookbooks/rdiff_backup/recipes/default.rb line 51) had an error: | |
yum failed - #<Process::Status: pid=26056,exited(1)> - returns: Traceback (most recent call last): | |
File "/usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/provider/package/yum-dump.py", line 104, in ? | |
y.doUnlock(PIDFILE) | |
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1167, in doUnlock | |
if hasattr(self, 'preconf') or self.conf.uid != 0: | |
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 664, in <lambda> | |
conf = property(fget=lambda self: self._getConfig(), |
This file contains 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
kurt@darmstadtium:/usr/lib/ruby/gems/1.8/gems/chef-0.8.16/lib/chef/provider/package$ sudo python yum-dump.py | |
[sudo] password for kurt: | |
Traceback (most recent call last): | |
File "yum-dump.py", line 104, in ? | |
y.doUnlock(PIDFILE) | |
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1167, in doUnlock | |
if hasattr(self, 'preconf') or self.conf.uid != 0: | |
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 664, in <lambda> | |
conf = property(fget=lambda self: self._getConfig(), | |
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 194, in _getConfig |
This file contains 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
kurt@darmstadtium:/usr/lib/ruby/gems/1.8/gems/chef-0.8.16/lib/chef/provider/package$ yum list updates | |
Loaded plugins: fastestmirror, replace | |
kurt@darmstadtium:/usr/lib/ruby/gems/1.8/gems/chef-0.8.16/lib/chef/provider/package$ echo $?0 | |
kurt@darmstadtium:/usr/lib/ruby/gems/1.8/gems/chef-0.8.16/lib/chef/provider/package$ yum list available |wc | |
8732 26085 706572 | |
kurt@darmstadtium:/usr/lib/ruby/gems/1.8/gems/chef-0.8.16/lib/chef/provider/package$ echo $?0 | |
kurt@darmstadtium:/usr/lib/ruby/gems/1.8/gems/chef-0.8.16/lib/chef/provider/package$ yum --version | |
3.2.22 | |
Installed: rpm-4.4.2.3-18.el5.x86_64 at 2010-04-23 01:22 | |
Built : [] at 2009-09-04 00:25 |
This file contains 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
kurt@darmstadtium:~$ rpm -q -a | grep yum- | |
yum-fastestmirror-1.1.16-14.el5.centos.1 | |
yum-utils-1.1.16-14.el5.centos.1 | |
yum-updatesd-0.9-2.el5 | |
yum-3.2.22-26.el5.centos | |
yum-plugin-replace-0.2-1.el5 | |
yum-metadata-parser-1.1.2-3.el5.centos |
This file contains 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
kurt@darmstadtium:~$ yum info yum-plugin-replace | |
Loaded plugins: fastestmirror, replace | |
addons | 951 B 00:00 | |
base | 2.1 kB 00:00 | |
epel | 3.4 kB 00:00 | |
extras | 2.1 kB 00:00 | |
ius | 1.9 kB 00:00 | |
ruby | 951 B 00:00 | |
updates | 1.9 kB 00:00 | |
Installed Packages |
This file contains 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
template 'heartbeat' do | |
action :nothing | |
backup false | |
group "root" | |
mode "0644" | |
owner "root" | |
path "#{@node[:chef][:helper_path]}/heartbeat" | |
source "heartbeat.erb" | |
end |