Make staticsync a module and update references
[mirror/dsa-puppet.git] / modules / staticsync / manifests / srvdir.pp
index 7fef383..23eb614 100644 (file)
@@ -1,13 +1,14 @@
 # create the directory on static hosts and disable backups
-class roles::static::srvdir {
-  file { '/srv/static.debian.org':
+class staticsync::srvdir (
+) {
+  file { $staticsync::basedir:
     ensure => directory,
     mode   => '0755',
-    owner  => 'staticsync',
-    group  => 'staticsync',
+    owner  => $staticsync::user,
+    group  => $staticsync::user,
   }
 
-  file { '/srv/static.debian.org/.nobackup':
+  file { "${staticsync::basedir}/.nobackup":
     content => '',
   }
 }