diff options
Diffstat (limited to 'modules/ovh_cleanup/manifests/init.pp')
-rw-r--r-- | modules/ovh_cleanup/manifests/init.pp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/modules/ovh_cleanup/manifests/init.pp b/modules/ovh_cleanup/manifests/init.pp new file mode 100644 index 0000000..de16cb4 --- /dev/null +++ b/modules/ovh_cleanup/manifests/init.pp | |||
@@ -0,0 +1,36 @@ | |||
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 | } | ||
24 | file { '/usr/bin/reanimate-pacman': | ||
25 | ensure => 'absent', | ||
26 | require => File['/etc/pacman.d/gnupg'], | ||
27 | } | ||
28 | file { '/etc/systemd/system/pacman-reanimation.service': | ||
29 | ensure => 'absent', | ||
30 | require => File['/etc/pacman.d/gnupg'], | ||
31 | } | ||
32 | file { '/etc/systemd/system/multi-user.target.wants/pacman-reanimation.service': | ||
33 | ensure => 'absent', | ||
34 | require => File['/etc/pacman.d/gnupg'], | ||
35 | } | ||
36 | } | ||