Created
December 8, 2009 13:52
-
-
Save kamal/251635 to your computer and use it in GitHub Desktop.
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
#!/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/[email protected] | 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 |
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
deb http://apt.opscode.com/ jaunty universe |
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
# 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