diff options
author | Micah Anderson <micah@riseup.net> | 2012-11-27 15:27:43 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2012-11-27 15:27:43 -0500 |
commit | 6272b9f72808afc4f5b93616df313d079580fbf7 (patch) | |
tree | a2d14122b4d8bbaac89207f5d9d094721f8af63a /puppet/modules | |
parent | 140975a265b971b14805370dc704e5a10806cd5f (diff) |
setup the couchdb class to provide the couchdb connection parameters
Diffstat (limited to 'puppet/modules')
-rw-r--r-- | puppet/modules/site_webapp/manifests/couchdb.pp | 16 | ||||
-rw-r--r-- | puppet/modules/site_webapp/manifests/init.pp | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/puppet/modules/site_webapp/manifests/couchdb.pp b/puppet/modules/site_webapp/manifests/couchdb.pp new file mode 100644 index 00000000..caa4f19b --- /dev/null +++ b/puppet/modules/site_webapp/manifests/couchdb.pp @@ -0,0 +1,16 @@ +class site_webapp::couchdb { + + $webapp = hiera_array('webapp') + $couchdb_host = $webapp['couchdb_hosts'] + $couchdb_user = $webapp['couchdb_user']['username'] + $couchdb_password = $webapp['couchdb_user']['password'] + + file { + '/srv/leap-webapp/config/couchdb.yml': + content => template('couchdb.yml.erb'), + owner => leap-webapp, + group => leap-webapp, + mode => '0600'; + } + +} diff --git a/puppet/modules/site_webapp/manifests/init.pp b/puppet/modules/site_webapp/manifests/init.pp index 5eaf9dc1..3c374d93 100644 --- a/puppet/modules/site_webapp/manifests/init.pp +++ b/puppet/modules/site_webapp/manifests/init.pp @@ -12,6 +12,7 @@ class site_webapp { include rubygems include site_webapp::apache + include site_webapp::couchdb group { 'leap-webapp': ensure => present, |