Created
February 18, 2010 12:34
-
-
Save mrchrisadams/307618 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
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