X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fstretch%2Fmanifests%2Fnetwork_online.pp;fp=modules%2Fstretch%2Fmanifests%2Fnetwork_online.pp;h=432973b38f217262e2c26ee68e278d7bc7f71ee7;hb=76ca91bce24ecbcbcc4e62a37aa06fd0fb9f96c7;hp=0000000000000000000000000000000000000000;hpb=46cee04ab06b23ab6e9e4baba655cf470d10cfc4;p=mirror%2Fdsa-puppet.git diff --git a/modules/stretch/manifests/network_online.pp b/modules/stretch/manifests/network_online.pp new file mode 100644 index 000000000..432973b38 --- /dev/null +++ b/modules/stretch/manifests/network_online.pp @@ -0,0 +1,19 @@ +class stretch::network_online { + if versioncmp($::lsbmajdistrelease, '9') <= 0 { + + exec { 'systemctl enable ifupdown-wait-online.service': + refreshonly => true, + } + + file { '/lib/ifupdown/wait-online.sh': + mode => '0555', + source => 'puppet:///modules/stretch/wait-online.sh', + } + file { '/lib/systemd/system/ifupdown-wait-online.service': + mode => '0555', + source => 'puppet:///modules/stretch/ifupdown-wait-online.service', + notify => Exec['systemctl enable ifupdown-wait-online.service'], + } + } +} +