aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,