horizon: fix privilege only on Debian OS

This commit is contained in:
Gonéri Le Bouder
2014-01-31 10:15:34 +01:00
parent 36bcc5a347
commit 113b315dfb

View File

@@ -93,12 +93,14 @@ class cloud::dashboard(
}
# TODO(Gonéri): HACK to ensure Horizon can cache its files
$horizon_var_dir = [ "/var/lib/openstack-dashboard/static/js", "/var/lib/openstack-dashboard/static/css" ]
file {$horizon_var_dir:
owner => 'horizon',
group => 'horizon',
ensure => directory,
if ($::osfamily == 'Debian') {
# TODO(Gonéri): HACK to ensure Horizon can cache its files
$horizon_var_dir = [ "/var/lib/openstack-dashboard/static/js", "/var/lib/openstack-dashboard/static/css" ]
file {$horizon_var_dir:
owner => 'horizon',
group => 'horizon',
ensure => directory,
}
}
@@haproxy::balancermember{"${::fqdn}-horizon":