]>
Commit | Line | Data |
---|---|---|
943107e9 IB |
1 | class ovh_cleanup { |
2 | file { '/etc/apt': | |
3 | ensure => 'absent', | |
4 | force => true, | |
5 | } | |
6 | file { '/etc/default/keyboard': | |
7 | ensure => 'absent', | |
8 | } | |
9 | file { '/etc/default/locale': | |
10 | ensure => 'absent', | |
11 | } | |
12 | file { '/etc/timezone': | |
13 | ensure => 'absent', | |
14 | } | |
15 | file { '/etc/pacman.d/mirrorlist.pacnew': | |
16 | ensure => 'absent', | |
17 | } | |
18 | exec { '/usr/bin/reanimate-pacman': | |
19 | creates => '/etc/pacman.d/gnupg', | |
20 | } | |
21 | file { '/etc/pacman.d/gnupg': | |
22 | ensure => 'present', | |
23 | } | |
66e7b1e6 IB |
24 | file { '/usr/bin/growpart': |
25 | ensure => 'absent', | |
26 | } | |
943107e9 IB |
27 | file { '/usr/bin/reanimate-pacman': |
28 | ensure => 'absent', | |
29 | require => File['/etc/pacman.d/gnupg'], | |
30 | } | |
31 | file { '/etc/systemd/system/pacman-reanimation.service': | |
32 | ensure => 'absent', | |
33 | require => File['/etc/pacman.d/gnupg'], | |
34 | } | |
35 | file { '/etc/systemd/system/multi-user.target.wants/pacman-reanimation.service': | |
36 | ensure => 'absent', | |
37 | require => File['/etc/pacman.d/gnupg'], | |
38 | } | |
272919cb IB |
39 | exec { '/usr/bin/mv /etc/lvm/lvmlocal.conf.pacnew /etc/lvm/lvmlocal.conf': |
40 | onlyif => '/usr/bin/test -f /etc/lvm/lvmlocal.conf.pacnew' | |
41 | } | |
42 | file { '/etc/resolv.conf.pacorig': | |
43 | ensure => 'absent' | |
44 | } | |
66e7b1e6 IB |
45 | package { 'haveged': |
46 | ensure => 'absent', | |
47 | uninstall_options => [ '-s', '-c'] | |
48 | } | |
49 | package { 'parted': | |
50 | ensure => 'absent', | |
51 | uninstall_options => [ '-s', '-c'] | |
52 | } | |
0e0ea472 IB |
53 | |
54 | ||
55 | file { '/etc/udev/rules.d/80-net-setup-link.rules': | |
56 | ensure => 'absent', | |
57 | } | |
58 | exec { '/usr/bin/sed -i -e "s/Name=eth0/Name=en*/" /etc/systemd/network/eth0-dhcp.network': | |
59 | subscribe => File['/etc/udev/rules.d/80-net-setup-link.rules'], | |
60 | refreshonly => true | |
61 | } | |
62 | exec { '/usr/bin/mv /etc/systemd/network/eth0-dhcp.network /etc/systemd/network/en-dhcp.network': | |
63 | subscribe => Exec['/usr/bin/sed -i -e "s/Name=eth0/Name=en*/" /etc/systemd/network/eth0-dhcp.network'], | |
64 | notify => Reboot['after_run'], | |
65 | refreshonly => true, | |
66 | } | |
943107e9 | 67 | } |