summaryrefslogtreecommitdiff
path: root/manifests/util/enable_networkd.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/util/enable_networkd.pp')
-rw-r--r--manifests/util/enable_networkd.pp5
1 files changed, 2 insertions, 3 deletions
diff --git a/manifests/util/enable_networkd.pp b/manifests/util/enable_networkd.pp
index 8e447b9..f9b4d2e 100644
--- a/manifests/util/enable_networkd.pp
+++ b/manifests/util/enable_networkd.pp
@@ -3,9 +3,8 @@ define nspawn::util::enable_networkd (
String $machine_path = "/var/lib/machines/${machine}",
) {
- # TODO only do this if the directory is empty
networking::networkd_instance { "Initial networking on ${machine}":
- priority => 50,
+ priority => 99,
filename => 'puppet-initial',
path => "${machine_path}/${networking::networkd::path}",
content => {
@@ -19,7 +18,7 @@ define nspawn::util::enable_networkd (
},
}
- $running = $facts['machined-info'][$machine] != Undef or $facts['machined-info'][$machine]['State'] == 'running'
+ $running = $facts['machined-info'][$machine] != undef and $facts['machined-info'][$machine]['State'] == 'running'
$cmd = if $running {
[ 'systemctl', '-M', $machine, 'enable', 'systemd-networkd' ]