summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/manifests
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-11-04 20:47:25 +0100
committervarac <varacanero@zeromail.org>2012-11-04 20:47:25 +0100
commit41a10e2475d056a621964f17757b28581661b053 (patch)
tree1538de79679b6bea53fc25e476209a26b6f3cfa4 /puppet/modules/site_couchdb/manifests
parent0a3fdfff7bd8c11d6099f23aef505fbd5333ba99 (diff)
working resource relationships for deployment
Diffstat (limited to 'puppet/modules/site_couchdb/manifests')
-rw-r--r--puppet/modules/site_couchdb/manifests/init.pp12
1 files changed, 10 insertions, 2 deletions
diff --git a/puppet/modules/site_couchdb/manifests/init.pp b/puppet/modules/site_couchdb/manifests/init.pp
index 26e5cdfd..e4d97e34 100644
--- a/puppet/modules/site_couchdb/manifests/init.pp
+++ b/puppet/modules/site_couchdb/manifests/init.pp
@@ -12,8 +12,16 @@ class site_couchdb {
$couchdb_leap_ca_pw = $couchdb_leap_ca_user['pw']
$couchdb_host = "admin:$adminpw@127.0.0.1:5984"
- # install couchdb package first, then configure it
- Class['site_couchdb::package'] -> Class['site_couchdb::configure']
+ Class['site_couchdb::package']
+ -> Package ['couchdb']
+ -> File['/etc/init.d/couchdb']
+ -> File['/etc/couchdb/local.ini']
+ -> File['/etc/couchdb/local.d/admin.ini']
+ -> Couchdb::Create_db[leap_web]
+ -> Couchdb::Create_db[leap_ca]
+ -> Couchdb::Add_user[leap_web]
+ -> Couchdb::Add_user[leap_ca]
+ -> Site_couchdb::Apache_ssl_proxy['apache_ssl_proxy']
include site_couchdb::package
include site_couchdb::configure