Commit 6268701cd5e7d0575376eb43ff3e6a27c06bd4dd
1 parent
74ccc42d
Exists in
master
and in
39 other branches
Using hiera to set postgresql globals
Showing
2 changed files
with
4 additions
and
6 deletions
Show diff stats
puppet/hieradata/common.yaml
| ... | ... | @@ -7,6 +7,9 @@ timezone::timezone: America/Sao_Paulo |
| 7 | 7 | |
| 8 | 8 | postfix::admin_email: test@test.test |
| 9 | 9 | |
| 10 | +postgresql::globals::version: '9.3' | |
| 11 | +postgresql::globals::manage_package_repo: 'true' | |
| 12 | + | |
| 10 | 13 | nginx::worker_processes: 8 |
| 11 | 14 | nginx::error_log: '/var/log/nginx/error.log' |
| 12 | 15 | nginx::access_log: '/var/log/nginx/access.log' | ... | ... |
puppet/modules/colab/manifests/init.pp
| ... | ... | @@ -16,14 +16,9 @@ class colab ( |
| 16 | 16 | include appdeploy::deps::lxml |
| 17 | 17 | include appdeploy::deps::postgresql |
| 18 | 18 | include colab::cronjobs |
| 19 | + include postgresql::globals | |
| 19 | 20 | include postgresql::server |
| 20 | 21 | |
| 21 | - class { 'postgresql::globals': | |
| 22 | - manage_package_repo => true, | |
| 23 | - version => '9.3', | |
| 24 | - before => Class['postgresql::server'], | |
| 25 | - } | |
| 26 | - | |
| 27 | 22 | postgresql::server::db { 'colab': |
| 28 | 23 | user => 'colab', |
| 29 | 24 | password => 'colab', | ... | ... |