I have not tested that myself, so I'm not sure what Puppet would do in this
case.  I'm pretty sure yum would also install the updates, but only if the
main (rpm/deb) package specifically requires the newer version.

Given the original poster's request, it can be assumed that the package
does not have the updated version number as part of the package definition,
so it needs to be managed separately by Puppet.  I don't think its uncommon
to see a package that requires (e.g.) version "5.4", and not get so
specific as "5.4.3".


❧ Brian Mathis



On Wed, Jul 24, 2013 at 7:20 PM, Marcelo Roccasalva <roc...@gmail.com>wrote:

> I get it... but, if you have a module for zend and there is a new version
> of zend that _yum_ depends on the new version of php, then both zend and
> php get updated?
>
>
> On Wed, Jul 24, 2013 at 1:00 PM, Brian Mathis <
> brian.mat...@betteradmin.com> wrote:
>
>> On the initial install, yum will resolve and install the dependencies,
>> but we're talking about updates.
>>
>> If a package requires "php", and php-5.4.1 is already installed, that
>> will satisfy the requirement, even if php-5.4.2 is available, and the
>> updated package will not be installed.  You would need to use Puppet to
>> explicitly state that you want the package updated, and that requires its
>> own module, or at least its own resource definition.
>>
>>
>> ❧ Brian Mathis
>>
>>
>> On Wed, Jul 24, 2013 at 9:42 AM, Marcelo Roccasalva <roc...@gmail.com>wrote:
>>
>>> Hello Brian,
>>>
>>> Yum should solve dependencies (unless you tell it not to). So puppet is
>>> skipping dependencies on package updates?
>>>
>>>
>>>
>>> On Tue, Jul 23, 2013 at 12:02 PM, Brian Mathis <
>>> brian.mat...@betteradmin.com> wrote:
>>>
>>>> You are relying on the functionality of 'yum' to pull in the
>>>> dependencies, which is a shortcut, and this is the kind of problem such
>>>> shortcuts bring.
>>>>
>>>> You should be making new puppet modules for each of the dependencies,
>>>> and have the zend package 'require' all of those modules.  You can update
>>>> the versions in the dependency modules by using  "ensure => latest".
>>>>
>>>> The "yum update" exec will work, but it would be missing the point of
>>>> Puppet and no different than managing systems with a shell script.
>>>>
>>>>
>>>> ❧ Brian Mathis
>>>>
>>>>
>>>>
>>>> On Tue, Jul 23, 2013 at 9:21 AM, cko <dert...@gmail.com> wrote:
>>>>
>>>>> hi,
>>>>>  im trying to update the zend server package the following way:
>>>>>
>>>>>
>>>>>   package { "zend-server-php-5.4-6.1.0:
>>>>>     ensure => present,
>>>>>     require => [Yumrepo["ZendRepo"],Yumrepo["Zend_noarch"]],
>>>>>     notify => File["/etc/ld.so.conf.d/zend_server.conf"]
>>>>>   }
>>>>>
>>>>> when i install a node from scratch, the latest version (*including *the
>>>>> latest depencencies) gets installed.
>>>>>
>>>>> when i apply this to an existing node (with an older version of zend
>>>>> server) *ONLY *the package ""zend-server-php-" gets updated. updates
>>>>> for the packages "mod-php-5.4-apache2-zend-server-*" and " php*-5.4.16"
>>>>> (the dependencies) are ignored.
>>>>>
>>>>> whats the best way to solve this?
>>>>>
>>>>> i was thinking about an "yum update php*" exec?
>>>>>
>>>>> --
>>>>> 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 puppet-users+unsubscr...@googlegroups.com.
>>>>> To post to this group, send email to puppet-users@googlegroups.com.
>>>>> Visit this group at http://groups.google.com/group/puppet-users.
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>>
>>>>>
>>>>
>>>>  --
>>>> 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 puppet-users+unsubscr...@googlegroups.com.
>>>> To post to this group, send email to puppet-users@googlegroups.com.
>>>> Visit this group at http://groups.google.com/group/puppet-users.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Marcelo
>>>
>>> "¿No será acaso que esta vida moderna está teniendo más de moderna que
>>> de
>>> vida?" (Mafalda)
>>>
>>> --
>>> 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 puppet-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to puppet-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/puppet-users.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>  --
>> 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 puppet-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to puppet-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/puppet-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Marcelo
>
> "¿No será acaso que esta vida moderna está teniendo más de moderna que de
> vida?" (Mafalda)
>
> --
> 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 puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to