gentoo / puppet-portage

[ORIGIN] Puppet module providing various Gentoo portage features
GNU General Public License v2.0
49 stars 30 forks source link

portage::package doesnt ensure @world presence #155

Open samuraiii opened 7 years ago

samuraiii commented 7 years ago

portage package doesn't add packege into @world if package is already installed: Example: 1)

portage::package { 'kde-plasma/plasma-meta': ensure => 'present'}

puppet run

2)

portage::package {
 'kde-plasma/plasma-meta': ensure => 'absent';
# dependecy of ↑, so already present
 'x11-misc/sddm':                 ensure => 'present';
}

puppet run 3) emerge --depclean removes also x11-misc/sddm which should be "selected" 4) next puppet run emerges installs and selects x11-misc/sddm

Idea: Stick something like:

exec {
"emerge noreplace ${atom}":
 command => "/usr/bin/emerge --noreplace ${atom}";
}

to portage/manifests/package.pp