[Puppet Users] How can I know if puppetd --no-daemonize --debug --onetime is success

2010-07-16 Thread Yushu
thing failed. I can of course grep for "err:" but I'm just wondering is there an official way of doing this? Thanks a lot! -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 Users] Re: How can I know if puppetd --no-daemonize --debug --onetime is success

2010-07-16 Thread Yushu
Thanks Patrick, But where is the post-command? Couldn't find any document in 0.25. Thanks -Yushu On Jul 16, 2:35 pm, Patrick Mohr wrote: > You could also test to see if post-command is run. > > On Jul 16, 2010, at 12:47 PM, R.I.Pienaar wrote: > > > > > - &quo

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

2010-08-13 Thread Yushu
s fine. Thanks a lot! -Yushu Aug 13 23:43:22 ubuntu puppetmasterd[10619]: Handling request: GET / production/certificate_revocation_list/ca Aug 13 23:43:22 ubuntu puppetmasterd[10619]: Could not resolve 192.168.2.3: no name for 192.168.2.3 Aug 13 23:43:22 ubuntu puppetmasterd[10619]: (access[/]

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
is when I use the certificates generated by this ca in the apache server, firefox will block it if I regenerate the certs of puppet. (I.e. a cert provided by the CA with CN=ca is already there, the new one has a different key, so return failure). Thanks. -Yushu ' On Wed, Aug 11, 2010 a

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

2010-08-13 Thread Yushu Yao
line 93* I googled around and found this problem was discussed some time ago, but there was no clear fix. Any help is appreciated. A side question is where are the logs of puppetmaster stored? They are not in /var/log/messages nor $logdir/* Thanks a lot. -Yushu *dpkg -l|grep apache* ii ap

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

2010-08-14 Thread Yushu Yao
pet/. > > > > On 14 Aug., 01:46, Yushu wrote: > > Just to add: in the puppet masterlog it shows below. What causes the > > "Could not resolve 192.168.2.3: no name for 192.168.2.3" ? > > > > I'm running inside Eucalyptus, where the domainname is

[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
be able to say which module (at which version) this module depend on. Basically, something like python easy_install or ruby gems will be the best. Thanks a lot! -Yushu -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this

[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 messa

Re: [Puppet Users] Same Service in Different Classes

2010-11-15 Thread Yushu Yao
, another module for passenger. They both need to have control over the Service["httpd"] What is the best way to implement this? -Yushu > > > > > Just wondering is there a way to work around this? > > > > Thank you ! > > > > -Yushu > > >

Re: [Puppet Users] Same Service in Different Classes

2010-11-15 Thread Yushu Yao
ar": } > } > > Classes can be included multiple times without trying to create > duplicates of the resources they contain. > What if class a and class b are in two different modules that are developed by different developer? They will not necessarily know where class c is. Than

[Puppet Users] Can one definition require another definition?

2010-11-16 Thread Yushu Yao
27;t it help if Puppet support require=>Definition["inst_a"] directly?* Or am I missing some important issues? Thanks a lot! -Yushu -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to p

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

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

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
webserver.yaml, then gmond.yaml in three steps. approach 2). I can generate compiled catalog for proxy.yaml, then proxy+webserver.yaml, then proxy+webserver+gmond.yaml. Then apply these three catalogs in three steps. Which way do you suggest? (Hope I was clear enough in the question :-)

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
-38dc85469076 in environment production in 0.02 seconds { "data": { "edges": [ ... ... When I try to apply this yaml, it returns some PSON error. I have to remove everything before the first "{" to make it work. Just wondering is there a way in puppet

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

2011-05-26 Thread Yushu Yao
Thanks Patrick, root@192:~# puppet master --no-verbose --manifest /root/tt.pp --compile vm_0009_270e41c5-4242-416d-80ad-38dc85469076 invalid option: --no-verbose Try 'puppet master --help' Also tried --logdest option, but has no effect. Than

[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
I have the same question. I will need to verify if the services are up after the puppet catalog is applied. Currently I have to use a shell script to do it. It will be great if it can be defined as puppet script and included in the module. -Yushu