How to upgrade puppets?

19 views
Skip to first unread message

Stasheck

unread,
May 14, 2008, 10:25:14 AM5/14/08
to Puppet Users
I was wondering about it, but I have complete mind-block. How should I
upgrade puppet using puppet?

regards,
Stanislaw

Phillip Scholz

unread,
May 14, 2008, 10:41:13 AM5/14/08
to puppet...@googlegroups.com
One example for debian:

package { puppet:
ensure => latest,
}

package { puppetmaster:
ensure => latest,
}

Regards

Stasheck schrieb:

--
Phillip Scholz
Junior Linux System-Administrator
IT Shared Hosting Linux - SaaS, Karlsruhe

1&1 Internet AG
Brauerstraße 48
D-76135 Karlsruhe

Tel. +49-721-91374-4818
phillip...@1und1.de
http://www.1und1.de/

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth,
Matthias Ehrlich, Andreas Gauger,
Thomas Gottschlich, Matthias Greve,
Robert Hoffmann, Markus Huhn,
Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren

Stasheck

unread,
May 16, 2008, 7:20:31 AM5/16/08
to Puppet Users
OK, but I forgot to tell you - I am installing puppets from tarball,
since many of my machines are Debian Sarge, and there's no packet for
it.

Any other ideas?

regards,
Stanislaw

On May 14, 4:41 pm, Phillip Scholz <phillip.sch...@1und1.de> wrote:
> One example for debian:
>
> package { puppet:
>         ensure => latest,
>         }
>
> package { puppetmaster:
>         ensure => latest,
>         }
>
> Regards
>
> Stasheck schrieb:
>
> > I was wondering about it, but I have complete mind-block. How should I
> > upgrade puppet using puppet?
>
> > regards,
> > Stanislaw
>
> --
> Phillip Scholz
> Junior Linux System-Administrator
> IT Shared Hosting Linux - SaaS, Karlsruhe
>
> 1&1 Internet AG
> Brauerstraße 48
> D-76135 Karlsruhe
>
> Tel. +49-721-91374-4818
> phillip.sch...@1und1.dehttp://www.1und1.de/

AJ

unread,
May 16, 2008, 7:32:24 AM5/16/08
to puppet...@googlegroups.com
Backport to sarge?

AJ

unread,
May 16, 2008, 7:35:06 AM5/16/08
to puppet...@googlegroups.com
Sorry, that wasn't very helpful of me.

Take a look at http://reductivelabs.com/trac/puppet/wiki/DebianTestingPackages

Regards,

AJ

Phillip Scholz

unread,
May 16, 2008, 7:51:26 AM5/16/08
to puppet...@googlegroups.com
I do the building of packages myself because of this problem with debian.

this is an example for the 0.24.4 release of puppet:

###snip##

$ apt-get install fakeroot devscripts debhelper dpatch

$ dget \
http://debian.inf.tu-dresden.de/debian/pool/main/p/puppet/puppet_0.24.4-3.dsc
$ dpkg-source -x puppet_0.24.4-3.dsc
$ cd puppet*
[have a look at debian/control, perhaps there is something you need to
modify - I don't remember]
$ dpkg-buildpackge -rfakeroot
$ cd ..
$ dpkg -i puppet*.deb

###snap###

Phillip

--
Phillip Scholz
Junior Linux System-Administrator
IT Shared Hosting Linux - SaaS, Karlsruhe

1&1 Internet AG
Brauerstraße 48
D-76135 Karlsruhe

Tel. +49-721-91374-4818
phillip...@1und1.de

signature.asc

huangmingyou

unread,
May 16, 2008, 8:10:19 AM5/16/08
to Puppet Users
if you still want use tarbar puppet,you can download the package from
puppetmaster or ftp somthing to the puppet client host. then untar the
package,install it. ,at the early ,I use this method.
may be:
class puppet_upgrade {
exec "puppet_upgrade": command=>"wget -O /usr/local/puppet-
version.tar.gz http://url"; # then install it"
}}


On May 16, 7:51 pm, Phillip Scholz <phillip.sch...@1und1.de> wrote:
> I do the building of packages myself because of this problem with debian.
>
> this is an example for the 0.24.4 release of puppet:
>
> ###snip##
>
> $ apt-get install fakeroot devscripts debhelper dpatch
>
> $ dget \http://debian.inf.tu-dresden.de/debian/pool/main/p/puppet/puppet_0.24...
> $ dpkg-source -x puppet_0.24.4-3.dsc
> $ cd puppet*
> [have a look at debian/control, perhaps there is something you need to
> modify - I don't remember]
> $ dpkg-buildpackge -rfakeroot
> $ cd ..
> $ dpkg -i puppet*.deb
>
> ###snap###
>
> Phillip
>
> --
> Phillip Scholz
> Junior Linux System-Administrator
> IT Shared Hosting Linux - SaaS, Karlsruhe
>
> 1&1 Internet AG
> Brauerstraße 48
> D-76135 Karlsruhe
>
> Tel. +49-721-91374-4818
> phillip.sch...@1und1.dehttp://www.1und1.de/
>
> Amtsgericht Montabaur HRB 6484
>
> Vorstand: Henning Ahlert, Ralph Dommermuth,
> Matthias Ehrlich, Andreas Gauger,
> Thomas Gottschlich, Matthias Greve,
> Robert Hoffmann, Markus Huhn,
> Achim Weiss
> Aufsichtsratsvorsitzender: Michael Scheeren
>
> signature.asc
> 1KDownload

AJ

unread,
May 16, 2008, 9:21:27 AM5/16/08
to puppet...@googlegroups.com
Also, take a look at
http://reductivelabs.com/trac/puppet/wiki/BootstrappingWithPuppet

I wrote it a while back to show it's quite possible to go from an ancient
version of Puppet (0.22) all the way up to the latest version with puppet and
apt quite easily.

James Bellenger

unread,
May 19, 2008, 12:09:20 PM5/19/08
to puppet...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stanislaw:
We've considered the same issue when putting together our own puppet
installation. Something that we're trying out is creating a custom fact,
latestpuppetversion, that has a hard-coded version number. We then have
a manifest that checks $latestpuppetversion against $puppetversion and
creates a couple of execs if they are different. We're hoping that this
gives us control over how and when we upgrade the puppet distribution on
our nodes, and making it a puppet-managed process should let us roll out
updates gradually if we like.

James Bellenger.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD4DBQFIMaYw8TYLVDRcCYURApKCAKCCR0x2Qlo0ZmdeLoB9yewrO6ptkwCXe17h
u03PUgy74xTxV3hKeuEd1A==
=iRY7
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages