summaryrefslogtreecommitdiff
path: root/puppet/modules/site_webapp/manifests/couchdb.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-11-27 15:27:43 -0500
committerMicah Anderson <micah@riseup.net>2012-11-27 15:27:43 -0500
commit6272b9f72808afc4f5b93616df313d079580fbf7 (patch)
treea2d14122b4d8bbaac89207f5d9d094721f8af63a /puppet/modules/site_webapp/manifests/couchdb.pp
parent140975a265b971b14805370dc704e5a10806cd5f (diff)
setup the couchdb class to provide the couchdb connection parameters
Diffstat (limited to 'puppet/modules/site_webapp/manifests/couchdb.pp')
-rw-r--r--puppet/modules/site_webapp/manifests/couchdb.pp16
1 files changed, 16 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';
+ }
+
+}