Copy content to vhost document root

The directory /var/lib/graphite/webapp/content is not created in the manifest,
requiring it to be copied manually from /opt/graphite-web/webapp/content when
setting up a new graphite node.

Change-Id: I385e22b9b4d4ddc0afa48b1e4e2693f8e5e97fe1
This commit is contained in:
John Warren 2015-12-01 10:49:23 -05:00
parent d69c62d46f
commit c9091c5dbd
1 changed files with 13 additions and 0 deletions

View File

@ -112,6 +112,19 @@ class graphite(
ensure => directory,
}
file { '/var/lib/graphite/webapp':
ensure => directory,
require => [File['/var/lib/graphite']],
}
file { '/var/lib/graphite/webapp/content':
ensure => directory,
source => '/opt/graphite-web/webapp/content',
recurse => true,
require => [File['/var/lib/graphite/webapp'],
Vcsrepo['/opt/graphite-web']],
}
file { '/var/lib/graphite/storage':
ensure => directory,
owner => 'www-data',