-
-
Save jellybob/288697 to your computer and use it in GitHub Desktop.
Installing on Debian sid
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
echo "deb ftp://mir1.ovh.net/debian/ sid main contrib non-free" > /etc/apt/sources.list | |
echo "deb-src ftp://mir1.ovh.net/debian/ sid main contrib non-free" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install -y ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential wget ssl-cert rubygems git-core rake liblibxml-ruby librspec-ruby zlib1g-dev libxml2-dev | |
gem sources -a http://gems.opscode.com | |
gem install jeweler merb-core cucumber uuidtools json libxml-ruby --no-ri --no-rdoc | |
mkdir ~/src | |
cd ~/src | |
git clone git://github.com/opscode/chef.git | |
git clone git://github.com/opscode/ohai.git | |
git clone git://github.com/opscode/mixlib-log | |
# http://tickets.opscode.com/browse/CHEF-823 | |
cd mixlib-log | |
rake install | |
cd ../ohai | |
rake install | |
cd ../chef | |
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", | |
"server_fqdn": "chef.blankpad.net" | |
} | |
}, | |
"recipes": "bootstrap::client" | |
} | |
# 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 | |
scp [email protected]:/etc/chef/validation.key /etc/chef # Validation key is used to initialise a new client | |
kill -HUP 1 # Bounce init so runit will start the chef-client |
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
apt-get update | |
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 couchdb zlib1g-dev libxml2-dev | |
gem sources -a http://gems.opscode.com | |
gem install cucumber merb-core jeweler uuidtools json libxml-ruby thin merb-param-protection --no-ri --no-rdoc | |
mkdir ~/src | |
cd ~/src | |
git clone git://github.com/opscode/chef.git | |
git clone git://github.com/opscode/ohai.git | |
git clone git://github.com/opscode/mixlib-log | |
# http://tickets.opscode.com/browse/CHEF-823 | |
cd mixlib-log | |
rake install | |
cd ../ohai | |
rake install | |
cd ../chef | |
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 | |
ln -s /etc/init.d/rabbitmq-server /etc/rc2.d/S01rabbitmq | |
ln -s /etc/init.d/rabbitmq-server /etc/rc0.d/K01rabbitmq | |
ln -s /etc/init.d/rabbitmq-server /etc/rc1.d/K01rabbitmq | |
ln -s /etc/init.d/rabbitmq-server /etc/rc6.d/K01rabbitmq | |
# 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 | |
/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 | |
/var/lib/gems/1.8/bin/chef-server-webui -p 4002 | |
# Start the WebUI | |
/var/lib/gems/1.8/bin/chef-server-webui -p 4002 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment