Skip to content
Browse files

Added aw user; added postgres recipe

  • Loading branch information...
1 parent 20fd81f commit 509dcfbbe8b9229d5adc9c2e97b34291c1a812f8 @pjungwir committed Apr 25, 2012
Showing with 36 additions and 1 deletion.
  1. +4 −0 data-bags/users/aw.json
  2. +1 −0 site-cookbooks/postgres/recipes/default.rb
  3. +22 −0 site-cookbooks/postgres/recipes/server.rb
  4. +9 −1 solo.json
View
4 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"]
+}
View
1 site-cookbooks/postgres/recipes/default.rb
@@ -0,0 +1 @@
+include_recipe "postgres::server"
View
22 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
+
+
+
View
10 solo.json
@@ -9,6 +9,14 @@
"password": "*",
"shell": "\/bin\/bash",
"comment": "Illuminated Computing"
+ },
+ "aw": {
+ "id": "aw",
+ "uid": 2001,
+ "gid": 2001,
+ "password": "*",
+ "shell": "\/bin\/bash",
+ "comment": "AngryWords"
}
},
@@ -23,7 +31,7 @@
"recipe[hostname]",
"recipe[users]",
// "recipe[rvm::ruby_193]",
- // "recipe[postgresql::client]",
+ "recipe[postgres]",
// "recipe[postgresql::server]",
// "recipe[psql_user]",
"recipe[apache2]",

0 comments on commit 509dcfb

Please sign in to comment.
Something went wrong with that request. Please try again.