Commit a4ccd9c7 authored by James T. Lee's avatar James T. Lee
Browse files

network: Only mask wait-online on systems with wireless

parent 96cbd69e
...@@ -32,9 +32,14 @@ class nest::profile::base::network { ...@@ -32,9 +32,14 @@ class nest::profile::base::network {
require => Package['net-misc/networkmanager'], require => Package['net-misc/networkmanager'],
} }
# "mask" service which holds up the boot process # "mask" service which potentially holds up the boot process when on wireless
$wait_online_ensure = $facts['interfaces'] ? {
/(^|,)wl/ => symlink,
default => absent,
}
file { '/etc/systemd/system/NetworkManager-wait-online.service': file { '/etc/systemd/system/NetworkManager-wait-online.service':
ensure => symlink, ensure => $wait_online_ensure,
target => '/dev/null', target => '/dev/null',
notify => Exec['NetworkManager-systemd-daemon-reload'], notify => Exec['NetworkManager-systemd-daemon-reload'],
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment