Skip to content

Instantly share code, notes, and snippets.

@fairchild
Forked from rcreasey/ks-cloud.cfg.txt
Created March 1, 2010 05:36
Show Gist options
  • Select an option

  • Save fairchild/318106 to your computer and use it in GitHub Desktop.

Select an option

Save fairchild/318106 to your computer and use it in GitHub Desktop.

Revisions

  1. @rcreasey rcreasey revised this gist Oct 27, 2009. 2 changed files with 28 additions and 0 deletions.
    26 changes: 26 additions & 0 deletions skynet-cloud-01.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    {
    "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"]
    }
    2 changes: 2 additions & 0 deletions solo.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    file_cache_path "/export/chef"
    cookbook_path "/export/chef/cookbooks"
  2. @rcreasey rcreasey renamed this gist Oct 27, 2009. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @rcreasey rcreasey created this gist Oct 27, 2009.
    34 changes: 34 additions & 0 deletions ks-cloud.cfg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    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