Setup /srv/ftp.root in security_mirror role
authorBastian Blank <waldi@debian.org>
Fri, 31 Mar 2017 09:19:10 +0000 (11:19 +0200)
committerMartin Zobel-Helas <zobel@debian.org>
Fri, 31 Mar 2017 10:09:37 +0000 (12:09 +0200)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
modules/roles/manifests/security_mirror.pp

index c6019a8..0f911e4 100644 (file)
@@ -24,10 +24,19 @@ class roles::security_mirror {
                ensure => link,
                target => '../ftp.root/debian-security',
        }
+       file { '/srv/ftp.root':
+               ensure  => directory,
+       }
        file { '/srv/ftp.root/.nobackup':
                ensure  => present,
                content => '',
        }
+       file { '/srv/ftp.root/debian-security':
+               ensure => directory,
+               owner  => 1176, # archvsync
+               group  => 1176, # archvsync
+               mode   => '0755',
+       }
 
        include apache2::expires
        include apache2::rewrite