Skip to content

Commit

Permalink
Added aw user; added postgres recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
pjungwir committed Apr 25, 2012
1 parent 20fd81f commit 509dcfb
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
4 changes: 4 additions & 0 deletions data-bags/users/aw.json
@@ -0,0 +1,4 @@
{
"id": "aw",
"ssh_keys": ["ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArD7tEwllTnS/9IRBozgqfsrIrF9VOhjdq+xhQoMlnr9aaNR5Onk8KCJFQp1CKhGJYJ6ol3BtS+ctMfZ8UjWxZsvCtdFWw9aOZvWmjcCmBJrH1zbPt83O858CEZ4lk/F2xA4oVA5x/A99hPja0gTu5JMTzpskPhh0XSnwxkL2Zl4JfgIr9ynGyjgH0XwheckbHtcEneEo4sZNGOFrLjk0iAFhIiSfNnScdlrtBgviqF+mkPRS1q8+zBJzNZqfQG5VmhEAyntzvV5AW6GYV604NdXrSh7PU+Otn96g/W5B8WaMTy+6+gyK2dvwSML2q/mgW0DCZWPx0gB0umgcNedK3Q== pjungwir@shiny"]
}
1 change: 1 addition & 0 deletions site-cookbooks/postgres/recipes/default.rb
@@ -0,0 +1 @@
include_recipe "postgres::server"
22 changes: 22 additions & 0 deletions site-cookbooks/postgres/recipes/server.rb
@@ -0,0 +1,22 @@


package "python-software-properties"

bash "add-postgres-repo" do
user 'root'
code <<-EOH
add-apt-repository ppa:pitti/postgresql && apt-get update
EOH
end

package 'postgresql-9.0'
package 'postgresql-client-9.0'

# template '/etc/postgresql/9.0/main/pg_hba.conf' do
# end

# template '/etc/postgresql/9.0/main/postgresql.conf' do
# end



10 changes: 9 additions & 1 deletion solo.json
Expand Up @@ -9,6 +9,14 @@
"password": "*", "password": "*",
"shell": "\/bin\/bash", "shell": "\/bin\/bash",
"comment": "Illuminated Computing" "comment": "Illuminated Computing"
},
"aw": {
"id": "aw",
"uid": 2001,
"gid": 2001,
"password": "*",
"shell": "\/bin\/bash",
"comment": "AngryWords"
} }
}, },


Expand All @@ -23,7 +31,7 @@
"recipe[hostname]", "recipe[hostname]",
"recipe[users]", "recipe[users]",
// "recipe[rvm::ruby_193]", // "recipe[rvm::ruby_193]",
// "recipe[postgresql::client]", "recipe[postgres]",
// "recipe[postgresql::server]", // "recipe[postgresql::server]",
// "recipe[psql_user]", // "recipe[psql_user]",
"recipe[apache2]", "recipe[apache2]",
Expand Down

0 comments on commit 509dcfb

Please sign in to comment.