create /srv/alioth-archive on alioth-archive host
authorPeter Palfrader <peter@palfrader.org>
Wed, 25 Apr 2018 19:18:30 +0000 (21:18 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 25 Apr 2018 19:18:30 +0000 (21:18 +0200)
modules/roles/manifests/alioth_archive.pp

index 6958709..549fe02 100644 (file)
@@ -10,10 +10,22 @@ class roles::alioth_archive {
        #       key => true,
        #}
 
-       #file { '/srv/XXX.debian.org':
-       #       ensure  => directory,
-       #       mode    => '2755',
-       #       owner   => XXX,
-       #       group   => XXX,
-       #}
+       file { '/srv/alioth-archive.debian.org':
+               ensure  => directory,
+               mode    => '2755',
+               owner   => "alioth-archive",
+               group   => "alioth-archive",
+       }
+
+       file { '/srv/alioth-archive.debian.org/home':
+               ensure  => directory,
+               mode    => '2755',
+               owner   => "alioth-archive",
+               group   => "alioth-archive",
+       }
+
+       file { '/home/alioth-archive':
+               ensure => link,
+               target => '/srv/alioth-archive.debian.org/home',
+       }
 }