Skip to content

Instantly share code, notes, and snippets.

@danielsdeleo
Forked from btm/build_chef_0.8
Created February 25, 2010 00:22
Show Gist options
  • Select an option

  • Save danielsdeleo/314073 to your computer and use it in GitHub Desktop.

Select an option

Save danielsdeleo/314073 to your computer and use it in GitHub Desktop.

Revisions

  1. @btm btm revised this gist Jan 14, 2010. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions build_chef_0.8
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,7 @@ sudo sed -i 's/universe/multiverse universe/' /etc/apt/sources.list
    sudo apt-get update
    sudo apt-get install -y ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential wget ssl-cert rubygems git-core rake librspec-ruby libxml-ruby thin couchdb zlib1g-dev libxml2-dev
    sudo gem sources -a http://gems.opscode.com
    sudo gem sources -a http://gemcutter.org # for nanite
    sudo gem install cucumber merb-core nanite jeweler uuidtools json libxml-ruby --no-ri --no-rdoc
    sudo gem install cucumber merb-core jeweler uuidtools json libxml-ruby --no-ri --no-rdoc
    mkdir ~/src
    cd ~/src
    git clone git://github.com/opscode/chef.git
  2. @btm btm revised this gist Jan 3, 2010. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions build_chef_0.8
    Original file line number Diff line number Diff line change
    @@ -53,3 +53,8 @@ rm cookbooks/README
    git clone git://github.com/opscode/cookbooks.git
    sudo /var/lib/gems/1.8/bin/knife cookbook upload --all -u chef-webui -k /etc/chef/webui.pem -o cookbooks

    # Create admin user?
    # http://tickets.opscode.com/browse/CHEF-839
    sudo /var/lib/gems/1.8/bin/chef-server-webui -p 4002
    # Start the WebUI
    sudo /var/lib/gems/1.8/bin/chef-server-webui -p 4002 &
  3. @btm btm revised this gist Jan 2, 2010. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build_chef_0.8
    Original file line number Diff line number Diff line change
    @@ -51,5 +51,5 @@ git clone git://github.com/opscode/chef-repo.git
    cd chef-repo
    rm cookbooks/README
    git clone git://github.com/opscode/cookbooks.git
    sudo /var/lib/gems/1.8/bin/knife cookbook upload --all -u chef-webui -k /etc/chef/webui.key -o cookbooks
    sudo /var/lib/gems/1.8/bin/knife cookbook upload --all -u chef-webui -k /etc/chef/webui.pem -o cookbooks

  4. @btm btm revised this gist Jan 2, 2010. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion build_chef_0.8
    Original file line number Diff line number Diff line change
    @@ -43,4 +43,13 @@ cookbook_path "/tmp/chef-solo/cookbooks"
    # End of file

    git checkout 08boot
    sudo /var/lib/gems/1.8/bin/chef-solo -j ~/chef.json -c ~/solo.rb -l debug
    sudo /var/lib/gems/1.8/bin/chef-solo -j ~/chef.json -c ~/solo.rb -l debug

    # Setup cookbooks
    cd
    git clone git://github.com/opscode/chef-repo.git
    cd chef-repo
    rm cookbooks/README
    git clone git://github.com/opscode/cookbooks.git
    sudo /var/lib/gems/1.8/bin/knife cookbook upload --all -u chef-webui -k /etc/chef/webui.key -o cookbooks

  5. @btm btm revised this gist Jan 2, 2010. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions build_chef_0.8
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,10 @@
    # ec2 ami-1515f67c
    sudo sed -i 's/universe/multiverse universe/' /etc/apt/sources.list
    sudo apt-get update
    sudo apt-get install -y ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential wget ssl-cert rubygems git-core rake librspec-ruby libxml-ruby thin couchdb
    sudo apt-get install -y ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential wget ssl-cert rubygems git-core rake librspec-ruby libxml-ruby thin couchdb zlib1g-dev libxml2-dev
    sudo gem sources -a http://gems.opscode.com
    sudo gem sources -a http://gemcutter.org # for nanite
    sudo gem install cucumber merb-core nanite jeweler uuidtools json --no-ri --no-rdoc
    sudo gem install cucumber merb-core nanite jeweler uuidtools json libxml-ruby --no-ri --no-rdoc
    mkdir ~/src
    cd ~/src
    git clone git://github.com/opscode/chef.git
  6. @btm btm revised this gist Dec 24, 2009. 1 changed file with 6 additions and 3 deletions.
    9 changes: 6 additions & 3 deletions build_chef_0.8
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,11 @@ mkdir ~/src
    cd ~/src
    git clone git://github.com/opscode/chef.git
    git clone git://github.com/opscode/ohai.git
    cd ohai
    git clone git://github.com/opscode/mixlib-log
    # http://tickets.opscode.com/browse/CHEF-823
    cd mixlib-log
    sudo rake install
    cd ../ohai
    sudo rake install
    cd ../chef
    sudo rake install
    @@ -39,5 +43,4 @@ cookbook_path "/tmp/chef-solo/cookbooks"
    # End of file

    git checkout 08boot
    sudo /var/lib/gems/1.8/bin/chef-solo -j ~/chef.json -c ~/solo.rb -l debug
    # couch works with CHEF-737 fixes pushed to github.com/btm/cookbooks origin/08boot
    sudo /var/lib/gems/1.8/bin/chef-solo -j ~/chef.json -c ~/solo.rb -l debug
  7. @btm btm revised this gist Nov 25, 2009. 1 changed file with 3 additions and 13 deletions.
    16 changes: 3 additions & 13 deletions build_chef_0.8
    Original file line number Diff line number Diff line change
    @@ -17,8 +17,8 @@ mkdir -p /tmp/chef-solo
    cd /tmp/chef-solo
    git clone git://github.com/danielsdeleo/cookbooks.git
    cd cookbooks
    # Create ~/chef.json:

    # Create ~/chef.json:
    {
    "bootstrap": {
    "chef": {
    @@ -34,20 +34,10 @@ cd cookbooks
    # End of file

    # Create ~/solo.rb:

    file_cache_path "/tmp/chef-solo"
    cookbook_path "/tmp/chef-solo/cookbooks"
    # End of file

    git checkout 08boot
    sudo /var/lib/gems/1.8/bin/chef-solo -j ~/chef.json -c ~/solo.rb -l debug
    sudo sed -i ’s/;bind_address = 127.0.0.1/bind_address = 0.0.0.0/’ /etc/couchdb/local.ini
    sudo /etc/init.d/couchdb stop
    sudo killall -15 couchdb # stubborn
    sudo killall -15 beam # yup
    ps ax | grep couch | grep -v grep
    # no output
    sudo /etc/init.d/couchdb start
    sudo netstat -lnp | grep 5984
    # verify "0.0.0.0:5984"

    # Connect to couch, no databases
    # couch works with CHEF-737 fixes pushed to github.com/btm/cookbooks origin/08boot
  8. @btm btm created this gist Nov 25, 2009.
    53 changes: 53 additions & 0 deletions build_chef_0.8
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,53 @@
    # ec2 ami-1515f67c
    sudo sed -i 's/universe/multiverse universe/' /etc/apt/sources.list
    sudo apt-get update
    sudo apt-get install -y ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential wget ssl-cert rubygems git-core rake librspec-ruby libxml-ruby thin couchdb
    sudo gem sources -a http://gems.opscode.com
    sudo gem sources -a http://gemcutter.org # for nanite
    sudo gem install cucumber merb-core nanite jeweler uuidtools json --no-ri --no-rdoc
    mkdir ~/src
    cd ~/src
    git clone git://github.com/opscode/chef.git
    git clone git://github.com/opscode/ohai.git
    cd ohai
    sudo rake install
    cd ../chef
    sudo rake install
    mkdir -p /tmp/chef-solo
    cd /tmp/chef-solo
    git clone git://github.com/danielsdeleo/cookbooks.git
    cd cookbooks
    # Create ~/chef.json:

    {
    "bootstrap": {
    "chef": {
    "url_type": "http",
    "init_style": "runit",
    "path": "/srv/chef",
    "serve_path": "/srv/chef",
    "server_fqdn": "localhost"
    }
    },
    "recipes": "bootstrap::server"
    }
    # End of file

    # Create ~/solo.rb:

    file_cache_path "/tmp/chef-solo"
    cookbook_path "/tmp/chef-solo/cookbooks"
    # End of file
    git checkout 08boot
    sudo /var/lib/gems/1.8/bin/chef-solo -j ~/chef.json -c ~/solo.rb -l debug
    sudo sed -i ’s/;bind_address = 127.0.0.1/bind_address = 0.0.0.0/’ /etc/couchdb/local.ini
    sudo /etc/init.d/couchdb stop
    sudo killall -15 couchdb # stubborn
    sudo killall -15 beam # yup
    ps ax | grep couch | grep -v grep
    # no output
    sudo /etc/init.d/couchdb start
    sudo netstat -lnp | grep 5984
    # verify "0.0.0.0:5984"

    # Connect to couch, no databases