summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/manifests
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-11-03 10:18:38 +0100
committervarac <varacanero@zeromail.org>2012-11-03 10:18:38 +0100
commit82c21f345c78c4f06e4aa78ab6020f1393816812 (patch)
tree1eb261cf1362f75e1a0c7a407e80fc07cf1e7e2d /puppet/modules/site_couchdb/manifests
parent7a9b7bed9cd8e2f2c02c4ce3627c874350d954f7 (diff)
added local.d/admin.ini to set admin pw
Diffstat (limited to 'puppet/modules/site_couchdb/manifests')
-rw-r--r--puppet/modules/site_couchdb/manifests/configure.pp17
1 files changed, 14 insertions, 3 deletions
diff --git a/puppet/modules/site_couchdb/manifests/configure.pp b/puppet/modules/site_couchdb/manifests/configure.pp
index 3ab87e1e..0d0eb24f 100644
--- a/puppet/modules/site_couchdb/manifests/configure.pp
+++ b/puppet/modules/site_couchdb/manifests/configure.pp
@@ -1,7 +1,18 @@
class site_couchdb::configure {
- Class[site_couchdb::package] -> Class[couchdb]
+ Class[site_couchdb::package] -> Class[couchdb]
+
class { 'couchdb':
- require => Class['site_couchdb::package']
- #bind => '0.0.0.0'
+ require => Class['site_couchdb::package'],
+ }
+
+ $adminpw = hiera('couchdb_adminpw')
+ file { '/etc/couchdb/local.d/admin.ini':
+ content => "[admins]
+admin = $adminpw
+",
+ mode => '0600',
+ owner => 'couchdb',
+ group => 'couchdb',
+ notify => Service[couchdb]
}
}