summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/manifests
diff options
context:
space:
mode:
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]
}
}