cookbooks/scratchify/templates/node.json.erb in from-scratch-0.1.1 vs cookbooks/scratchify/templates/node.json.erb in from-scratch-0.2.0

- old
+ new

@@ -1,10 +1,12 @@ { "run_list": [ "recipe[rvm::system]", "recipe[postgresql::server]", "recipe[postgresql::config_pgtune]", + "recipe[postgresql::setup_users]", + "recipe[postgresql::setup_databases]", "recipe[user::data_bag]", "recipe[scratchify]" ], "users": ["deploy"], @@ -21,9 +23,24 @@ "enable_pgdg_yum": true, "enable_pgdg_apt": true, "password": { "postgres": "<%= postgresql_admin_password %>" }, + "users": [ + { + "username": "<%= app_name %>", + "superuser": false, + "createdb": false, + "login": true, + "password": "<%= postgresql_user_password %>" + } + ], + "databases": [ + { + "name": "<%= app_name %>", + "owner": "<%= app_name %>" + } + ], "config_pgtune": { "db_type": "web" } },