Try an network_online target for stretch hosts
[mirror/dsa-puppet.git] / modules / stretch / manifests / network_online.pp
1 class stretch::network_online {
2         if versioncmp($::lsbmajdistrelease, '9') <= 0 {
3                 
4                 exec { 'systemctl enable ifupdown-wait-online.service':
5                         refreshonly => true,
6                 }
7
8                 file { '/lib/ifupdown/wait-online.sh':
9                         mode   => '0555',
10                         source => 'puppet:///modules/stretch/wait-online.sh',
11                 }
12                 file { '/lib/systemd/system/ifupdown-wait-online.service':
13                         mode   => '0555',
14                         source => 'puppet:///modules/stretch/ifupdown-wait-online.service',
15                         notify  => Exec['systemctl enable ifupdown-wait-online.service'],
16                 }
17         }
18 }
19