Martijn
2013-May-03 15:50 UTC
[Puppet Users] How to upgrade Puppet agent on Ubuntu Precise 12.04 LTS to version 3 at first run?
Dear list, When I bootstrap a new EC2 instance from a base Ubuntu 12.04 LTS image I use cloud-init to install the puppet-agent via apt, write a minimal puppet.conf and start puppet. Ubuntu 12.04 comes with puppet 2.7.*, and I''d like to upgrade to the 3.* version from Puppetlabs'' apt repo before starting the run that configure the machine into a specific role. I''m having trouble figuring out how to add the repo and only upgrade the puppet agent, before starting the actual run with the upgraded version 3 agent. I could use cloud-init to do this before puppet starts, but I''d like to keep the bootstrapping as simple as possible and manage things via Puppet. This must be a common task, so how do you do it? Thanks, Martijn -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Hugh Cole-Baker
2013-May-03 19:37 UTC
[Puppet Users] Re: How to upgrade Puppet agent on Ubuntu Precise 12.04 LTS to version 3 at first run?
On Friday, May 3, 2013 4:50:38 PM UTC+1, Martijn wrote:> > Dear list, > > When I bootstrap a new EC2 instance from a base Ubuntu 12.04 LTS image I > use cloud-init to install the puppet-agent via apt, write a minimal > puppet.conf and start puppet. Ubuntu 12.04 comes with puppet 2.7.*, and I''d > like to upgrade to the 3.* version from Puppetlabs'' apt repo before > starting the run that configure the machine into a specific role. > > I''m having trouble figuring out how to add the repo and only upgrade the > puppet agent, before starting the actual run with the upgraded version 3 > agent. I could use cloud-init to do this before puppet starts, but I''d like > to keep the bootstrapping as simple as possible and manage things via > Puppet. > > This must be a common task, so how do you do it? > > Thanks, Martijn >Why not add the following lines into your cloud-config file? apt_sources: - source: "deb http://apt.puppetlabs.com $RELEASE main" keyid: 4BD6EC30 filename: puppetlabs.list packages: - puppet This is the config we use to install Puppet 3 at instance launch time. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Martijn
2013-May-03 23:11 UTC
[Puppet Users] Re: How to upgrade Puppet agent on Ubuntu Precise 12.04 LTS to version 3 at first run?
Op vrijdag 3 mei 2013 21:37:46 UTC+2 schreef Hugh Cole-Baker het volgende:> > On Friday, May 3, 2013 4:50:38 PM UTC+1, Martijn wrote: >> >> Dear list, >> >> When I bootstrap a new EC2 instance from a base Ubuntu 12.04 LTS image I >> use cloud-init to install the puppet-agent via apt, write a minimal >> puppet.conf and start puppet. Ubuntu 12.04 comes with puppet 2.7.*, and I''d >> like to upgrade to the 3.* version from Puppetlabs'' apt repo before >> starting the run that configure the machine into a specific role. >> >> I''m having trouble figuring out how to add the repo and only upgrade the >> puppet agent, before starting the actual run with the upgraded version 3 >> agent. I could use cloud-init to do this before puppet starts, but I''d like >> to keep the bootstrapping as simple as possible and manage things via >> Puppet. >> >> This must be a common task, so how do you do it? >> >> Thanks, Martijn >> > > Why not add the following lines into your cloud-config file? > > apt_sources: > - source: "deb http://apt.puppetlabs.com $RELEASE main" > keyid: 4BD6EC30 > filename: puppetlabs.list > packages: > - puppet > > > This is the config we use to install Puppet 3 at instance launch time. >Not a bad idea. I was trying to keep the bootstrapping as basic as possible, but I suppose this will make things a lot easier. Do you subsequently overwrite the puppet config via Puppet, and any future puppet upgrades? Martijn -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.