Skip to content

Instantly share code, notes, and snippets.

View rcreasey's full-sized avatar
🎯
Focusing

Ryan C. Creasey rcreasey

🎯
Focusing
View GitHub Profile
We couldn’t find that file to show.
[root@localhost recipes]# /usr/bin/chef-solo -c /export/skynet/solo.rb -j /export/skynet/skynet-cloud.json
[Thu, 22 Oct 2009 08:27:39 -0700] INFO: Starting Chef Solo Run
[Thu, 22 Oct 2009 08:27:40 -0700] INFO: Ran execute[/bin/hostname skynet-cloud-01.intelenet.colo.fimops.com] successfully
[Thu, 22 Oct 2009 08:27:40 -0700] INFO: Ran execute[/sbin/chkconfig autofs on] successfully
[Thu, 22 Oct 2009 08:27:40 -0700] INFO: Enabled /z/hostdata
[Thu, 22 Oct 2009 08:27:40 -0700] INFO: mount[/z/hostdata]: enabled successfully
[Thu, 22 Oct 2009 08:27:40 -0700] INFO: Enabled /z/admin
[Thu, 22 Oct 2009 08:27:40 -0700] INFO: mount[/z/admin]: enabled successfully
[Thu, 22 Oct 2009 08:27:40 -0700] INFO: Enabled /z/tools
[Thu, 22 Oct 2009 08:27:40 -0700] INFO: mount[/z/tools]: enabled successfully
#!/bin/env ruby
vm_label = ARGV[0]
if vm_label.nil?
puts "You need to specify a new vm label."
exit
end
sr_uuid = ARGV[1]
sr_uuid = "bb50e600-55b9-f383-ffc9-7dc7c976e259" if sr_uuid.nil?
install
url --url http://10.15.0.50/centos/5/os/x86_64/
lang en_US.UTF-8
rootpw --iscrypted $1$Hi/9xDlZ$nrLa2780lRFXv4QPEK./I0
firewall --disabled
authconfig --enableshadow --enablemd5
selinux --permissive
timezone America/Los_Angeles
bootloader --location=mbr --driveorder=xvda --append="console=xvc0"
clearpart --all --initlabel
[Tue, 27 Oct 2009 08:55:02 -0700] INFO: Starting Chef Solo Run
[Tue, 27 Oct 2009 08:55:03 -0700] INFO: You specified service style 'init'.
[Tue, 27 Oct 2009 08:55:03 -0700] INFO: 'init' scripts available in /usr/lib/ruby/gems/1.8/gems/chef-0.7.10/distro
[Tue, 27 Oct 2009 08:55:03 -0700] INFO: Ran execute[/bin/hostname skynet-cloud-02.intelenet.colo.ignops.com] successfully
[Tue, 27 Oct 2009 08:55:03 -0700] INFO: Updating template[/etc/hosts] at /etc/hosts
[Tue, 27 Oct 2009 08:55:03 -0700] INFO: Backing up template[/etc/hosts] to /etc/hosts.chef-20091027085503
[Tue, 27 Oct 2009 08:55:03 -0700] INFO: Updating template[/etc/sysconfig/network-scripts/ifcfg-eth0] at /etc/sysconfig/network-scripts/ifcfg-eth0
[Tue, 27 Oct 2009 08:55:03 -0700] INFO: Backing up template[/etc/sysconfig/network-scripts/ifcfg-eth0] to /etc/sysconfig/network-scripts/ifcfg-eth0.chef-20091027085503
[Tue, 27 Oct 2009 08:55:03 -0700] INFO: Updating template[/etc/sysconfig/network] at /etc/sysconfig/network
[Tue, 27 Oct 2009 08:55:03 -0700] IN
[root@localhost skynet]# /usr/bin/chef-solo -c /export/skynet/solo.rb -j /export/skynet/gstmatch-prodstor-05.intelenet.colo.fimops.com.json -r http://10.92.76.125:81/skynet-bootstrap.tar.gz
[Fri, 30 Oct 2009 15:56:28 -0700] INFO: Starting Chef Solo Run
[Fri, 30 Oct 2009 15:56:29 -0700] INFO: You specified service style 'init'.
[Fri, 30 Oct 2009 15:56:29 -0700] INFO: 'init' scripts available in /usr/lib/ruby/gems/1.8/gems/chef-0.7.10/distro
[Fri, 30 Oct 2009 15:56:29 -0700] INFO: Ran execute[/bin/hostname gstmatch-protstor-05.intelenet.colo.fimops.com] successfully
[Fri, 30 Oct 2009 15:56:34 -0700] INFO: Ran execute[/sbin/chkconfig autofs on] successfully
[Fri, 30 Oct 2009 15:56:34 -0700] INFO: Creating template[/etc/auto_home] at /etc/auto_home
[Fri, 30 Oct 2009 15:56:34 -0700] INFO: Setting owner to 0 for template[/etc/auto_home]
[Fri, 30 Oct 2009 15:56:34 -0700] INFO: Setting group to 0 for template[/etc/auto_home]
[Fri, 30 Oct 2009 15:56:34 -0700] INFO: Setting mode to 644 for template[/etc/auto_home]
arkham:skynet_cookbooks ryan$ diff -u cookbooks/farms/providers/useradd.rb ../chef/chef/lib/chef/provider/user/useradd.rb
--- cookbooks/farms/providers/useradd.rb 2009-10-29 17:25:50.000000000 -0700
+++ ../chef/chef/lib/chef/provider/user/useradd.rb 2009-11-03 10:44:03.000000000 -0800
@@ -94,7 +94,7 @@
opts << " -d '#{@new_resource.home}' -m"
else
Chef::Log.debug("Setting #{@new_resource} home to #{@new_resource.home}")
- opts << " -d '#{@new_resource.home}' -M"
+ opts << " -d '#{@new_resource.home}'"
end
[rcreasey@admin04 /nfs/distro/xenserver/5.5]$ find .
.
./packages.main
./packages.main/docs.tar.bz2
./packages.main/dom0fs.tar.bz2
./packages.main/el4.5-binaries.tar.bz2
./packages.main/el4.6-binaries.tar.bz2
./packages.main/el4.7-binaries.tar.bz2
./packages.main/el5.0-binaries.tar.bz2
./packages.main/el5.1-binaries.tar.bz2
[Tue, 24 Nov 2009 15:04:27 -0800] WARN: service[httpd]: falling back to process table inspection
[Tue, 24 Nov 2009 15:04:27 -0800] WARN: service[httpd]: attempting to match 'httpd' ((?-mix:httpd)) against process list
set_unless[:users] = Mash.new
set_unless[:groups] = Mash.new