cko
2013-Jul-23 13:21 UTC
[Puppet Users] updating package and all dependency updates with puppet
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+unsubscribe@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.
Brian Mathis
2013-Jul-23 15:02 UTC
Re: [Puppet Users] updating package and all dependency updates with puppet
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 <dertune@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+unsubscribe@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+unsubscribe@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 Roccasalva
2013-Jul-24 13:42 UTC
Re: [Puppet Users] updating package and all dependency updates with puppet
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.mathis@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 <dertune@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+unsubscribe@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+unsubscribe@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+unsubscribe@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.
Brian Mathis
2013-Jul-24 16:00 UTC
Re: [Puppet Users] updating package and all dependency updates with puppet
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 <roccas@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.mathis@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 <dertune@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+unsubscribe@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+unsubscribe@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+unsubscribe@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+unsubscribe@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 Roccasalva
2013-Jul-24 23:20 UTC
Re: [Puppet Users] updating package and all dependency updates with puppet
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.mathis@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 <roccas@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.mathis@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 <dertune@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+unsubscribe@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+unsubscribe@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+unsubscribe@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+unsubscribe@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+unsubscribe@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.
Brian Mathis
2013-Jul-24 23:40 UTC
Re: [Puppet Users] updating package and all dependency updates with puppet
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 <roccas@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.mathis@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 <roccas@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.mathis@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 <dertune@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+unsubscribe@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+unsubscribe@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+unsubscribe@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+unsubscribe@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+unsubscribe@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+unsubscribe@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.
jcbollinger
2013-Jul-29 17:27 UTC
Re: [Puppet Users] updating package and all dependency updates with puppet
On Wednesday, July 24, 2013 6:40:17 PM UTC-5, Brian Mathis wrote:> > 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". > >Indeed. This is a packaging / yum issue, not a Puppet issue. Exactly the same behavior would be observed running yum manually from the command line. In fact, yum has no way to express the idea of updating a package and all its dependencies, but not anything else (except by explicitly naming all the packages wanting upgraded). If you care about specific versions of particular packages then you need to manage those packages explicitly, whether via Puppet or directly via Yum. John -- 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+unsubscribe@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.