Re: [Puppet Users] Re: How to avoid the use of defined

2011-07-13 Thread Nigel Kersten
On Wed, Jul 13, 2011 at 3:34 AM, Arnaud Gomes-do-Vale wrote: > > > # Resource defaults for Packages in this class > > Package { > > ensure => installed, > > require => Package['php'], > > notify => Service['httpd'] > > } > > This creates a dependency loop: An option here is to

[Puppet Users] Re: How to avoid the use of defined

2011-07-13 Thread jcbollinger
On Jul 13, 5:34 am, Arnaud Gomes-do-Vale wrote: > Hi, > > First, thanks for your help. However I still have some issues with your > solution. > > > > jcbollinger writes: > > few bad ones.  Here's a good rule of thumb: never use Puppet's > > "defined()" function in your manifests.  Ever.  It is

Re: [Puppet Users] Re: How to avoid the use of defined

2011-07-13 Thread Arnaud Gomes-do-Vale
Hi, First, thanks for your help. However I still have some issues with your solution. jcbollinger writes: > few bad ones. Here's a good rule of thumb: never use Puppet's > "defined()" function in your manifests. Ever. It is brittle, and it > will cause you grief, increasing exponentially wit

[Puppet Users] Re: How to avoid the use of defined

2011-07-12 Thread jcbollinger
On Jul 11, 11:31 am, Arnaud Gomes-do-Vale wrote: > Hi folks, > > This is a "best practices" question as much as a technical one. > > I am trying to redefine variables when I include a specific class. The > use case is installing php 5.3 on a few select centos 5 boxes while > keeping the default