[Puppet Users] Puppet support for Cloud Foundry

2011-08-18 Thread Haitao Jiang
Hi, It seems that Cloud Foundry becomes more and more popular and Ubuntu 11.10 now has VMC Client as standard package. Where can I find out about Puppet's support on Cloud Foundry? Thanks a lot Haitao -- You received this message because you are subscribed to the Google Groups "Puppet Users"

[Puppet Users] How to subclass a module?

2011-08-09 Thread Haitao Jiang
Hi I defined a module (xyz), which has following directories manifests/init.pp class xyz is defined in init.pp in which I defined a service xyz. Now, I want to have a another variation of xyz, say xyz_new which has a different service start script, that is class xyz_new inherits xyz { Serv

Re: [Puppet Users] Possible bug? Can't remove and then put back a file?

2011-07-12 Thread Haitao Jiang
; verifying the file on disk does. > > http://projects.puppetlabs.com/issues/8385 > > -- > Jacob Helwig > > On Tue, 12 Jul 2011 11:04:09 -0700, Haitao Jiang wrote: >> >> Jacob >> >> Thanks. I did that, the checksum is a3f7372d40abae273d2680b650ca4715. >> This is the s

Re: [Puppet Users] Possible bug? Can't remove and then put back a file?

2011-07-12 Thread Haitao Jiang
On Tue, 12 Jul 2011 08:41:24 -0700, Haitao Jiang wrote: >> >> This happens to Puppet 2.7.1 (both master and client). I have a file >> resource that I set to ensure => absent, Puppet removed it correctly >> with info line that it has a duplicate entry in the filebucket

[Puppet Users] Possible bug? Can't remove and then put back a file?

2011-07-12 Thread Haitao Jiang
This happens to Puppet 2.7.1 (both master and client). I have a file resource that I set to ensure => absent, Puppet removed it correctly with info line that it has a duplicate entry in the filebucket. I then changed the ensure => present, the agent run gave me following error: /usr/bin/puppet:19

Re: [Puppet Users] Can't switch checksum method?

2011-07-11 Thread Haitao Jiang
est.  Is that a > typo? > > > On Jul 11, 2011, at 10:03 PM, Haitao Jiang wrote: > >> I upgraded Puppet (master/client) to 2.7.1, the issue still there: >> >> Jul 11 21:59:50 vm1 puppet-agent[11641]: >> (/Stage[main]/Emb/File[/opt/jetty/contexts/emb-context.

Re: [Puppet Users] Can't switch checksum method?

2011-07-11 Thread Haitao Jiang
t.xml": ensure => present, checksum => md5lite, source => "puppet:///emb/emb-context.xml", mode => 644, owner => root, group => root, } Any help is highly appreciated! Haitao On Mon, Jul 11, 2011 at 7:41 PM, Hai

Re: [Puppet Users] Can't switch checksum method?

2011-07-11 Thread Haitao Jiang
Thanks Haitao On Mon, Jul 11, 2011 at 6:27 PM, Patrick wrote: > > On Jul 11, 2011, at 12:09 PM, Haitao Jiang wrote: > >> I have a File resource and it was default to use md5 checksum. Now, I >> want to change it to use md5lite (or mtime, same error), I got >> following e

[Puppet Users] How does checksum=>mtime work or does it really work?

2011-07-11 Thread Haitao Jiang
Does checksum => mtime really work? I have a file that was checksum by md5 and I want to change to checksum => mtime, but Puppet gave me following error, which was really confusing: -- Jul 11 15:00:55 vm1 puppet-agent[6820]: (/Stage[main]/Emb/File[/opt/jetty/contexts/em

[Puppet Users] Can't switch checksum method?

2011-07-11 Thread Haitao Jiang
I have a File resource and it was default to use md5 checksum. Now, I want to change it to use md5lite (or mtime, same error), I got following error: Any suggestion on how to get rid of this error (switch the checksum method)? info: FileBucket got a duplicate file {md5}3dc95fb231fdabbe161d8773e2

Re: [Puppet Users] Explanation of the metric section of a report

2011-07-11 Thread Haitao Jiang
Haitao On Mon, Jul 11, 2011 at 10:29 AM, Nigel Kersten wrote: > > > On Mon, Jul 11, 2011 at 10:08 AM, Haitao Jiang > wrote: >> >> Nigel >> >> Thanks for your reply. I used --evaltrace suggested by Luke and found >> that all my time spent on File resources,

Re: [Puppet Users] Explanation of the metric section of a report

2011-07-11 Thread Haitao Jiang
, 2011 at 9:28 AM, Nigel Kersten wrote: > > > On Fri, Jul 8, 2011 at 3:00 PM, Haitao Jiang wrote: >> >> I just wondering if anyone can point me to the documentation on the >> metric section of a report. I have a slow agent run which has >> following numbers: &g

[Puppet Users] Explanation of the metric section of a report

2011-07-08 Thread Haitao Jiang
I just wondering if anyone can point me to the documentation on the metric section of a report. I have a slow agent run which has following numbers: Config Retrieval10.43 seconds Exec0.00 seconds File157.11 seconds Filebucket 0.00 seconds Package 0.07 seconds Schedule

[Puppet Users] Rack issue with puppet-dashboard

2011-07-07 Thread Haitao Jiang
I was following the instructions and was having trouble running sudo apt-get install puppet-dashboard I think it tries to start up the dashboard in the end but failed - any idea how to get it going? PS: I did try to install rack manually wget http://rubyforge.org/frs/download.php/71197/rack-1.2.

[Puppet Users] What is the best practice to clean up installed components on a node?

2011-07-07 Thread Haitao Jiang
I am new to Puppet, here is a question that I hope to get some help from the group: - assume I have 2 nodes, vm1 and vm2; - assume that I defined a class of node say, sg_node, that includes components such as Apache and Postgres DB etc. - in the nodes.pp file, we have node vm1 { includ

Re: [Puppet Users] Re: How to define a hash table and loop over them in a definition?

2011-06-30 Thread Haitao Jiang
Thanks a lot for both answers! Very helpful. However, I was a little surprised that how slow Puppet was when I run your example. Was it Puppet just slow or was it just my VM is slow? I literally had to wait 1 min to get the result: Thu Jun 30 10:37:56 PDT 2011 notice: Finished catalog run in 0.02

[Puppet Users] How to define a hash table and loop over them in a definition?

2011-06-29 Thread Haitao Jiang
This may have been asked before, if so, please excuse me and point me to the right direction. What I want to do is to define a hash table with multiple key->value pairs. I would like to pass this variable to a file template and generate a result file with all the mappings listed. Based on what I r