Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
part /boot --fstype ext3 --size=100 --ondisk=xvda
part pv.2 --size=0 --grow --ondisk=xvda
volgroup VolGroup00 --pesize=32768 pv.2
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=272 --grow --maxsize=544
reboot
%packages
@development-libs
@text-internet
@core
@base
@ruby
%post
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm
rpm -Uvh http://download.elff.bravenet.com/5/x86_64/elff-release-5-3.noarch.rpm
yum -y remove httpd
yum -y install rubygems
yum -y install rubygem-chef
mkdir -p /export/chef
/usr/bin/wget -q http://10.15.0.50/ks/solo.rb -O /export/chef/solo.rb
/usr/bin/wget -q http://10.15.0.50/ks/skynet-cloud.json -O /export/chef/skynet-cloud-01.json
/usr/bin/chef-solo -c /export/chef/solo.rb -j /export/chef/skynet-cloud-01.json -r http://s3.amazonaws.com/chef-solo/bootstrap-0.7.10-latest.tar.gz
{
"scaffold": {
"hostname": "skynet-cloud-01",
"fqdn": "intelenet.colo.ignops.com",
"ip_address": "10.92.76.140",
"net_device": "eth0",
"netmask": "255.255.0.0",
"gateway": "10.92.76.1",
"home_directory": "/home",
"datacenter": "intelenet",
"farm": {
"name": "skynet",
"role": "cloud",
"id": "01"
},
"ticket": "223717"
},
"bootstrap": {
"chef": {
"path": "/export/chef",
"server_token": "0eDYM2eyNUCByQT6XuEF",
"server_fqdn": "skynet-config-01.intelenet.colo.fimops.com"
}
},
"recipes": ["scaffold", "bootstrap::client"]
}
file_cache_path "/export/chef"
cookbook_path "/export/chef/cookbooks"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.