aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-08 23:39:35 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-08 23:53:08 +0200
commit70473c2de728f7bffb99b66fedf75e07a66d41fa (patch)
treedf0247aff1cd4f359ac813ce76f08f417ee3aa8e /modules
parent49688e5c9bac04c0c7426d97aa97e54c4f33a4a5 (diff)
downloadPuppet-70473c2de728f7bffb99b66fedf75e07a66d41fa.tar.gz
Puppet-70473c2de728f7bffb99b66fedf75e07a66d41fa.tar.zst
Puppet-70473c2de728f7bffb99b66fedf75e07a66d41fa.zip
Add 'backups' for ovh cleanup
Diffstat (limited to 'modules')
-rw-r--r--modules/ovh_cleanup/manifests/init.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/ovh_cleanup/manifests/init.pp b/modules/ovh_cleanup/manifests/init.pp
index b7ecb50..fc1b84b 100644
--- a/modules/ovh_cleanup/manifests/init.pp
+++ b/modules/ovh_cleanup/manifests/init.pp
@@ -1,4 +1,12 @@
1class ovh_cleanup { 1class ovh_cleanup {
2 exec { 'bash -c "comm -23 <(find /etc /opt /usr | sort) <(pacman -Qlq | sed \"s|/$||\" | sort) > /root/disowned_files_before_cleanup.txt"':
3 path => '/usr/bin',
4 creates => '/root/disowned_files_before_cleanup.txt'
5 }
6 exec { 'bash -c "comm -23 <(pacman -Qq | sort) <(pacman -Qgq base | while read i; do pactree -u \$i; done | sort | uniq) > /root/packages_not_in_base_group.txt"':
7 path => '/usr/bin',
8 creates => '/root/packages_not_in_base_group.txt'
9 }
2 file { '/etc/apt': 10 file { '/etc/apt':
3 ensure => 'absent', 11 ensure => 'absent',
4 force => true, 12 force => true,