]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
OVH cleanup continue
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 8 Aug 2016 18:26:17 +0000 (20:26 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 8 Aug 2016 18:29:12 +0000 (20:29 +0200)
modules/ovh_cleanup/manifests/init.pp

index de16cb4a2a801aab4ec4c5a856653fb959c09a3e..75b497815ddab05f8d3509262af8fcd258c1841f 100644 (file)
@@ -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'
+    }
 }