From ce5f12ff9c8344b5306c2a22a10e7e11cb266c78 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Thu, 24 Sep 2015 08:44:05 +0200 Subject: www-data owns published-metadata --- global/overlay/etc/puppet/manifests/cosmos-site.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'global/overlay') diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp index 232b1b3..16ead49 100644 --- a/global/overlay/etc/puppet/manifests/cosmos-site.pp +++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp @@ -232,7 +232,8 @@ class swamid_metadata { class swamid_static_signer { ensure_resource('class', 'sunet::dockerhost', {}) class { 'swamid_metadata': } -> - file { '/opt/published-metadata': ensure => directory } -> + user { 'www-data': system => true } -> + file { '/opt/published-metadata': ensure => directory, owner => 'www-data', group => 'www-data' } -> cron { 'publish-swamid-metadata': command => "/opt/swamid-metadata/scripts/update.sh", user => root, -- cgit v1.1