From: Ismaƫl Bouya Date: Mon, 8 Aug 2016 18:26:17 +0000 (+0200) Subject: OVH cleanup continue X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FPuppet.git;a=commitdiff_plain;h=272919cb69a811a5533c4f2da9aa4c29969340ab OVH cleanup continue --- diff --git a/modules/ovh_cleanup/manifests/init.pp b/modules/ovh_cleanup/manifests/init.pp index de16cb4..75b4978 100644 --- a/modules/ovh_cleanup/manifests/init.pp +++ b/modules/ovh_cleanup/manifests/init.pp @@ -33,4 +33,10 @@ class ovh_cleanup { ensure => 'absent', require => File['/etc/pacman.d/gnupg'], } + exec { '/usr/bin/mv /etc/lvm/lvmlocal.conf.pacnew /etc/lvm/lvmlocal.conf': + onlyif => '/usr/bin/test -f /etc/lvm/lvmlocal.conf.pacnew' + } + file { '/etc/resolv.conf.pacorig': + ensure => 'absent' + } }