Hi John!
On Fri, Dec 21, 2012 at 08:36:27PM -0800, John Moser wrote:
> I'm having a case where, as with Puppet, multiple packages use the same
> file. For example, puppet and puppetmaster both use /etc/puppet/puppet.conf
You can declare a list of requires for a resource. Something like:
service { 'postgresql':
ensure => running,
require => [
File[/etc/postgresql/9.1/main/postgresql.conf],
Package[postgresql]
]
}
Both file and package are handled first and need to be in the catalog.
I use this often, when I have some module that has a dependency on e.g.
Service[apache2], but does not deal with that on it's own. Puppet ensures then
that the webserver is declared in the catalog and the vhost I am
concerned with has no problems.
Cheers,
Matthias Viehweger
--
Serververwaltung und Softwareentwicklung
https://www.heute-kaufen.de
Prinzessinnenstraße 20 - 10969 Berlin