Start repro only after we are online
[mirror/dsa-puppet.git] / modules / roles / manifests / rtc.pp
index 9e1c754..3e9799d 100644 (file)
@@ -97,6 +97,12 @@ class roles::rtc {
        service { 'repro':
                ensure  => running,
        }
+       systemd::override { 'repro':
+               content  => @("EOF"),
+                       [Unit]
+                       After=network-online.target
+                       | EOF
+       }
 
        package { 'freeradius':
                ensure  => installed,
@@ -124,7 +130,7 @@ class roles::rtc {
                target  => '../mods-available/passwd_rtc',
        }
        file { '/etc/repro/radius-servers':
-               content => inline_template('localhost/localhost <%= @radius_password} %>'),
+               content => inline_template('localhost/localhost <%= @radius_password %>'),
                mode    => '0440',
                group   => repro,
                notify  => Service['repro'],