Trailing line ending characters are sometimes nice
[mirror/dsa-puppet.git] / modules / debian-org / manifests / init.pp
index e626d7e..a192c7d 100644 (file)
@@ -6,7 +6,7 @@ class debian-org {
        if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
                $mirror = getfromhash($site::nodeinfo, 'hoster', 'mirror-debian')
        } else {
-               $mirror = 'http://http.debian.net/debian/'
+               $mirror = 'http://ftp.debian.org/debian/'
        }
        if $::lsbmajdistrelease < 7 {
                $mirror_backports = 'http://backports.debian.org/debian-backports/'
@@ -255,6 +255,13 @@ class debian-org {
                source => 'puppet:///modules/debian-org/ud-replicated.service',
                notify => Exec['systemctl daemon-reload'],
        }
+       if $systemd {
+               file { '/etc/systemd/system/multi-user.target.wants/ud-replicated.service':
+                       ensure => 'link',
+                       target => '../ud-replicated.service',
+                       notify => Exec['systemctl daemon-reload'],
+               }
+       }
        file { '/etc/systemd/system/puppet.service':
                ensure => 'link',
                target => '/dev/null',