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:
parent
d69c62d46f
commit
c9091c5dbd
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue