On Fri, May 16, 2014 at 12:54 AM, Paul Seymour <[email protected]> wrote:

> Hello,
>
> Working through some issues with upgrading our environment from 2.x to 3.5
> (now I should probably target 3.6 !) anyway we have a module which
> does basically.
>
> package { 'openssh-server':
>   ensure => 'absent',
> }
>
> package { '3rd-party-ssh':
>   ensure => 'installed'
> }
>
> This 3rd party SSH package has a "provides" of openssh-server on it. As
> such if you issue a "yum remove openssh-server" manually it will try and
> remove
> the 3rd party version. Which is the standard YUM behaviour I believe.
>

Yes, 3.5 fixed puppet's behavior to match yum's with respect to virtual
packages, a long requested feature. See
https://tickets.puppetlabs.com/browse/PUP-897 for details.

However, it was a regression wrt *puppet* which took a number of people by
surprise, so in 3.6.1, there's a fix to make the new (3.5-style,
yum-matching) behavior opt-in via a new "allow_virtual" parameter (with the
intent to change the default to be the yum-matching behavior in puppet 4).
See https://tickets.puppetlabs.com/browse/PUP-2182 for discussion.

Kylo


> So therefore on the 3.x servers the package is being removed/installed
> every time and as there is no dependencies here it can leave us without an
> SSH
> server running.
>
> Which I guess is probably what we are actually telling it to do. But this
> never happens in the 2.x series.
>
> Any ideas on why, and how we can stop this behaviour ?
>
> Thanks
> Paul
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/daba08fe-85bc-426d-90ee-a01d3bd91ec8%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/daba08fe-85bc-426d-90ee-a01d3bd91ec8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Kylo Ginsberg
[email protected]

*Join us at PuppetConf 2014**, September 23-24 in San Francisco
- http://puppetconf.com <http://puppetconf.com/>*
*Register by May 30th to take advantage of the Early Adopter discount
<http://links.puppetlabs.com/puppetconf-early-adopter> **—**save $349!*

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CALsUZFFZa2SNe4eXSDTq8JP6bZtpX3eVP-T9w3_qi6p_4zeQJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to