Skip to content

Instantly share code, notes, and snippets.

@arunthampi
Forked from kamal/install.sh
Created December 13, 2009 11:36
Show Gist options
  • Save arunthampi/255389 to your computer and use it in GitHub Desktop.
Save arunthampi/255389 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "Copying opscode.list to /etc/apt/sources.list.d"
sudo cp install/opscode.list /etc/apt/sources.list.d/opscode.list
echo "Adding opscode GPG key"
curl http://apt.opscode.com/packages@opscode.com.gpg.key | sudo apt-key add -
echo "Installing chef client"
sudo apt-get update
sudo apt-get install rubygems ohai chef -y
echo "Stopping chef-client"
sudo /etc/init.d/chef-client stop
sudo update-rc.d -f chef-client remove
echo "Copying solo.rb to /etc/chef"
sudo cp install/solo.rb /etc/chef
deb http://apt.opscode.com/ jaunty universe
# Configuration File For Chef Solo (chef-solo)
#
# The program chef-solo allows you to run Chef as a standalone program
# without connecting to a remote Chef Server.
#
# Chef uses a Ruby DSL for configuration, and this file may contain some
# Ruby idioms. First, symbols. These are designated by a colon sigil, ie,
# :value. Second, in Ruby, everything but false and nil (no quotes or other
# designations) is true, including true, the integer 0 and the string "false".
# So to set the value of a setting to false, write:
#
# some_setting false
#
# Third, Ruby class methods can be used, for example we tell the log to show
# the current time stamp with Chef::Log::Formatter.show_time, below.
#
# log_level specifies the level of verbosity for output.
# valid values are: :debug, :info, :warn, :error, :fatal
log_level :info
# log_location specifies where the client should log to.
# valid values are: a quoted string specifying a file, or STDOUT with
# no quotes.
log_location STDOUT
file_cache_path "/tmp/chef-solo"
cookbook_path "/tmp/chef-solo/cookbooks"
role_path "/tmp/chef-solo/cookbooks/roles"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment