Commit c7ce946

mo khan <mo@mokhan.ca>
2015-05-08 04:09:11
run postgres recipe in test-kitchen and fix failures.
1 parent fd71502
recipes/postgres.rb
@@ -1,3 +1,4 @@
+include_recipe "mokhan-myface::rbenv"
 include_recipe "postgresql::server"
 include_recipe "postgresql::contrib"
 include_recipe "database::postgresql"
.kitchen.yml
@@ -20,3 +20,12 @@ suites:
       - recipe[mokhan-myface::rbenv]
       - recipe[mokhan-myface::postgres]
     attributes:
+      postgres:
+        database: "mydb"
+        host: "localhost"
+        username: "rails"
+      postgresql:
+        password:
+          postgres: 'password'
+      rbenv:
+        ruby_version: '2.2.2'
Berksfile.lock
@@ -13,6 +13,7 @@ GRAPH
     apt (>= 0.0.0)
     build-essential (>= 0.0.0)
     database (>= 0.0.0)
+    postgresql (>= 0.0.0)
   openssl (4.0.0)
     chef-sugar (>= 0.0.0)
   postgresql (3.4.18)
metadata.rb
@@ -9,3 +9,4 @@ version          '0.1.0'
 depends "apt"
 depends "build-essential"
 depends "database"
+depends "postgresql"