aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/site.pp1
-rw-r--r--modules/ovh_cleanup/manifests/init.pp36
2 files changed, 37 insertions, 0 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index a37c69c..45b7c01 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -1,4 +1,5 @@
1node default { 1node default {
2 class { 'ovh_cleanup': }
2 class { 'base_packages': } 3 class { 'base_packages': }
3 class { 'cron_puppet': } 4 class { 'cron_puppet': }
4} 5}
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 @@
1class 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}