Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created February 18, 2010 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchrisadams/307618 to your computer and use it in GitHub Desktop.
Save mrchrisadams/307618 to your computer and use it in GitHub Desktop.
name "base_ree_server"
description "This role adds a rails user and the bare requirements for running Rails Enterprise and Passenger with Apache. Also includes the public keys for the rails devs to deploy apps"
recipes "ruby_enterprise", "passenger_enterprise", "passenger_enterprise::apache2"
default_attributes :groups => { :rails => { "gid" => 666 } },
:active_groups => [ "rails" ],
:active_users => [ "rails" ],
:users => {
:rails => {
:password =>"topsekrit",
:comment => "Rails user for Rails apps to run as.",
:uid => 666,
:groups => [ "rails" ]
}
},
:ssh_keys => {
# I'd like to pull this in from an external file kept in source control,
# and convert the key file into the relevant key value pairs to add in here
key_list = Net::HTTP.get_print URI.parse('http://code.company.com/cgi-bin/gitweb.cgi?authorized-keys-list--HEAD')
key_list.=format_text_to_hash_for_chef
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment