Re: [Puppet Users] Why agent report is so slow?

2012-09-17 Thread flex
Thank you, Daniel. Then how can we make puppet not generate the reports? I try to add 'report=false', but seems no effect. On Sat, Sep 15, 2012 at 2:46 AM, Daniel Pittman dan...@puppetlabs.comwrote: On Fri, Sep 14, 2012 at 3:16 AM, flex frostyn...@gmail.com wrote: Thanks, Daniel. We do have

Re: [Puppet Users] Why agent report is so slow?

2012-09-17 Thread flex
, is why you feel you need this? On Mon, Sep 17, 2012 at 12:14 AM, flex frostyn...@gmail.com wrote: Thank you, Daniel. Then how can we make puppet not generate the reports? I try to add 'report=false', but seems no effect. On Sat, Sep 15, 2012 at 2:46 AM, Daniel Pittman dan

Re: [Puppet Users] Why agent report is so slow?

2012-09-14 Thread flex
Thanks, Daniel. We do have some recursive file copies and hundreds of other resources. So we'd better decrease the resources numbers? On Fri, Sep 14, 2012 at 2:44 AM, Daniel Pittman dan...@puppetlabs.comwrote: On Thu, Sep 13, 2012 at 12:31 AM, flex frostyn...@gmail.com wrote: I use cron

[Puppet Users] Why agent report is so slow?

2012-09-13 Thread flex
Hi, all: I use cron to run puppet agent, but recently i found the script takes too long time. After using '--debug', i got this log: 2012-09-13 15:19:53.928744500 debug: Finishing transaction 69941650538440 2012-09-13 15:19:53.928988500 debug: Storing state 2012-09-13 15:19:54.930995500 debug:

Re: [Puppet Users] How to handle multiple definitions of the same package in multiple included modules?

2012-03-19 Thread flex
you can put the package resource in a single class, and include this class in app[1-3], alternatively, try virtual resources, see: http://docs.puppetlabs.com/guides/virtual_resources.html On Mon, Mar 19, 2012 at 9:15 AM, EmmEff mike...@gmail.com wrote: How to handle this scenario? Assume

[Puppet Users] require custom ruby code in custom function

2012-03-05 Thread flex
hi, all: i want to require my own ruby class in a custom function, now i put the ruby file in the same directory with custom function, and require it in the function file like this: require File.join([File.expand_path(File.dirname(__FILE__)), 'test.rb']) but i think this is too ugly, is there

Re: [Puppet Users] Skipped schedule resources in reports

2011-11-29 Thread flex
i met this problem too, and also don't know why some resource's type turned into Schedule, are there someone can give me a reason? On Tue, Sep 6, 2011 at 10:21 PM, Greg Sutcliffe greg.sutcli...@gmail.comwrote: Hi all, Since upgrading a few test machines from 2.6.7 to 2.7.3, I've noticed

Re: [Puppet Users] Skipped schedule resources in reports

2011-11-29 Thread flex
oh, i make a mistake, the schedule resources are not turned from other resources, they are created by default. my puppet is 2.7.6 On Tue, Nov 29, 2011 at 5:49 PM, flex frostyn...@gmail.com wrote: i met this problem too, and also don't know why some resource's type turned into Schedule

[Puppet Users] What is the offical variable scope best practice?

2011-11-16 Thread flex
I read the guide at http://docs.puppetlabs.com/guides/scope_and_puppet.htmland others' mail, i am a little confused now, below is my understanding: 1. top scope only refers to site.pp, not include node definitions and facts. 2. in puppet class, using variables not local, must specify the

Re: [Puppet Users] Re: What is the offical variable scope best practice?

2011-11-16 Thread flex
...@stjude.orgwrote: On Nov 16, 3:59 am, flex frostyn...@gmail.com wrote: I read the guide athttp:// docs.puppetlabs.com/guides/scope_and_puppet.htmlandothers' mail, i am a little confused now, below is my understanding: 1. top scope only refers to site.pp, not include node definitions and facts

Re: [Puppet Users] Re: What is the offical variable scope best practice?

2011-11-16 Thread flex
16, 2011 at 8:03 AM, flex frostyn...@gmail.com wrote: Very thanks for your detailed explanation :) For the last question, what doubt me is only fact variables in a template which is invoked by a define will throw the warning, if the template is invoked by a class, everything is ok. Use

[Puppet Users] puppet custom fuction run as user pupprt?

2011-07-14 Thread flex
I wrote a custom fuction to read a root read-only file, it raised an Permission Denied error. During debug, i found this fuction seems to run as user puppet, it is this a feature or a bug? -- System Administrator, Focus on System Management and Basic Development -- You received this message

[Puppet Users] puppet should return non-zero when exec failed

2011-07-10 Thread flex
When there is an error in exec resource, puppet command also returns zero. -- System Administrator, Focus on System Management and Basic Development -- 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: puppet should return non-zero when exec failed

2011-07-10 Thread flex
Oh, i found --detailed-exitcodes here: http://projects.puppetlabs.com/issues/5859 2011/7/11 flex frostyn...@gmail.com When there is an error in exec resource, puppet command also returns zero. -- System Administrator, Focus on System Management and Basic Development -- System

Re: [Puppet Users] Re: How to manage many nodes easily?

2011-06-24 Thread flex
What a good solution! Thanks a lot! 2011/6/24 Nan Liu n...@puppetlabs.com On Thu, Jun 23, 2011 at 7:43 PM, flex frostyn...@gmail.com wrote: er...that's what we use now, but define and external node cannot use together, we want to use external node to manage nodes configuration easily, so

Re: [Puppet Users] Re: How to manage many nodes easily?

2011-06-23 Thread flex
tux...@gmail.com On Jun 23, 7:44 am, Martin Alfke tux...@gmail.com wrote: On 06/23/2011 04:35 AM, flex wrote: These is another question, i have many defines which will apply an application to sepcified path, called as: application::add { app1: path = /var/app1 } by this i can

Re: [Puppet Users] How to manage many nodes easily?

2011-06-22 Thread flex
: import nodes/*/*.pp The only problem we've found with this approach is when creating new files, puppetmaster takes a while to see them. El 20/06/2011 5:25, flex escribió: We have many modules and many nodes, every node may use different module, so it's very unpleasant to modify

Re: [Puppet Users] How to manage many nodes easily?

2011-06-20 Thread flex
and The Foreman are two good tools to look at for this purpose. Ideally you want your node entries to contain only vars and classes for a switchover to ENC to work. Param classes aren't supported in either tool yet I believe. ken. On Mon, Jun 20, 2011 at 4:25 AM, flex frostyn...@gmail.com wrote

[Puppet Users] How to manage many nodes easily?

2011-06-19 Thread flex
We have many modules and many nodes, every node may use different module, so it's very unpleasant to modify the nodes.pp Then i saw the external node, but seems it only support class and we have many defines called in node.pp So here is my question: Is there another way for us to manage so many

[Puppet Users] $caller_module_name sometimes not be set

2011-03-29 Thread flex
modules/redarrow/manifests/init.pp: define redarrow::add_redarrow($redarrow_file) { notice($caller_module_name) file { /etc/redarrow.conf/$redarrow_file: content = template(${caller_module_name}/redarrow/${redarrow_file}.erb), } }

Re: [Puppet Users] can not use $caller_module_name

2011-03-08 Thread flex
in the redarrow module? Also (although this is somewhat dumb), have you tried puppet:///modules/${caller_module_name}/redarrow.conf instead? Curly braces shouldn't be necessary there, but something definitely smells, so... Regards, Felix On 02/12/2011 06:06 PM, flex wrote: This is my puppet script

[Puppet Users] can not use $caller_module_name

2011-02-12 Thread flex
; module names must be alphanumeric (plus '-'), not 'redarrow.conf' at /home/flex/puppet/modules/redarrow/manifests/add.pp:14 It seems that the variable $caller_module_name is not set, then i found another stange thing, i got what i want like this: define redarrow::add($module = $name, $type

Re: [Puppet Users] can not use $caller_module_name

2011-02-12 Thread flex
my puppet version is 2.6.2 2011/2/13 Nan Liu n...@puppetlabs.com On Sat, Feb 12, 2011 at 9:06 AM, flex frostyn...@gmail.com wrote: This is my puppet script: modules/redarrow/manifests/add.pp: define redarrow::add($type = file) { file { /etc/redarrow.conf/$name.conf: owner

Re: [Puppet Users] can not use $caller_module_name

2011-02-12 Thread flex
by the way, the $module_name is set correctly, but seems it can not be pass to a define like this: redarrow::add {test_portage: module = $module_name} 2011/2/13 flex frostyn...@gmail.com my puppet version is 2.6.2 2011/2/13 Nan Liu n...@puppetlabs.com On Sat, Feb 12, 2011 at 9:06 AM, flex