diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ovh_cleanup/manifests/init.pp | 14 | ||||
m--------- | modules/reboot | 0 |
2 files changed, 14 insertions, 0 deletions
diff --git a/modules/ovh_cleanup/manifests/init.pp b/modules/ovh_cleanup/manifests/init.pp index 75b4978..0704cf9 100644 --- a/modules/ovh_cleanup/manifests/init.pp +++ b/modules/ovh_cleanup/manifests/init.pp | |||
@@ -39,4 +39,18 @@ class ovh_cleanup { | |||
39 | file { '/etc/resolv.conf.pacorig': | 39 | file { '/etc/resolv.conf.pacorig': |
40 | ensure => 'absent' | 40 | ensure => 'absent' |
41 | } | 41 | } |
42 | |||
43 | |||
44 | file { '/etc/udev/rules.d/80-net-setup-link.rules': | ||
45 | ensure => 'absent', | ||
46 | } | ||
47 | exec { '/usr/bin/sed -i -e "s/Name=eth0/Name=en*/" /etc/systemd/network/eth0-dhcp.network': | ||
48 | subscribe => File['/etc/udev/rules.d/80-net-setup-link.rules'], | ||
49 | refreshonly => true | ||
50 | } | ||
51 | exec { '/usr/bin/mv /etc/systemd/network/eth0-dhcp.network /etc/systemd/network/en-dhcp.network': | ||
52 | subscribe => Exec['/usr/bin/sed -i -e "s/Name=eth0/Name=en*/" /etc/systemd/network/eth0-dhcp.network'], | ||
53 | notify => Reboot['after_run'], | ||
54 | refreshonly => true, | ||
55 | } | ||
42 | } | 56 | } |
diff --git a/modules/reboot b/modules/reboot new file mode 160000 | |||
Subproject a9b48a7325130c4ab19cbfe2de1d12b7cbbae71 | |||