[Puppet Users] Re: Any good documentation NGINX + Passenger + Puppet?

2011-06-02 Thread Luc Suryo
Thanks It end up a restart of nginx and everything is working! So pretty happy my next thing would be document what I did and make that available to whoever needs it On Jun 2, 4:28 am, Russell Howe wrote: > > 3. SO my next issue is a function I wrote (random minute for > > cron), this stopped w

[Puppet Users] Re: Any good documentation NGINX + Passenger + Puppet?

2011-06-01 Thread Luc Suryo
t > derivative?  I've never done this on the Debians. > > > > > > > > On Tue, May 31, 2011 at 6:15 PM, Luc Suryo wrote: > > Hello, > > > I been browsing around and can not find any good documentation how to setup > > Puppet with Nginx and passenger >

[Puppet Users] Any good documentation NGINX + Passenger + Puppet?

2011-05-31 Thread Luc Suryo
Hello, I been browsing around and can not find any good documentation how to setup Puppet with Nginx and passenger I have a working Nginx with passenger support working but then what ? Kinda confuse and wondering if maybe Passenger is not the way to go ? Mongrel ? or something different? any poin

Re: [Puppet Users] randomize minute

2011-04-19 Thread Luc Suryo
e tip, added to my bookmark :) On Tue, Apr 19, 2011 at 6:06 PM, Rohan McGovern wrote: > Luc Suryo said: >> Hello >> >> I.m trying to get a 'static random' base on a node's ip address and >> use that number as the minute for a crontab >> so each node wil

[Puppet Users] randomize minute

2011-04-19 Thread Luc Suryo
Hello I.m trying to get a 'static random' base on a node's ip address and use that number as the minute for a crontab so each node will get a number between and 59 The things is the number is generated by the puppet master and so all node get the same value... my current code : random_minute =

[Puppet Users] Cron monthday : bug?

2011-02-24 Thread Luc Suryo
Hello I have a cron entry that uses monthday = "1,15" , so I want the cron to be executed every first and 15th of the month however I get an error : Parameter monthday failed: 1,15 is not a valid monthday. Is this a bug or does puppet uses different syntax? can someone advice? thanks -- -ls -

[Puppet Users] Re: Puppetmaster 2.6.x on Ubuntu Lucid

2011-01-13 Thread Luc Suryo
good point! :) On Jan 12, 3:20 pm, Patrick wrote: > Well, your instructions also can work for upgrading puppet with a few small > changes.  Might even work without changes. > > On Jan 12, 2011, at 2:54 PM, Luc Suryo wrote: > > > that would be a catch 22 :) > > >

[Puppet Users] Re: Puppetmaster 2.6.x on Ubuntu Lucid

2011-01-12 Thread Luc Suryo
someone will automate it with puppet. > > On Jan 12, 2011, at 8:14 AM, Luc Suryo wrote: > > > these are manual step to be taken so one can install puppet from the > > backport repo > > so not sure what you ref. too ? the order of step 1, 2 and 3 does not > > matte

[Puppet Users] Re: Puppetmaster 2.6.x on Ubuntu Lucid

2011-01-12 Thread Luc Suryo
these are manual step to be taken so one can install puppet from the backport repo so not sure what you ref. too ? the order of step 1, 2 and 3 does not matter but need to be done before 4 (apt-get update) On Jan 11, 2:25 pm, Patrick wrote: > On Jan 11, 2011, at 8:52 AM, Luc Suryo wr

[Puppet Users] Re: Puppetmaster 2.6.x on Ubuntu Lucid

2011-01-11 Thread Luc Suryo
here how i do it: 1. in file /etc/apt/preferences I made several adjustment but for puppet this is the relevant lines # Backport for puppetlabs Package: puppet puppet-common puppetmaster facter Pin: release a=lenny-backports Pin-Priority: 900 2. then created the /etc/apt/sources.list.d/backport

[Puppet Users] Re: can a class require an other class?

2011-01-07 Thread Luc Suryo
OK hat is what I was looking for, sorry for the noise. On Jan 6, 2:04 pm, Daniel Pittman wrote: > On Thu, Jan 6, 2011 at 12:29, Luc Suryo wrote: > > Is it possible to define a class say php-fpm that requires the class > > php to be called first?  if so what s the syntax? &g

[Puppet Users] can a class require an other class?

2011-01-06 Thread Luc Suryo
Hello Is it possible to define a class say php-fpm that requires the class php to be called first ? if so what s the syntax? Here is some background (Ubuntu distro) To get the latest version of either php or php-fpm I need to setup a new repo (dotdeb), since if one is using php-fpm there is big

[Puppet Users] tagged not working ?

2010-11-02 Thread Luc Suryo
Hello For some reason I do not seems to be able to get 'tag' working... env : EC2 Ubuntu, puppet version 2.6.1 (client and puppetmaster) example of my nodes.pp file class puppet_tagged { if tagged("fly-puppet") { file { "/tmp/fly_puppet_server":

Re: [Puppet Users] Re: Passenger Problems

2010-10-26 Thread Luc Suryo
version of the passenger deb. > > After install: > Merge your existing /etc/puppet/puppet.conf with your backup. > > > > On Oct 26, 2010, at 2:01 PM, Luc Suryo wrote: > > Mathias, > > if the none passenger version was install, what do one need to do to switch >

Re: [Puppet Users] Re: Passenger Problems

2010-10-26 Thread Luc Suryo
Mathias, if the none passenger version was install, what do one need to do to switch ? apt-get remove and then apt-get install or will a apt-get-install replace the current none passenger version? Thanks On Tue, Oct 26, 2010 at 1:38 PM, Mathias Gug wrote: > Hi, > > Excerpts from Taylor Leese's

Re: [Puppet Users] Re: puppetrun failing with Error 403?

2010-10-23 Thread Luc Suryo
On Sat, Oct 23, 2010 at 3:45 AM, Luc Suryo wrote: > Can you please show the namespaceouth,conf file? I having the same > problem :( > > mine looks like this > > [puppetrunner] >path /run >auth any >allow noc01.cloud.aws > > > thanks &

Re: [Puppet Users] namespaceauth.conf

2010-10-22 Thread Luc Suryo
ould have something like > this: > > path /run > method save > allow > > is your master's fqdn. > > > > > > On Sat, Oct 23, 2010 at 6:57 AM, Luc Suryo wrote: > >> Hello >> >> I know this should be easy but read docs, searched and st

[Puppet Users] Re: puppetrun failing with Error 403?

2010-10-22 Thread Luc Suryo
Can you please show the namespaceouth,conf file? I having the same problem :( mine looks like this [puppetrunner] path /run auth any allow noc01.cloud.aws thanks -ls On Sep 10, 3:13 am, matonb wrote: > Hi Dou ZQ, > >   I added the puppetmaster hostname to the path / s

[Puppet Users] namespaceauth.conf

2010-10-22 Thread Luc Suryo
Hello I know this should be easy but read docs, searched and still not able the master to kick the client This in a cloud env where we run our own DNS, so reverse and forward DNS all work the client can do 'dig host' or dig '172.27.0.100' and it will resolve to the puppet server puppet is a CNA

Re: [Puppet Users] exec and subsribe

2010-09-26 Thread Luc Suryo
Thanks Bruce! On Sun, Sep 26, 2010 at 9:11 AM, Bruce Richardson wrote: > On Fri, Sep 24, 2010 at 01:32:15PM -0700, Luc Suryo wrote: > > Hello > > > > simple question ... if 2 or more EXEC subcribes to a file and that file > is > > changed would > > then all

Re: [Puppet Users] exec and subsribe

2010-09-24 Thread Luc Suryo
a > reply on the list anyway. > > > Silviu > > > On 24.09.2010 23:32, Luc Suryo wrote: > >> Hello >> >> simple question ... if 2 or more EXEC subcribes to a file and that file is >> changed would >> then all the EXECs be run ? or does it depend whatever

[Puppet Users] exec and subsribe

2010-09-24 Thread Luc Suryo
Hello simple question ... if 2 or more EXEC subcribes to a file and that file is changed would then all the EXECs be run ? or does it depend whatever the FILE notifies the EXEC? please bare in mind. I'm a 'new' puppet user, thanks -- -ls -- You received this message because you are subscribe

Re: [Puppet Users] Does a service call trigger a restart?

2010-09-23 Thread Luc Suryo
ile["named.conf"] to your service definition. > > -Stephen > > On Thu, Sep 23, 2010 at 1:01 PM, Luc Suryo wrote: > >> Simple question >> >> If a file changes and it notify a service, will the service be restarted? >> If not do I need to create a exe

[Puppet Users] Does a service call trigger a restart?

2010-09-23 Thread Luc Suryo
Simple question If a file changes and it notify a service, will the service be restarted? If not do I need to create a exec? (which I have right now) below is what I have in mind: it this correct? thanks! file { "named.conf" : path => "/var/named/etc/name.conf", mode => 0444, ow

Re: [Puppet Users] Can a require use an OR ?

2010-09-23 Thread Luc Suryo
sorry forget to mention that is what i done :) thank much for your time! On Thu, Sep 23, 2010 at 8:47 AM, Nigel Kersten wrote: > On Thu, Sep 23, 2010 at 8:43 AM, Luc Suryo wrote: > > Then would the service be define as this? > > > > service { "openvpn::base

Re: [Puppet Users] Can a require use an OR ?

2010-09-23 Thread Luc Suryo
et/modules/openvpn/manifests/init.pp:19 So i guess I will just remove the subscribe and use a notify of exec restart as that one works :) Thanks! On Thu, Sep 23, 2010 at 8:18 AM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > On 09/23/2010 05:13 PM, Luc Suryo wrote: > &

Re: [Puppet Users] Can a require use an OR ?

2010-09-23 Thread Luc Suryo
restarted (not reload! ) So being a novice in Puppet I wanted the service to depend on the config file being updated.. make sense ? On Wed, Sep 22, 2010 at 9:48 PM, Jeff McCune wrote: > On Wed, Sep 22, 2010 at 6:40 PM, Luc Suryo wrote: > > yes I just did that., and yes I do know that ope

Re: [Puppet Users] Can a require use an OR ?

2010-09-23 Thread Luc Suryo
I end up doing to different 'file' definition and remove the 'require file ' part of the service and using exec instead.. tested and works On Wed, Sep 22, 2010 at 9:48 PM, Jeff McCune wrote: > On Wed, Sep 22, 2010 at 6:40 PM, Luc Suryo wrote: > > yes I just did

Re: [Puppet Users] Can a require use an OR ?

2010-09-22 Thread Luc Suryo
:36 PM, Patrick wrote: > > On Sep 22, 2010, at 6:14 PM, Luc Suryo wrote: > > Hi Jeff > > well the thing is a client uses openvpn_client.conf and the server > openvpn_server.conf (our setup) > so i wanted to do > > > service { "openvpn" : >

Re: [Puppet Users] Can a require use an OR ?

2010-09-22 Thread Luc Suryo
ls On Wed, Sep 22, 2010 at 6:04 PM, Jeff McCune wrote: > On Wed, Sep 22, 2010 at 5:55 PM, Luc Suryo wrote: > > Hello > > > > it is possible to define something like this? > > > > exec { "openvpn_reload" : > > command => "/etc/init

[Puppet Users] Can a require use an OR ?

2010-09-22 Thread Luc Suryo
Hello it is possible to define something like this? exec { "openvpn_reload" : command => "/etc/init.d/openvpn reload", user => root, require => [ File[ "openvpn_client.conf"] OR File ["openvpn_server"] ] } is possible what would be the correct syntax? thanks -- -

Re: [Puppet Users] Can the require value be a function?

2010-09-16 Thread Luc Suryo
Thanks! Works -- Kind regards Luc Suryo - " Remember No one travels faster than the speed of live " On Sep 16, 2010, at 16:30, Nan Liu wrote: > On Thu, Sep 16, 2010 at 3:36 PM, Luc Suryo wrote: >> fly::create_dir { "/usr/share/mysql-zrm/pkgs" : mode => 075

[Puppet Users] Can the require value be a function?

2010-09-16 Thread Luc Suryo
Hello I have this fly::create_dir { "/usr/share/mysql-zrm/pkgs" : mode => 0755, owner => bin, group => bin } ==> creates the directory and parents .. it just does a mkdir -p with couple test so I have file { "$client_package_file" : path => "/us

Re: [Puppet Users] Length of the name of a define

2010-09-16 Thread Luc Suryo
will do can it a be a tar file ? (gz?) Thanks! On Thu, Sep 16, 2010 at 9:55 AM, James Turnbull wrote: > Luc Suryo wrote: > >> the latest version 2.6.1 >> >> >> Then it's definitely a bug and can you please log it? PLease include > your manifest

Re: [Puppet Users] Length of the name of a define

2010-09-16 Thread Luc Suryo
the latest version 2.6.1 On Thu, Sep 16, 2010 at 9:50 AM, James Turnbull wrote: > Luc Suryo wrote: > >> >> and is there any restriction on the define name? >> > > There shouldn't be - what version is this? > > Regards > > James Turnbull >

[Puppet Users] Length of the name of a define

2010-09-16 Thread Luc Suryo
Hello, I do not not whatever this is a bug or somewhere in the docs (could not find it) if I define is named: define add_file_exec_bin I get the error err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Inv

Re: [Puppet Users] Provider useradd does not support features manages_passwords; not managing attribute password

2010-09-14 Thread Luc Suryo
Hmm very odd and yes your are correct somehow ruby-shadow was removed... I added it back and it works again.. not a bug.. sorry and thanks On Tue, Sep 14, 2010 at 9:45 AM, James Turnbull wrote: > > > Luc Suryo wrote: > >> James >> >> its a CentOS 5.5. box, and it w

Re: [Puppet Users] Provider useradd does not support features manages_passwords; not managing attribute password

2010-09-14 Thread Luc Suryo
James its a CentOS 5.5. box, and it worked before I installed 2.6.1 this morning. Do I need to add manages_passwords = true maybe? thanks On Tue, Sep 14, 2010 at 9:34 AM, James Turnbull wrote: > Luc Suryo wrote: > >> Hello >> >> I just upgraded to 2.6.1 and now when

[Puppet Users] Provider useradd does not support features manages_passwords; not managing attribute password

2010-09-14 Thread Luc Suryo
Hello I just upgraded to 2.6.1 and now when I create a new account I can no longer add the encrypted password added... the message i see is Provider useradd does not support features manages_passwords; not managing attribute password I presume I need to add something to tell the primitive 'use

Re: [Puppet Users] call define and keep getting Duplicate definition

2010-09-14 Thread Luc Suryo
well I upgraded to 2.6.1 and it works.. changed nothing!! But thanks for the help and your time Nan!! -- -ls -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscr

Re: [Puppet Users] call define and keep getting Duplicate definition

2010-09-13 Thread Luc Suryo
e" ], "debian" => Package[ "nagios-nrpe-server" ], "ubuntu" => Package[ "nagios-nrpe-server" ], }, } } import "client.pp" import "server.pp" === the client.pp is what I

Re: [Puppet Users] call define and keep getting Duplicate definition

2010-09-13 Thread Luc Suryo
strel] is already defined in file /var/lib/puppet/fly/modules/fly-nagios/manifests/client.pp at line 40; cannot redefine at /var/lib/puppet/fly/modules/fly-nagios/manifests/client.pp:40 on node puppet thanks for any pointer/help On Mon, Sep 13, 2010 at 6:47 PM, Nan Liu wrote: > On

[Puppet Users] call define and keep getting Duplicate definition

2010-09-13 Thread Luc Suryo
Hello I been Google-ing and read docs for couple hours and can not see what I do wrong... can someone help? in my nodes i have include our-nagios::client the the our-nagios::client looks like this class our-nagiios::client { case $operatingsystem { "centos" : { $nagios_pl