Commit 5aab602d85b0bfe9a064dd02bc147406ccfc235b
1 parent
609d8248
Exists in
master
and in
39 other branches
Added creation of database with puppet
Showing
1 changed file
with
12 additions
and
0 deletions
Show diff stats
puppet/modules/colab/manifests/init.pp
| ... | ... | @@ -16,6 +16,18 @@ class colab ( |
| 16 | 16 | include appdeploy::deps::postgresql |
| 17 | 17 | include colab::cronjobs |
| 18 | 18 | |
| 19 | + include postgresql::server | |
| 20 | + | |
| 21 | + postgresql::server::role { 'colab': | |
| 22 | + password_hash => postgresql_password('colab', 'colab'), | |
| 23 | + } | |
| 24 | + | |
| 25 | + postgresql::server::db { 'colab': | |
| 26 | + user => 'colab', | |
| 27 | + password => postgresql_password('colab', 'colab'), | |
| 28 | + owner => 'colab', | |
| 29 | + } | |
| 30 | + | |
| 19 | 31 | appdeploy::django { 'colab': |
| 20 | 32 | user => 'colab', |
| 21 | 33 | directory => '/home/colab/colab/src', | ... | ... |