summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/manifests/designs.pp
blob: 2d0a83267d4cfc6e82e46ec32c09d5010af4b5d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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']
  }

}