diff options
author | Micah Anderson <micah@leap.se> | 2013-11-26 14:49:53 -0500 |
---|---|---|
committer | Micah Anderson <micah@leap.se> | 2013-11-27 14:48:00 -0500 |
commit | dc6c48cbc25216417a02304ec2c23663688cd99d (patch) | |
tree | 46b86e9354246e95fb0c894387a5496b15af6069 /puppet/modules/site_couchdb/manifests | |
parent | ab278941346cc868aad7a3900a2cd5a1007986ea (diff) |
enable uploading a document to couch from a file (#4256)
deploy design documents during couch deploy (#3771)
Change-Id: I4679e066303ac9b02582214c48e2e7dcfe5bd651
Diffstat (limited to 'puppet/modules/site_couchdb/manifests')
-rw-r--r-- | puppet/modules/site_couchdb/manifests/designs.pp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/puppet/modules/site_couchdb/manifests/designs.pp b/puppet/modules/site_couchdb/manifests/designs.pp new file mode 100644 index 00000000..2d0a8326 --- /dev/null +++ b/puppet/modules/site_couchdb/manifests/designs.pp @@ -0,0 +1,20 @@ +class site_couchdb::designs { + + Class['site_couchdb::create_dbs'] + -> Class['site_couchdb::designs'] + + file { '/srv/leap/couchdb/designs': + ensure => directory, + source => 'puppet:///modules/site_couchdb/designs', + recurse => true, + mode => '0755' + } + + exec { '/srv/leap/couchdb/scripts/load_design_documents.sh': + subscribe => File['/srv/leap/couchdb/designs'], + refreshonly => true, + require => Vcsrepo['/srv/leap/couchdb/scripts'] + } + +} + |