Issue #14560 has been updated by Russell Jackson.

For example, I need to stay on mcollective 1.2 under squeeze. I could just 
ensure 1.2, but
then some idiot (me) will go and do an apt-get upgrade and screw everything up. 
Holding the
package seems like it would be the obvious solution, but I can't do both at the 
same time with the
package resource; hence, the following atrocity:

    exec { "install-mcollective":
      command => "/usr/bin/apt-get -qq install mcollective=1.2.1-1",
      unless  => "/usr/bin/dpkg --get-selections mcollective | /bin/grep -qE 
'install|hold'",
    }
    package { "mcollective":
      ensure  => held,
      require => Exec['install-mcollective'],
    }

      
----------------------------------------
Bug #14560: package/apt provider needs to allow holding and ensuring a 
particular version at the same time
https://projects.puppetlabs.com/issues/14560#change-64468

Author: Russell Jackson
Status: Needs More Information
Priority: Normal
Assignee: 
Category: Debian
Target version: 
Affected Puppet version: 2.7.14
Keywords: debian apt dpkg package hold held
Branch: 


The package provider needs to be able to ensure a particular version of a 
package while also being able to set a hold status simultaneously. Currently, 
I'm forced to use an exec to install the package and then have the package 
provider ensure it being held. I can do it the other way around, but then I get 
change notices about the package version changing from 'held' to the ensured 
version on every run.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to