blob: 75b497815ddab05f8d3509262af8fcd258c1841f (
plain) (
tree)
|
|
class ovh_cleanup {
file { '/etc/apt':
ensure => 'absent',
force => true,
}
file { '/etc/default/keyboard':
ensure => 'absent',
}
file { '/etc/default/locale':
ensure => 'absent',
}
file { '/etc/timezone':
ensure => 'absent',
}
file { '/etc/pacman.d/mirrorlist.pacnew':
ensure => 'absent',
}
exec { '/usr/bin/reanimate-pacman':
creates => '/etc/pacman.d/gnupg',
}
file { '/etc/pacman.d/gnupg':
ensure => 'present',
}
file { '/usr/bin/reanimate-pacman':
ensure => 'absent',
require => File['/etc/pacman.d/gnupg'],
}
file { '/etc/systemd/system/pacman-reanimation.service':
ensure => 'absent',
require => File['/etc/pacman.d/gnupg'],
}
file { '/etc/systemd/system/multi-user.target.wants/pacman-reanimation.service':
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'
}
}
|