Hello! I have question about Debian package management with puppet. I''m wondering is there sane way to make puppet respects packages pinning? i.e., if I have several repos for one package, let''s say it is "nginx" which can be found in lenny & lenny-backports repos. I''ve created pinning file like: Package: nginx Pin: release a=lenny-backports Pin-Priority: 600 So, if i have nginx installed from repository "lenny" , ''apt-get install nginx'' will update (if version is newer of course) nginx from lenny-backports . When I run puppet, it just ignores package available in pins, I guess it thinks package already installed. Package is described like: $packagelist = [ "nginx" ] package { $packagelist: ensure => installed, } Using "latest" is not the cure, because it will look only on version (as i understand) and not on pins. I''ve found https://github.com/evolvingweb/puppet-apt/blob/master/manifests/force.pp which looks like something I need, but may be I''m missing something and there is proper way to do this. My puppet versions: root@kappa2:~# dpkg -l|grep puppet ii puppet 2.6.2-4~bpo50+1 Centralized configuration management - agent ii puppet-common 2.6.2-4~bpo50+1 Centralized configuration management root@kappa2:~# puppetd --version 2.6.2 OS - Debian Lenny amd64, puppet from backports. P.S. Please, CC me on reply. -- Best regards, [COOLCOLD-RIPN] -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Patrick Mohr
2011-May-17 07:39 UTC
Re: [Puppet Users] apt-pinning & puppet package management
If it''s pinned like you show, will your computer upgrade to the backports version if you run "apt-get update && apt-get upgrade" or do you need the "-t"? On Mon, May 16, 2011 at 1:49 PM, CoolCold <coolthecold@gmail.com> wrote:> Hello! > I have question about Debian package management with puppet. I''m > wondering is there sane way to make puppet respects packages pinning? > i.e., if I have several repos for one package, let''s say it is "nginx" > which can be found in lenny & lenny-backports repos. I''ve created > pinning file like: > Package: nginx > Pin: release a=lenny-backports > Pin-Priority: 600 > > So, if i have nginx installed from repository "lenny" , ''apt-get > install nginx'' will update (if version is newer of course) nginx from > lenny-backports . > When I run puppet, it just ignores package available in pins, I guess > it thinks package already installed. Package is described like: > $packagelist = [ "nginx" ] > > package { $packagelist: > ensure => installed, > } > > Using "latest" is not the cure, because it will look only on version > (as i understand) and not on pins. I''ve found > https://github.com/evolvingweb/puppet-apt/blob/master/manifests/force.pp > which looks like something I need, but may be I''m missing something > and there is proper way to do this. > > My puppet versions: > root@kappa2:~# dpkg -l|grep puppet > ii puppet 2.6.2-4~bpo50+1 > Centralized configuration management - agent > ii puppet-common 2.6.2-4~bpo50+1 > Centralized configuration management > root@kappa2:~# puppetd --version > 2.6.2 > > OS - Debian Lenny amd64, puppet from backports. > > P.S. Please, CC me on reply. > > -- > Best regards, > [COOLCOLD-RIPN] > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, May 17, 2011 at 11:39 AM, Patrick Mohr <kc7zzv@gmail.com> wrote:> If it''s pinned like you show, will your computer upgrade to the backports > version if you run "apt-get update && apt-get upgrade" or do you need the > "-t"?Well, it should upgrade to backport version, because of just apt-get update && apt-get install nginx installs the version from backports.> > On Mon, May 16, 2011 at 1:49 PM, CoolCold <coolthecold@gmail.com> wrote: >> >> Hello! >> I have question about Debian package management with puppet. I''m >> wondering is there sane way to make puppet respects packages pinning? >> i.e., if I have several repos for one package, let''s say it is "nginx" >> which can be found in lenny & lenny-backports repos. I''ve created >> pinning file like: >> Package: nginx >> Pin: release a=lenny-backports >> Pin-Priority: 600 >> >> So, if i have nginx installed from repository "lenny" , ''apt-get >> install nginx'' will update (if version is newer of course) nginx from >> lenny-backports . >> When I run puppet, it just ignores package available in pins, I guess >> it thinks package already installed. Package is described like: >> $packagelist = [ "nginx" ] >> >> package { $packagelist: >> ensure => installed, >> } >> >> Using "latest" is not the cure, because it will look only on version >> (as i understand) and not on pins. I''ve found >> https://github.com/evolvingweb/puppet-apt/blob/master/manifests/force.pp >> which looks like something I need, but may be I''m missing something >> and there is proper way to do this. >> >> My puppet versions: >> root@kappa2:~# dpkg -l|grep puppet >> ii puppet 2.6.2-4~bpo50+1 >> Centralized configuration management - agent >> ii puppet-common 2.6.2-4~bpo50+1 >> Centralized configuration management >> root@kappa2:~# puppetd --version >> 2.6.2 >> >> OS - Debian Lenny amd64, puppet from backports. >> >> P.S. Please, CC me on reply. >> >> -- >> Best regards, >> [COOLCOLD-RIPN] >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to >> puppet-users+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> > >-- Best regards, [COOLCOLD-RIPN] -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Felix Frank
2011-May-20 15:42 UTC
Re: [Puppet Users] apt-pinning & puppet package management
On 05/16/2011 10:49 PM, CoolCold wrote:> Using "latest" is not the cure, because it will look only on version > (as i understand) and not on pins.Have you tried this? If apt-cache policy lists a newer candidate for a package, it''s my understanding that ensure => latest with the apt provider should fetch that for you. Cheers, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nigel Kersten
2011-May-20 15:45 UTC
Re: [Puppet Users] apt-pinning & puppet package management
On Fri, May 20, 2011 at 8:42 AM, Felix Frank < felix.frank@alumni.tu-berlin.de> wrote:> On 05/16/2011 10:49 PM, CoolCold wrote: > > Using "latest" is not the cure, because it will look only on version > > (as i understand) and not on pins. > > Have you tried this? > > If apt-cache policy lists a newer candidate for a package, it''s my > understanding that ensure => latest with the apt provider should fetch > that for you. >Yeah, it''s always been my experience that ensure => latest will honor your pins.> > Cheers, > Felix > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- Nigel Kersten Product, Puppet Labs @nigelkersten -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.