aboutsummaryrefslogtreecommitdiff
path: root/modules/ovh_cleanup
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-08 20:52:34 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-08 21:16:51 +0200
commit0e0ea47231c04d0634618de89dfa6f500bc3a3cb (patch)
tree8b29e64862142f8ef8e12a627b8bd22d99fbde0c /modules/ovh_cleanup
parent272919cb69a811a5533c4f2da9aa4c29969340ab (diff)
downloadPuppet-0e0ea47231c04d0634618de89dfa6f500bc3a3cb.tar.gz
Puppet-0e0ea47231c04d0634618de89dfa6f500bc3a3cb.tar.zst
Puppet-0e0ea47231c04d0634618de89dfa6f500bc3a3cb.zip
OVH cleanup continue (network interfaces)
Diffstat (limited to 'modules/ovh_cleanup')
-rw-r--r--modules/ovh_cleanup/manifests/init.pp14
1 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}