summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/manifests/designs.pp
blob: 9e88de64b444fb217022372123e3346384839d38 (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,
    purge   => true,
    mode    => '0755'
  }

  exec { '/srv/leap/couchdb/scripts/load_design_documents.sh':
    require     => Vcsrepo['/srv/leap/couchdb/scripts'],
    refreshonly => false
  }

}