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

}