Skip to content

Commit

Permalink
Cleaning up cruft from old releases and clarifying examples/readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Jun 19, 2010
1 parent 2594ccc commit 8825e73
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 92 deletions.
1 change: 0 additions & 1 deletion Rakefile
Expand Up @@ -63,4 +63,3 @@ task :bundle_cookbook, :cookbook do |t, args|

FileUtils.rm_rf temp_dir
end

5 changes: 4 additions & 1 deletion certificates/README
@@ -1,3 +1,6 @@
Creating SSL certificates is a common task done in web application
infrastructures, so a rake task is provided to generate certificates.
These certificates are stored here by the ssl_cert task.
These certificates are stored here by the ssl_cert task. To generate a
certificate set for a new monitoring server, for example:

rake ssl_cert FQDN=monitoring.example.com
16 changes: 5 additions & 11 deletions config/client.rb.example
@@ -1,21 +1,15 @@
#
# Example Chef Client Config File
#
# Use Opscode's chef cookbook for managing chef itself,
# instead of using this file. It is provided as an example.
# You can generate the client.rb with correct settings with knife:
#
# knife configure client ./config

log_level :info
log_location STDOUT
ssl_verify_mode :verify_none
chef_server_url "http://chef.example.com:4000"
chef_server_url "https://api.opscode.com/organizations/ORGNAME"

validation_client_name "chef-validator"
validation_key "/etc/chef/validation.pem"
client_key "/etc/chef/client.pem"

file_store_path "/srv/chef/file_store"
file_cache_path "/srv/chef/cache"

pid_file "/var/run/chef/chef-client.pid"

Mixlib::Log::Formatter.show_time = true
validation_client_name "ORGNAME-validator"
24 changes: 15 additions & 9 deletions config/knife.rb.example
@@ -1,12 +1,18 @@
# This file provided as an example. Run 'knife configure' to generate a
# config file for your local user.
# This file is provided as an example when using the Opscode Platform
# as the Chef Server. You were prompted to download a config file
# when you signed up for the Opscode Platform that looks like this.
#
# Replace USERNAME with your Opscode username and ORGNAME
# with your Opscode Platform organization name.
#
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name 'chef_admin'
client_key '/home/chef_admin/.chef/chef_admin.pem'
validation_client_name 'chef-validator'
validation_key '/home/chef_admin/.chef/chef-validator.pem'
chef_server_url 'http://chef.example.com:4000'
node_name "USERNAME"
client_key "#{current_dir}/USERNAME.pem"
validation_client_name "ORGANIZATION-validator"
validation_key "#{current_dir}/ORGANIZATION-validator.pem"
chef_server_url "https://api.opscode.com/organizations/ORGANIZATION"
cache_type 'BasicFile'
cache_options( :path => '/home/chef_admin/.chef/checksums' )
cookbook_path [ './cookbooks', './site-cookbooks' ]
cache_options( :path => "#{ENV['HOME']}/.chef/checksums" )
cookbook_path ["#{current_dir}/../cookbooks"]
28 changes: 3 additions & 25 deletions config/rake.rb
@@ -1,5 +1,8 @@
# Configure the Rakefile's tasks.

###
# Company and SSL Details
# Used with the ssl_cert task.
###

# The company name - used for SSL certificates, and in srvious other places
Expand All @@ -24,28 +27,6 @@
# Can be :apachev2 or :none
NEW_COOKBOOK_LICENSE = :apachev2

##########################
# Chef Repository Layout #
##########################

# Where to install upstream cookbooks for serving
COOKBOOK_PATH = "/srv/chef/cookbooks"

# Where to install site-local modifications to upstream cookbooks
SITE_COOKBOOK_PATH = "/srv/chef/site-cookbooks"

# Where to install roles
ROLE_PATH = "/srv/chef/roles"

# Chef Config Path
CHEF_CONFIG_PATH = "/etc/chef"

# The location of the Chef Server Config file (on the server)
CHEF_SERVER_CONFIG = File.join(CHEF_CONFIG_PATH, "server.rb")

# The location of the Chef Client Config file (on the client)
CHEF_CLIENT_CONFIG = File.join(CHEF_CONFIG_PATH, "client.rb")

###
# Useful Extras (which you probably don't need to change)
###
Expand All @@ -55,6 +36,3 @@

# Where to store certificates generated with ssl_cert
CADIR = File.expand_path(File.join(TOPDIR, "certificates"))

# Where to store the mtime cache for the recipe/template syntax check
TEST_CACHE = File.expand_path(File.join(TOPDIR, ".rake_test_cache"))
42 changes: 0 additions & 42 deletions config/server.rb.example

This file was deleted.

3 changes: 1 addition & 2 deletions config/solo.rb.example
@@ -1,6 +1,7 @@
#
# Chef Solo Config File
#
# This file is provided as an example of /etc/chef/solo.rb.

log_level :info
log_location STDOUT
Expand All @@ -9,5 +10,3 @@ file_cache_path "/var/chef/cookbooks"
# Optionally store your JSON data file and a tarball of cookbooks remotely.
#json_attribs "http://chef.example.com/dna.json"
#recipe_url "http://chef.example.com/cookbooks.tar.gz"

Mixlib::Log::Formatter.show_time = false
3 changes: 2 additions & 1 deletion cookbooks/README
@@ -1 +1,2 @@
Remove this file to clone an upstream git repository of cookbooks
Download cookbooks into this directory from the Opscode Cookbooks site
using knife, or remove this file to clone an upstream Git Repository.

0 comments on commit 8825e73

Please sign in to comment.