Re: [Puppet Users] Custom the puppet CA settings

2011-09-20 Thread Yushu Yao
file and the crvclient folder. Cheers, Yushu +-+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | Mailstop 50B-6222 | 1 Cyclotron Road | Berkeley CA 94720-8147 - USA +-+ On Tue

[Puppet Users] Conary support

2010-07-27 Thread Yushu Yao
Hi Users, Does anyone happen to have a conary backend of puppet? (Conary is the RPM equivalent in rPath-generated systems). rPath claim of supporting puppet back in March, but they went silent after that. Thanks a lot! -Yushu +-+ | Yushu Yao

[Puppet Users] Re: Conary support

2010-07-29 Thread Yushu Yao
Hi Experts, Replying to myself now: If I would like to create a new back-end to conary (which does the same like yum or apt). What is the best way to start? -Yushu +-+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | Mailstop

[Puppet Users] IP based node sections instead of hostname based?

2010-07-30 Thread Yushu Yao
Hi experts, Is there a way to specify in the nodes.pp sections with the ip address of the client? Currently I only saw instructions to use wildcarded hostnames. Thanks a lot -Yushu +-+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley

Re: [Puppet Users] Puppet + OpenVZ

2010-08-05 Thread Yushu Yao
Hi Matt, That look really cool. Are you planning make something similar for libvirt host node? I think libvirt and OpenVZ share the same structure. If the libvirt one is done, it can control OpenVZ and other VMMs On Aug 5, 2010, at 9:48 PM, Matthew Cluver wrote: > Hi Everyone, > > I just wan

Re: [Puppet Users] IP based node sections instead of hostname based?

2010-08-11 Thread Yushu Yao
dress nor the fqdn. Then when the client connects the master will look into its CN, and return the catalog of "MyMachine1". Thanks -Yushu On Fri, Jul 30, 2010 at 5:55 PM, Jeff McCune wrote: > On Fri, Jul 30, 2010 at 10:35 AM, Yushu Yao wrote: > > Hi experts, > >

Re: [Puppet Users] IP based node sections instead of hostname based?

2010-08-11 Thread Yushu Yao
. I want to use the same set of certs to authenticate the communication between the VMs and another APACHE server. Any comments on how to do this is greatly appreciated. -Yushu On Wed, Aug 11, 2010 at 11:02 AM, Yushu Yao wrote: > Thanks Jeff, > > Assuming we will worry about security l

Re: [Puppet Users] IP based node sections instead of hostname based?

2010-08-11 Thread Yushu Yao
d] section. > > Cheers, > Teyo > > On Wed, Aug 11, 2010 at 12:19 PM, Ohad Levy wrote: > >> Hi, >> >> You may look into how mcollective or foreman[1] handles the certificate >> signing processes. >> >> [1] http://theforeman.org >> >&

[Puppet Users] Puppet via Passenger+Apache2 on Ubuntu /certificate_revocation_list/ca 403 error

2010-08-13 Thread Yushu Yao
Hi Experts, I'm trying to run puppet via passenger _ apache2 on ubuntu 10.04 64bit and it refuse to work with an error: *err: Could not retrieve catalog from remote server: Error 403 on SERVER: Forbidden request: 192.168.2.3(192.168.2.3) access to /certificate_revocation_list/ca [find] at line 93

Re: [Puppet Users] Re: Puppet via Passenger+Apache2 on Ubuntu /certificate_revocation_list/ca 403 error

2010-08-14 Thread Yushu Yao
tu puppetmasterd[10619]: Denying access: Forbidden > > request: 192.168.2.3(192.168.2.3) access to / > > certificate_revocation_list/ca [find] at line 93 > > Aug 13 23:43:22 ubuntu puppetmasterd[10619]: Forbidden request: > > 192.168.2.3(192.168.2.3) access to /certificate_r

[Puppet Users] External CA: Could not run: Could not retrieve certificate for puppetsrv and not running on a valid certificate authority

2010-08-19 Thread Yushu Yao
Hi Experts, I'm trying to generate my own certificates (all of them, including certs for CA, server and client) for puppet to use. and I'm getting "Could not run: Could not retrieve certificate for puppetsrv and not running on a valid certificate authority" Just wondering what the problem could

Re: [Puppet Users] Accessing Facter in other languages than Ruby?

2010-10-24 Thread Yushu Yao
Any reason you can't use facter the command line? E.g. call in python commands.getstatusoutput("facter") On Oct 24, 2010, at 12:41 AM, Matthew Macdonald-Wallace wrote: > On Fri, 2010-10-22 at 08:54 -0700, Nigel Kersten wrote: >> >> >> On Fri, Oct 22, 2010 at 8:41 AM, Matt Wallace >> wrote: >

[Puppet Users] Puppet Module Repository

2010-11-10 Thread Yushu Yao
Hi Experts, I am just wondering is there anything like a "Puppet Module Repository" in production yet? For the "Puppet Module Repository" I am looking for two main features: 1. Versioning control of each individual module 2. automatic dependency resolution, one module will be able to say which mo

[Puppet Users] Same Service in Different Classes

2010-11-15 Thread Yushu Yao
Hi Experts, I define two classes, each of them has the same service defined in it, if I include both classes for a node it will fail complaining "Duplicated definition: Service[xxx]". Just wondering is there a way to work around this? Thank you ! -Yushu -- You received this message because yo

Re: [Puppet Users] Same Service in Different Classes

2010-11-15 Thread Yushu Yao
> Why do both classes need to have the same service defined? > > Simple use case: Want to define two apache based web services on the same server. (e.g. passenger + turbogears) I think module-based definitions are the key concept behind puppet (no?), so we use one module for turbogears, another m

Re: [Puppet Users] Same Service in Different Classes

2010-11-15 Thread Yushu Yao
> > Just wondering is there a way to work around this? > > Define the service in a third class and include that third class in > each of the first two. > > class a { >include c > } > class b { >include c > } > class c { >service { "foobar": } > } > > Classes can be included multiple tim

[Puppet Users] Can one definition require another definition?

2010-11-16 Thread Yushu Yao
Hi Experts, I am in a situation that need one definition to require another (to enforce execution order). E.g. define a(x,y,z) { do task 1 } define b(u,v,w) { so task 2 } To use them: Below won't make sure task 1 is executed before task 2 (or does it?): a { inst_a: x=>"x", ... } b { inst_b: u=>

Re: [Puppet Users] puppet meet-up in Vienna?

2010-11-30 Thread Yushu Yao
A non-technical and non-related question: Where are most of the puppet developers based? I.e. where is the headquarter of Puppet? -Yushu On Tue, Nov 30, 2010 at 1:52 PM, Dan Bode wrote: > Hi, > > Anyone have interest in a puppet meet-up in Vienna? I will be in the area > for the holidays and

Re: [Puppet Users] puppet meet-up in Vienna?

2010-11-30 Thread Yushu Yao
Wow, Portland is nice, but pretty far away. We should organize a meet-up of Puppet Users/Developers near Silicon Valley :-) Anyone interested? -Yushu +-+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | Mailstop 50B-6222 | 1

[Puppet Users] Custom Functions that runs on the Client?

2010-12-13 Thread Yushu Yao
Hi Experts, As far as I can see custom functions run on the server, right? Is there way to make them run on the Client? Thanks -Yushu -- 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...@googlegrou

Re: [Puppet Users] Custom Functions that runs on the Client?

2010-12-13 Thread Yushu Yao
also need to test a resource local to the client, e.g. existence of a file, a service is running, etc). Maybe I can use custom facter for this? Thank a lot -Yushu +-+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | Mailstop 50B

Re: [Puppet Users] Custom Functions that runs on the Client?

2010-12-13 Thread Yushu Yao
Thanks, Another question, when are the facts loaded? In the beginning of the puppetd run? -Yushu +-+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | Mailstop 50B-6222 | 1 Cyclotron Road | Berkeley CA 94720-8147 - USA

Re: [Puppet Users] Custom Functions that runs on the Client?

2010-12-13 Thread Yushu Yao
Another though: Can I do something like if $(return value of an Exec resource)==0 { } else {} I.e. I want to run an shell command first, and do something depend on the output of the command? Thanks -Yushu +-+ | Yushu Yao | Ph:1-510-486-4690

Re: [Puppet Users] Configure firewall with Puppet

2010-12-13 Thread Yushu Yao
Which target system is it? +-+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | Mailstop 50B-6222 | 1 Cyclotron Road | Berkeley CA 94720-8147 - USA +-+ On Mon, Dec 13, 2010 at

[Puppet Users] Generate "Compiled catalog"/yaml for a node?

2011-05-06 Thread Yushu Yao
ng for the webserver/CA part of puppet. Thank you very much! -Yushu +-----+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | Mailstop 50B-6222 | 1 Cyclotron Road | Berkeley CA 94720-

Re: [Puppet Users] Generate "Compiled catalog"/yaml for a node?

2011-05-06 Thread Yushu Yao
Thanks. > 1) You can generate the catalog using "puppet master --verbose --compile > computer.name.domain_name" > 2) Anything that uses "puppet:///whatever" won't work, unless the client > can connect to the master. > Does this mean the file templates will not work as well? Thanks. > > -- > Y

Re: [Puppet Users] Generate "Compiled catalog"/yaml for a node?

2011-05-06 Thread Yushu Yao
stay long. Thanks -Yushu +-+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | 1 Cyclotron Road | Berkeley CA 94720 - USA +-+ On Fri, May 6, 2011 at 2:48 PM, Daniel Pittman wrote

Re: [Puppet Users] Generate "Compiled catalog"/yaml for a node?

2011-05-23 Thread Yushu Yao
[main]" ... } If I do on the client: puppet apply --test --debug mytest.yaml, I get Could not parse for environment production: Syntax error at '{'; expected '}' at /root/mytest.yaml:1 on node 192.168.2.199 Am I missing anything? Thanks a lot! -Yushu +---

Re: [Puppet Users] Generate "Compiled catalog"/yaml for a node?

2011-05-23 Thread Yushu Yao
That works. Thanks a lot@ -yushu +-+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | 1 Cyclotron Road | Berkeley CA 94720 - USA +-+ On Mon, May 23, 2011 at 4:41 PM, Nan Liu

[Puppet Users] Applying Catalogs

2011-05-24 Thread Yushu Yao
Thanks -Yushu +---------+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | 1 Cyclotron Road | Berkeley CA 94720 - USA +-+ -- You received this message because you are subscribed to the Google

Re: [Puppet Users] Applying Catalogs

2011-05-24 Thread Yushu Yao
Thanks Patrick! On Tue, May 24, 2011 at 10:28 AM, Patrick wrote: > > On May 24, 2011, at 10:03 AM, Yushu Yao wrote: > > > (For dependency reason I have to apply the above 3 service sets in 3 > separate steps, and webserver need proxy, and gmond need webserver, for > examp

Re: [Puppet Users] Re: Applying Catalogs

2011-05-24 Thread Yushu Yao
Thanks John, My case is a little bit different. Because my webserver might need the IP address of the mysql node, and before mysql node is deployed and configured, it's IP address is not known. -Yushu +-+ | Yushu Yao | Ph:1-510-486

[Puppet Users] Output of "puppet master --compile"

2011-05-25 Thread Yushu Yao
to avoid this? Thanks -Yushu +---------+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | 1 Cyclotron Road | Berkeley CA 94720 - USA +-+ -- You received this message because you are subscribed to th

Re: [Puppet Users] Output of "puppet master --compile"

2011-05-26 Thread Yushu Yao
ks -Yushu +-----+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | 1 Cyclotron Road | Berkeley CA 94720 - USA +-+ On Wed, May 25, 2011 at 12:38 PM, Patrick wrote: > I think that putting "--no-verbose"

[Puppet Users] Facts with puppet master --compile

2011-05-31 Thread Yushu Yao
n the ticket above, puppet master —compile ${client_fqdn} —factsfile ${file_full_of_facts} will be great! Thanks a lot! -Yushu +-+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | 1 Cyclotron Road | Berkeley CA 94720

Re: [Puppet Users] Facts with puppet master --compile

2011-05-31 Thread Yushu Yao
*Thanks a lot Nan! I'll give it a try! And let the list know if it works. -Yushu *+-+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | 1 Cyclotron Road | Berkeley CA 94720

Re: [Puppet Users] Testing, testing . . .

2011-06-10 Thread Yushu Yao
+-+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | 1 Cyclotron Road | Berkeley CA 94720 - USA +-+ On Fri, Jun 10, 2011 at 1:12 PM, Guy Matz wrote: > Any of you folks have any good tests that you use to make sure a mod