[Puppet Users] load balance multiple puppetmaster, backend workers not authenticating

2011-09-13 Thread Hang Chan
I'm trying to load balance multiple puppetmasters using apache and passenger as described in James's book. Was able to get a single passenger server installation to work correctly. When I configure the frontend load balancer and backend workers, the backend workers does not authenticate even thou

[Puppet Users] conditional if/else string matching

2008-12-02 Thread Hang Chan
Can't seem to get this to work. I read in the language tutorial that this was something introduced in 0.24.6. Upgraded both server and client to 0.24.6. I keep getting this error: err: Syntax error at '=='; expected '}' at /etc/puppet/modules/ntp/ manifests/init.pp:3 on node class ntp { if

[Puppet Users] Re: create a file only if directory exists

2008-11-21 Thread Hang Chan
m, Mike Renfro <[EMAIL PROTECTED]> wrote: > On 11/21/2008 10:18 AM, Hang Chan wrote: > > > I looked through his definitions and it only checks if the proper > > packages exists before setting up his configuration files. > > site.pp also includes an apache::site definition

[Puppet Users] Re: create a file only if directory exists

2008-11-21 Thread Hang Chan
exit 1 fi This seems like a simple thing to do, but for the life of me can't figure out how to do this in puppet. On Nov 21, 9:46 am, Mike Renfro <[EMAIL PROTECTED]> wrote: > Hang Chan wrote: > > I don't need puppet to create the /var/www/html/site1 directory as > > th

[Puppet Users] Re: create a file only if directory exists

2008-11-21 Thread Hang Chan
way you could get the behavior, or an if condition > with a custom fact would.  There might be another way too. > > I believe all of those idioms are going to be clumsy and hard to manage. > > What is your end goal? > > On Thu, Nov 20, 2008 at 2:34 PM, Hang Chan <[EMAIL PROTECTE

[Puppet Users] Re: create a file only if directory exists

2008-11-20 Thread Hang Chan
that the site1.conf is > created by the definition for the site1 directory.  In other words, > put a require for the site1.conf in the file definition for the site1 > directory. > > On Nov 20, 3:05 pm, Hang Chan <[EMAIL PROTECTED]> wrote: > > > I'm trying to create

[Puppet Users] create a file only if directory exists

2008-11-20 Thread Hang Chan
I'm trying to create a virtual host file only if the document root directory exists. It doesn't look like puppet is seeing the require metaparameter. Currently, the file is being created whether or not the document root directory exists. What is the best way to currently do this? I'm trying to