Ask Your Question

How can I manage packages more efficiently?

asked 2013-10-14 13:09:39 -0600

jgh gravatar image

updated 2013-10-14 13:10:53 -0600

What is the best way to handle updating and upgrading of package installations and/or upgrades for many packages without having to create a module for every package? Currently, I am a user of spacewalk (http:/, but I have been a puppet administrator for years but never really have used it for full package resource allocation and control.

As it is now with spacewalk, it is effectively a point-click view of a package repository, where I am able to choose a collection of machines, and choose a package to install into any given machine within a selected ... (more)

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-10-14 17:05:50 -0600

Stefan gravatar image

We only manage packages if they are part of an application we want to manage with puppet.

  1. We do not manage system packages with puppet that are already installed through kickstart (= already present on every machine before puppet runs)
  2. We do not manage dependencies and only manage the "highest" level, e.g mysql-server instead of mysql-libs
  3. If the package is needed by multiple applications we write a module for that (e.g. java::sdk)
  4. If it is specific to one application it will go in the corresponding package class of the module (e.g. cacti::package)

We also don't ... (more)

edit flag offensive delete link more


This is very helpful, and was the approach I was thinking of, myself. There are hundreds of packages that get installed, but using puppet to manage each one is unmanageable ...(more)

jgh gravatar imagejgh ( 2013-10-14 17:17:18 -0600 )edit

answered 2013-10-14 14:45:40 -0600

Ancillas gravatar image

I'm shooting from the hip here, but I might create a defined type that installed a package at a version defined by a parameter, and then use create_resources() along with a hiera hash that looked something like this.

  name: 'git'
  version: 'latest'
  name: 'graphite'
  version: '0.9.12'
  name: 'tomcat6'
  version: '6.0.35-1ubuntu3.3'
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2013-10-14 13:09:39 -0600

Seen: 306 times

Last updated: Oct 14 '13