diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-08-08 19:06:02 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-08-08 19:14:38 +0200 |
commit | 943107e9fc8ae30612f767253845334ef99fdf8f (patch) | |
tree | e5b94685f8915cea31b07cedb76170bc3dcb80b3 /modules | |
parent | cf30072bd0ddbc327abadcf944b20ee988aaff23 (diff) | |
download | Puppet-943107e9fc8ae30612f767253845334ef99fdf8f.tar.gz Puppet-943107e9fc8ae30612f767253845334ef99fdf8f.tar.zst Puppet-943107e9fc8ae30612f767253845334ef99fdf8f.zip |
OVH cleanup with puppet
Diffstat (limited to 'modules')
-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 | } | ||