Re: [Puppet Users] exec and subsribe

2010-09-24 Thread Luc Suryo
I did some test indeed but it was nog clear whatever both exec were executed i have named.conf and in some case it need a reload and other cases a restart if it changes ... but all good. thanks On Fri, Sep 24, 2010 at 4:57 PM, Silviu Paragina wrote: > notify and subscribe are somewhat the sam

Re: [Puppet Users] exec and subsribe

2010-09-24 Thread Silviu Paragina
notify and subscribe are somewhat the same thing, but specified in different parts of the dependency. The file resource should notify both execs and/or services, if it doesn't it should be considered a bug and reported. ;) You should try it just to be sure, it's usually faster than waiting for

[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-dev] Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-24 Thread Nigel Kersten
On Fri, Sep 24, 2010 at 12:34 PM, Nan Liu wrote: > On Fri, Sep 24, 2010 at 11:20 AM, Nigel Kersten wrote: >> eg the proposal is that if you don't specify the protocol, server >> address, modules prefix, module name, it is assumed you are referring >> to a file path relative to the 'files' subdire

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-24 Thread Nan Liu
On Fri, Sep 24, 2010 at 11:20 AM, Nigel Kersten wrote: > eg the proposal is that if you don't specify the protocol, server > address, modules prefix, module name, it is assumed you are referring > to a file path relative to the 'files' subdirectory of the current > module. > > If you wish to fully

Re: [Puppet Users] obtaining stdout information from client configuration executions

2010-09-24 Thread Tim Lank
It looks like adding the line "logoutput => true" in the exec definition ends up sending this stdout to the centralized yaml log in the "message:" field along a separate log with the standard "executed successfully" summary. --- !ruby/object:Puppet::Transaction::Report host: puppetdclient.exampl

Re: [Puppet Users] obtaining stdout information from client configuration executions

2010-09-24 Thread Tim Lank
debugging your exec's for one. The exec may return something that is functionally correct, but not what was intended. Granted, I am brand new to puppet within the last month or so. Conceptually, I'm sure that I don't have a very good handle on the "puppet way" of doing things yet so I may not be

Re: [Puppet Users] obtaining stdout information from client configuration executions

2010-09-24 Thread Nigel Kersten
On Fri, Sep 24, 2010 at 11:29 AM, Tim Lank wrote: > It would be great to have it configurable, so that it could be off by > default for those that don't want it. > > I may be in the minority here, but having a surety of exactly what was > executed and a knowledge of the output would be a good thin

Re: [Puppet Users] obtaining stdout information from client configuration executions

2010-09-24 Thread Tim Lank
It would be great to have it configurable, so that it could be off by default for those that don't want it. I may be in the minority here, but having a surety of exactly what was executed and a knowledge of the output would be a good thing to me. Seems that the ability to turn this on would be a

[Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-24 Thread Nigel Kersten
[cross-posting as I'd like to know whether my intuition about this being the most common case is correct] class foo { file { "/etc/foo.conf": source => "puppet:///modules/foo/foo.conf", } } For me, every single one of my source specifications refers to a file inside the current module.

Re: [Puppet Users] obtaining stdout information from client configuration executions

2010-09-24 Thread Nigel Kersten
On Fri, Sep 24, 2010 at 10:08 AM, Tim Lank wrote: > Thanks.  Can you elaborate on the puppet's reports?  All I see are here: > http://docs.puppetlabs.com/references/latest/report.html > > Is there one that reports on the stdout&stderr of the tasks the client > performs? (and not in YAML) I believ

Re: [Puppet Users] Puppet performance on Ubuntu Lucid with mod_passanger

2010-09-24 Thread Jerome Tournier
On Fri, Sep 24, 2010 at 6:44 PM, Patrick wrote: > Any chance you ran out of RAM? This happened to me and the swapping killed > my performance. Webrick only runs one instance and you're now running 10 > instances which will use up much more RAM. > No, not a RAM related problem: $ free -m

Re: [Puppet Users] obtaining stdout information from client configuration executions

2010-09-24 Thread Patrick
On Sep 24, 2010, at 10:08 AM, Tim Lank wrote: > Thanks. Can you elaborate on the puppet's reports? All I see are here: > http://docs.puppetlabs.com/references/latest/report.html > > Is there one that reports on the stdout&stderr of the tasks the client > performs? (and not in YAML) I'm almo

Re: [Puppet Users] obtaining stdout information from client configuration executions

2010-09-24 Thread Tim Lank
A sample report that is sent back in yaml format to the puppetmaster in $vardir/puppet/reports/ looks like this: --- !ruby/object:Puppet::Transaction::Report host: puppetdclient.example.org logs: - !ruby/object:Puppet::Util::Log file: /etc/puppet/manifests/templates.pp level: !

Re: [Puppet Users] Re: Undefined method 'closed?' for nil:NilClass

2010-09-24 Thread Patrick
By default, puppet looks for the hostname "puppet" for the server. You can change that in puppet.conf, but it's usually better to just use DNS to always point the the right box. On Sep 24, 2010, at 10:04 AM, Kikanny wrote: > Holy crap! That fixed it! Thank you so much for your help! > > On Se

[Puppet Users] Re: Zone type fails on opensolaris nv_134

2010-09-24 Thread windowsrefund
Thanks for the lead. I remember this coming up around the same time as 3399 and have been able to avoid it entirely by simply not using ensure. That said, this feels like a different issue. On Sep 24, 1:22 pm, Bryan Horstmann-Allen wrote: > > You may be running into this too: > -- You receive

Re: [Puppet Users] Zone type fails on opensolaris nv_134

2010-09-24 Thread Bryan Horstmann-Allen
+-- | On 2010-09-24 10:06:10, windowsrefund wrote: | | I'm running 0.25.4 patched with Martin's iptype (3399) fix. The zone | type appears to be unable to create zones on Opensolaris nv_134. I'm | thinking this is related

Re: [Puppet Users] obtaining stdout information from client configuration executions

2010-09-24 Thread Tim Lank
Thanks. Can you elaborate on the puppet's reports? All I see are here: http://docs.puppetlabs.com/references/latest/report.html Is there one that reports on the stdout&stderr of the tasks the client performs? (and not in YAML) The remote syslog would take some coding to cull together in a coher

[Puppet Users] Zone type fails on opensolaris nv_134

2010-09-24 Thread windowsrefund
I'm running 0.25.4 patched with Martin's iptype (3399) fix. The zone type appears to be unable to create zones on Opensolaris nv_134. I'm thinking this is related to the fact that nv_134 dropped support for sparse zones. During my testing, I've tried to work around this by not using the inherit att

[Puppet Users] Re: Getaddrinfo: Name or service not known

2010-09-24 Thread Kikanny
Got this fixed with Patrick's help. I had to add puppet as an alias in the /etc/hosts file. For more info: http://groups.google.com/group/puppet-users/browse_thread/thread/61a66d600c16b6a6/e65f73003e5ec489#e65f73003e5ec489 On Sep 24, 11:08 am, Kikanny wrote: > Hi. I'm using puppet 2.6.1 on ubuntu

[Puppet Users] Re: Undefined method 'closed?' for nil:NilClass

2010-09-24 Thread Kikanny
Holy crap! That fixed it! Thank you so much for your help! On Sep 24, 12:55 pm, Patrick wrote: > Try putting puppet as an alias to your server in /etc/hosts (DNS is a better > long term solution, but /etc/hosts is usually easier).  The test it again.   > If that doesn't work, test it with ping t

Re: [Puppet Users] obtaining stdout information from client configuration executions

2010-09-24 Thread Patrick
On Sep 24, 2010, at 3:52 AM, Tim Lank wrote: > puppet-users: > > I'm trying to find a way to obtain the stdout (and stderr) output from > individual puppet client configuration runs. I'd like a central storage of > this information if possible. > > In short, I'd like to know what the clien

Re: [Puppet Users] Re: Undefined method 'closed?' for nil:NilClass

2010-09-24 Thread Patrick
Try putting puppet as an alias to your server in /etc/hosts (DNS is a better long term solution, but /etc/hosts is usually easier). The test it again. If that doesn't work, test it with ping to make sure "ping puppet" works. On Sep 24, 2010, at 9:45 AM, Kikanny wrote: > Yup. I get the follo

[Puppet Users] Re: Undefined method 'closed?' for nil:NilClass

2010-09-24 Thread Kikanny
Yup. I get the following when I say ping puppet ping: unknown host puppet So I haven't defined puppet as a hostname somewhere or something? On Sep 24, 12:38 pm, Patrick wrote: > On Sep 24, 2010, at 5:34 AM, Kikanny wrote: > > > Thanks guys! I upgraded puppet from 0.25.4 to 2.6.1. Now when I try

Re: [Puppet Users] Puppet performance on Ubuntu Lucid with mod_passanger

2010-09-24 Thread Patrick
On Sep 24, 2010, at 5:03 AM, jtournier wrote: > Hi, > > i'm actually using puppet+mongrel for 630 servers. Performances are > correct, but we need to reboot the puppetmaster every 3 hours because > of memory problems :-( > > I decided to migrate to a configuration puppet+apache2+passanger on a

Re: [Puppet Users] Re: Undefined method 'closed?' for nil:NilClass

2010-09-24 Thread Patrick
On Sep 24, 2010, at 5:34 AM, Kikanny wrote: > Thanks guys! I upgraded puppet from 0.25.4 to 2.6.1. Now when I try to > run puppetd on the same machine as puppemasterd, I get the following > error message: > > err: Could not retrieve catalog from remote server: getaddrinfo: Name > or service not

Re: [Puppet Users] Turning off client bucket

2010-09-24 Thread Patrick
It can be turned off in the file resource itself. That means you can do it for all files if you default that value (assuming you don't override if in a resource). Just put this in your site.pp. This code might have typos in it, but gets the point across: File { filebucket => none, }

Re: [Puppet Users] obtaining stdout information from client configuration executions

2010-09-24 Thread Darren Chamberlain
We're not using a puppetmaster, so we're collecting info on runs via syslog and puppet -v: puppet -v /path/to/manifest.pp | logger -t puppet And then we're using a splunk-alike to run ad-hon reports on the logs. * Tim Lank [2010/09/24 06:52]: > I'm trying to find a way to obtain the stdout (a

[Puppet Users] Puppet performance on Ubuntu Lucid with mod_passanger

2010-09-24 Thread jtournier
Hi, i'm actually using puppet+mongrel for 630 servers. Performances are correct, but we need to reboot the puppetmaster every 3 hours because of memory problems :-( I decided to migrate to a configuration puppet+apache2+passanger on a Ubuntu 10.04 system. During my tests, everything was working

Re: [Puppet Users] best way to include a variable in many modules ?

2010-09-24 Thread Marek Dohojda
I accomplish this with a Environment variable. First you define environments like PROD/PRE and then for each machine in an environment you simply define that one variable (which for me is gather from an app definition). Than I setup a template for each environment. -

[Puppet Users] obtaining stdout information from client configuration executions

2010-09-24 Thread Tim Lank
puppet-users: I'm trying to find a way to obtain the stdout (and stderr) output from individual puppet client configuration runs. I'd like a central storage of this information if possible. In short, I'd like to know what the client exactly did with the configuration that it was sent. Ideally

[Puppet Users] rpm dependency (samba)

2010-09-24 Thread Reen
Hi group I have the following definition: package { 'samba-system-config': ensure => absent, before => Package['samba'], } package { 'samba-config-samba': ensure => absent, before => Package['samba'], } package

[Puppet Users] Re: Undefined method 'closed?' for nil:NilClass

2010-09-24 Thread Kikanny
Thanks guys! I upgraded puppet from 0.25.4 to 2.6.1. Now when I try to run puppetd on the same machine as puppemasterd, I get the following error message: err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known err: Could not retrieve catalog; skipping run I'm n

[Puppet Users] Getaddrinfo: Name or service not known

2010-09-24 Thread Kikanny
Hi. I'm using puppet 2.6.1 on ubuntu lucid. I'm running puppetd and puppetmasterd on the same machine. When I try to run the puppet agent, I get the following error: err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known err: Could not retrieve catalog; skipping

[Puppet Users] Re: Path issue using Puppet 2.6 with Nexenta ncp 3.0.1

2010-09-24 Thread John Lyman
> Nexenta is using SMF like Solaris, not init.d like Linux. You can modify the SMF service manifest to include the path. For example: See http://www.cuddletech.com/blog/pivot/entry.php?id=182 You can also do it with svccfg: svccfg -s puppetma

Re: [Puppet Users] best way to include a variable in many modules ?

2010-09-24 Thread Daniel Maher
On 09/23/2010 09:31 PM, R.I.Pienaar wrote: I have two sites with a small number of machines at each. Each site is functionally identical. I would like to set up a bunch of templates for the various services at each site, with a handful of variables that indicate which site the service is confi

[Puppet Users] Re: RPM provider issues

2010-09-24 Thread Joseph Griffiths
devzero2000, Thanks for your comment. Unless I am misunderstanding you are suggesting the package statement is failing because the file does not exist since the push fails... the push is working without any problems. I can confirm the file exists in the required location. Any other suggestions a

[Puppet Users] Turning off client bucket

2010-09-24 Thread Marc Zampetti
How does one turn of the file bucket feature for puppetd. I simply don't want backup copies of the files. I deal with things like that in a different way. I cannot see how to turn it off. Marc -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

Re: [Puppet Users] best way to include a variable in many modules ?

2010-09-24 Thread Daniel Maher
On 09/24/2010 02:57 PM, James Cammarata wrote: That's the good thing about the way we do it - there's only one level of scope: basezone. Every variable we define in all the classes along the way is visible at that level, so we don't have to remember class names of all the stuff in the middle.

[Puppet Users] Re: service puppet status / /etc/init.d/puppet status

2010-09-24 Thread CraftyTech
Hello Chris, For me it was just the path to the pid file from puppet's init script. If I was you, I'd check the location of the lock file, and the executable as well. Otherwise, you should try Jeff's suggestion. Hope it helps. Cheers, Henry On Sep 24, 3:32 am, Christian wrote: > Hi Henr

RE: [Puppet Users] Need advice on managing large Centos environment

2010-09-24 Thread Byron Pezan
On Thu, Sep 23, 2010 at 12:34 PM, Ohad Levy mailto:ohadl...@gmail.com>> wrote: I can also recommend using frozen repos, with a testing cycle every time you update them... I a while ago I wrote a small web app[1] to collect all versions of all packages across all of your hosts, you might find it

Re: [Puppet Users] best way to include a variable in many modules ?

2010-09-24 Thread James Cammarata
> This works exactly as it appears, and is a reasonable approach, though > in my example scenario the scope is limited ; i would harbour concerns > about tracking this though many levels of scope (as you have) without > proper internal documentation. :) That's the good thing about the way we

Re: [Puppet Users] best way to include a variable in many modules ?

2010-09-24 Thread Daniel Maher
On 09/23/2010 09:06 PM, James Cammarata wrote: Here's the way we do it, and it works very well for us, while avoiding "globals" and the associated issues. First, we have a "basezone" class, which is empty and really is just a place holder (you'll see what this is for in a minute): Thanks for

[Puppet Users] Re: Need advice on managing large Centos environment

2010-09-24 Thread linuxbsdfreak
Hi, You can use stuff like cobbler with puppet. The cobbler server has all the repositories configured via its Web interface and the client nodes will have the repositories that is present on the cobbler server. You then only one system (cobbler server) that manages the repository. The client ma

Re: [Puppet Users] best way to include a variable in many modules ?

2010-09-24 Thread Daniel Maher
On 09/23/2010 08:40 PM, Mark Glossop wrote: Er, unless I'm missing something folks, the OP wasn't asking about managing /etc/resolv.conf - AFAICT /etc/resolv.conf was only used by the OP as an example. How to manage that file in a one-off case it wasn't the objective. So rehashing [paraphrasi

[Puppet Users] Re: service puppet status / /etc/init.d/puppet status

2010-09-24 Thread Christian
Hi Henry, what was exactly wrong with your PID file? It seems i have a very similar problem with the init.d puppetd stop start service. I checked the PIDFILE path and the file was written correctly there. Also a process id is written in that file. Christian On 23 Sep., 22:28, CraftyTech wrote: