aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mga-mirrors/manifests
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2017-04-08 13:43:20 +0200
committerOlivier Blin <dev@blino.org>2017-04-08 13:43:20 +0200
commit930305454eb427b3c7ee4861f32f2973d887c1cf (patch)
tree1e2f45a4c7bfbe148156b6fb99faddd9c1c115b5 /modules/mga-mirrors/manifests
parentd74ddb15298d88787063cabc0d85fc99471965aa (diff)
downloadpuppet-930305454eb427b3c7ee4861f32f2973d887c1cf.tar
puppet-930305454eb427b3c7ee4861f32f2973d887c1cf.tar.gz
puppet-930305454eb427b3c7ee4861f32f2973d887c1cf.tar.bz2
puppet-930305454eb427b3c7ee4861f32f2973d887c1cf.tar.xz
puppet-930305454eb427b3c7ee4861f32f2973d887c1cf.zip
Create /var/www/mirrors owned by nobody
Like manually done on alamut
Diffstat (limited to 'modules/mga-mirrors/manifests')
-rw-r--r--modules/mga-mirrors/manifests/init.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mga-mirrors/manifests/init.pp b/modules/mga-mirrors/manifests/init.pp
index be4da721..78439c35 100644
--- a/modules/mga-mirrors/manifests/init.pp
+++ b/modules/mga-mirrors/manifests/init.pp
@@ -1,6 +1,7 @@
class mga-mirrors {
$vhost = "mirrors.${::domain}"
+ $mirrors_dir = '/var/www/mirrors'
package { 'mga-mirrors': }
@@ -39,4 +40,9 @@ class mga-mirrors {
content => template('mga-mirrors/cron-mga_mirrors'),
require => Package['mga-mirrors']
}
+
+ file { $mirrors_dir:
+ ensure => directory,
+ owner => 'nobody',
+ }
}