Re: [Puppet Users] Re: Puppet Windows support

2011-08-10 Thread Josh Cooper
On Wed, Aug 10, 2011 at 6:02 PM, Maven User wrote: > In the simplest sense - I'd need to deploy a webapp, cycle a service > (tomcat and IIS) and apply a set of changes to a bunch of > configuration files. > > From what I can tell, the "agent" portion of puppet isn't ready for > prime time. > Ver

Re: [Puppet Users] generate function

2011-08-10 Thread Scott Smith
Sounds like a job better suited for ENC/inventory. IMO. On Wed, Aug 10, 2011 at 2:13 PM, Craig White wrote: > > On Aug 10, 2011, at 11:50 AM, Daniel Pittman wrote: > > > On Wed, Aug 10, 2011 at 18:31, Craig White > wrote: > >> > >> what I am trying to do is execute a shell script on the puppetm

Re: [Puppet Users] Does Node Inheritance work for people?

2011-08-10 Thread Scott Smith
ENC + include/require = no need for inheritance. Classify roles for your servers, assign classes and parameters to the roles. On Wed, Aug 10, 2011 at 4:33 PM, Darrell Fuhriman wrote: > [Following up a little late] > > Is anyone using node inheritance and happy with how it works? If so, can > yo

[Puppet Users] Re: Puppet Windows support

2011-08-10 Thread Maven User
In the simplest sense - I'd need to deploy a webapp, cycle a service (tomcat and IIS) and apply a set of changes to a bunch of configuration files. >From what I can tell, the "agent" portion of puppet isn't ready for prime time. Isn't the "agent" the portion of puppet that runs on every server th

Re: [Puppet Users] Does Node Inheritance work for people?

2011-08-10 Thread Darrell Fuhriman
[Following up a little late] > Is anyone using node inheritance and happy with how it works? If so, can you > describe your setup briefly? I make very limited use of node inheritance. I use node basenode { include $operatingsystem [other stuff I want absolutely everywhere] } node default i

Re: [Puppet Users] Puppet Windows support

2011-08-10 Thread Josh Cooper
Yeah, Windows users! The 2.6 release introduced preliminary support for Windows (limited to just managing files). http://www.puppetlabs.com/2dot6/ The ticket you found provides a good view of the work we have completed and are targeting for the release. http://projects.puppetlabs.com/issues

[Puppet Users] Re: Handling ENC / Class interface changes

2011-08-10 Thread Oliver Hookins
Thanks for the replies so far from all. It does seem like it is both a problem with the fact that I decided to explicitly version our application modules and provide a mechanism for tieing configuration "blueprints" in the ENC side to the version of the application module in use, but no such mechan

Re: [Puppet Users] Puppet Windows support

2011-08-10 Thread Craig White
I think if you look through the mail list for the past 6 weeks, you'll see several postings about the progress that they have made towards a Windows client. I gather that this is on the high priority agenda. Craig On Aug 10, 2011, at 12:37 PM, Maven User wrote: > Hi all - > > I'm pretty new t

Re: [Puppet Users] generate function

2011-08-10 Thread Craig White
On Aug 10, 2011, at 11:50 AM, Daniel Pittman wrote: > On Wed, Aug 10, 2011 at 18:31, Craig White wrote: >> >> what I am trying to do is execute a shell script on the puppetmaster... >> essentially add 'host' attribute to specific ldap users. That's why the >> command has parameters... >> >>

[Puppet Users] puppet-2.7.1/facter-1.6.0 still incorrectly reporting openvz hardware node as virtual machine

2011-08-10 Thread Jake
I recently installed puppet on a RHEL 6 test server to begin familiarizing myself with it. I'd originally installed puppet 2.6.8 and facter 1.5.9 and noticed the mis-identification. I found a fix here - https://github.com/saysjonathan/facter/commit/82c3ab7420bddd78bce267f11a4f301430b77578 After

Re: [Puppet Users] Re: sync custom facts to puppet client

2011-08-10 Thread Ken Barber
Yes - to sync facts to clients you need to run puppet with pluginsync enabled on the client. And like most puppet switches, as long as its in puppet.conf you won't need to include it on the command line: [agent] pluginsync = true So make sure you have that setting in your puppet.conf on all your

[Puppet Users] Re: sync custom facts to puppet client

2011-08-10 Thread Steve
running the 'puppet agent -t --pluginsync' command on client synced the custom facts and now it is working. Is this something that I need to run on every puppet agent in order to sync custom facts? Thank you On Aug 10, 12:25 pm, Ken Barber wrote: > Hi Steve, > > Did you add pluginsync = true on

[Puppet Users] Re: Strange Could not find dependency error

2011-08-10 Thread piavlo
After changing nagios-client to nagios::client and nagios-server(formely just nagios) to nagios::server All strange dependency have seem to gone away Does anyone have clear logical explanation why nagios::client & nagios::server have no dep problems but nagios-client & nagios-server does? Thanks

[Puppet Users] N "could not find class" errors before success, where N is the number of included modules

2011-08-10 Thread astrostl
Puppet 2.7.1 on all sides from Gems. Ubuntu 10.04 hosts, Ruby 1.8.7.249-2, RubyGems 1.3.5-1ubuntu2. Bug with details at http://projects.puppetlabs.com/issues/8801 . Any ideas out there? I'm stumped. -- You received this message because you are subscribed to the Google Groups "Puppet Users" g

[Puppet Users] Puppet Windows support

2011-08-10 Thread Maven User
Hi all - I'm pretty new to puppet and have started diving into the deep end - very excited to ditch crappy scripts for the manifest concept! I have a couple of questions around windows support. I followed the windows support wiki entry to the bitter end and then realized there's no agent support

[Puppet Users] Re: Strange Could not find dependency error

2011-08-10 Thread piavlo
That's strange but I had to rename nagios class to nagios-server and include it instead to fix the problem. Maybe it's related to that I have similar problem class nagios-client { include nagios::params, nagios::nrpe, nagios::plugins } class ssa::nagios-client { # include nagios-client inc

Re: [Puppet Users] sync custom facts to puppet client

2011-08-10 Thread Ken Barber
Hi Steve, Did you add pluginsync = true on the client? Is it in the [agent] or [main] section? What happens when you just do: puppet agent -t --pluginsync (obviously inserting any other switches you normally require) ken. On Wed, Aug 10, 2011 at 8:22 PM, Steve wrote: > I've tried to sync cus

Re: [Puppet Users] ANNOUNCE: Puppet Module Tool version 0.3.4

2011-08-10 Thread Ken Barber
Hi Scott, I think its fair enough thing to expect it to do something like this ... Incidentally, there is already a feature request for this: http://projects.puppetlabs.com/issues/3789 Do you want to watch/vote for it ...? Or you can always provide a patch ... we won't complain :-). ken. On W

[Puppet Users] sync custom facts to puppet client

2011-08-10 Thread Steve
I've tried to sync custom facts to puppet client 2.6.7 with no luck. Could you please give me advise? placed custom facts in /etc/puppet/modules/cutom/lib/facter directory (empty init.pp file created as well) edited puppet.conf to add following pluginsync = true modulepath = /etc/puppet/modules

Re: [Puppet Users] ANNOUNCE: Puppet Module Tool version 0.3.4

2011-08-10 Thread Scott Smith
I don't see any statement claiming that it'll automagically get put into the right place. On Tue, Aug 9, 2011 at 6:35 PM, John Warburton wrote: > > On 10 August 2011 11:24, Scott Smith wrote: > >> How will it know which directory in your modulepath to install it? >> > That's the point. You need

Re: [Puppet Users] generate function

2011-08-10 Thread Daniel Pittman
On Wed, Aug 10, 2011 at 18:31, Craig White wrote: > > On Aug 10, 2011, at 11:14 AM, Daniel Pittman wrote: > >> On Wed, Aug 10, 2011 at 17:56, Craig White wrote: >>> On Aug 10, 2011, at 9:52 AM, Daniel Pittman wrote: On Wed, Aug 10, 2011 at 16:40, Craig White wrote: > Seems I don't

Re: [Puppet Users] generate function

2011-08-10 Thread Craig White
On Aug 10, 2011, at 11:14 AM, Daniel Pittman wrote: > On Wed, Aug 10, 2011 at 17:56, Craig White wrote: >> On Aug 10, 2011, at 9:52 AM, Daniel Pittman wrote: >>> On Wed, Aug 10, 2011 at 16:40, Craig White wrote: >>> Seems I don't quite understand how it's supposed to work At the mome

Re: [Puppet Users] generate function

2011-08-10 Thread Daniel Pittman
On Wed, Aug 10, 2011 at 17:56, Craig White wrote: > On Aug 10, 2011, at 9:52 AM, Daniel Pittman wrote: >> On Wed, Aug 10, 2011 at 16:40, Craig White wrote: >> >>> Seems I don't quite understand how it's supposed to work >>> At the moment, I have it inside a 'file' resource >>> >>> content => gene

[Puppet Users] Strange Could not find dependency error

2011-08-10 Thread piavlo
Hi, I have the following: class nagios { include nagios::params file { [ "${nagios::params::nagios_confdir}", "${nagios::params::nagios_confdir}/app_alerts", "${nagios::params::nagios_confdir}/app_alerts/ssa", "${nagios::params::nagios_confdir}/app_alerts/ss

Re: [Puppet Users] generate function

2011-08-10 Thread Craig White
On Aug 10, 2011, at 9:52 AM, Daniel Pittman wrote: > On Wed, Aug 10, 2011 at 16:40, Craig White wrote: > >> Seems I don't quite understand how it's supposed to work >> At the moment, I have it inside a 'file' resource >> >> content => generate("/etc/puppet/scripts/ldap-add-host.sh $fqdn admins

Re: [Puppet Users] generate function

2011-08-10 Thread Daniel Pittman
On Wed, Aug 10, 2011 at 16:40, Craig White wrote: > Seems I don't quite understand how it's supposed to work > At the moment, I have it inside a 'file' resource > > content => generate("/etc/puppet/scripts/ldap-add-host.sh $fqdn admins_all"), generate("/etc/puppet/scripts/ldap-add-hosh.sh", $fqd

[Puppet Users] generate function

2011-08-10 Thread Craig White
Seems I don't quite understand how it's supposed to work At the moment, I have it inside a 'file' resource content => generate("/etc/puppet/scripts/ldap-add-host.sh $fqdn admins_all"), Thus I want to execute the command /etc/puppet/scripts/ldap-add-host.sh and pass parameters $1 = $fqdn $2 = ad

[Puppet Users] Sarasota meet up?

2011-08-10 Thread Todd Zullinger
Hi all, I find myself in (generally) sunny Sarasota Florida for a few weeks. Any folks in the area want to meet up for drinks and puppet chatter? -- ToddOpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~ Subtl

[Puppet Users] Re: RHEL 5.x "remount" an invalid option to NFS?

2011-08-10 Thread jcbollinger
On Aug 9, 3:18 pm, Forrie wrote: > I made an adjustment to my puppet config for three systems today, > which has the "remount" option set to true in the *.pp, and I see this > in the logs on my systems: > > Execution of '/bin/mount -o remount /home/directory' returned 32: > mount.nfs: Invalid ar

[Puppet Users] Re: Pluginsync hangs indefinitely

2011-08-10 Thread Nathaniel Cook
Thanks John that did it, your script worked great. Now that I think about it I see how using facts to generate more facts could cause these issues. Nathaniel On Aug 10, 8:16 am, jcbollinger wrote: > I do not think your problem is related to autosign, but surely that > would be easy enough to tes

Re: [Puppet Users] Re: Why?

2011-08-10 Thread vagn scott
On 08/10/2011 02:40 AM, ki_chi_saga wrote: > exec { 'a': ... } -> > exec { 'b': ... } -> > exec { 'c': ... } can I really be sure that puppet evaluates this in the sequence of writing? See the little arrows? -> That is one way to declare sequence. There are others. See th

[Puppet Users] Re: Pluginsync hangs indefinitely

2011-08-10 Thread jcbollinger
I do not think your problem is related to autosign, but surely that would be easy enough to test. More below. On Aug 9, 6:11 pm, Nathaniel Cook wrote: > I have run the code by hand and it works just fine. Here it is: > > # > require 'facter' > > def addFact(name , cmd) >        

Re: [Puppet Users] How should I run/start puppet (v.2.6.x)?

2011-08-10 Thread Ken Barber
If you want the sysv equivalent to: service puppetmaster status Its: /etc/init.d/puppetmaster status You used the agent's one which is not going to be the same service: > [root@puppet puppet]# /etc/init.d/puppet status ken. On Wed, Aug 10, 2011 at 1:52 PM, Sans wrote: > Dear all, > > Can an

[Puppet Users] Re: list of puppet-agents

2011-08-10 Thread Sans
Thanks Dan, for the link, shall try that, puppet dashboard is seems to be a nice thing; thanks for that as well. Cheers!! -- 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@googlegroups.com. To unsu

[Puppet Users] Re: restarting a specific service

2011-08-10 Thread Sans
Thanks to all for replying; going through the docs. cheers!! -- 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@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr

[Puppet Users] How should I run/start puppet (v.2.6.x)?

2011-08-10 Thread Sans
Dear all, Can any one explain this please? [root@puppet puppet]# puppet master --verbose # [root@puppet puppet]# service puppetmaster status puppetmasterd (pid 1876) is running... but the init.d script reports as it's not running: [root@puppet puppet]# /etc/init.d/puppet status puppetd is stop

Re: [Puppet Users] restarting a specific service

2011-08-10 Thread lists
Quoting Sans : Dear all, How can i restart "a" service on the agent [only] if the associated configuration file is changed. e.g. if I change the configuration in ntp.conf, I like to restart the ntpd as soon as the changes are detected and applied. Is there a way of doing that? Cheers!! check

Re: [Puppet Users] list of puppet-agents

2011-08-10 Thread Daniel Piddock
On 10/08/11 11:16, Sans wrote: > Dear all, > > Is there any why to get the list of the nodes are currently being > managed by puppet? I know that I can do that looking in the "$vardir/ > ssl/ca/signed" directory but i was wondering if puppet master itself > provides some mechanism. I'm running v2.6

Re: [Puppet Users] restarting a specific service

2011-08-10 Thread Ken Barber
You need to add a 'subscribe' or 'notify' parameter to your server or file resource (respectively). For example: http://docs.puppetlabs.com/references/stable/metaparameter.html#notify There is an example in the puppetlabs-ntp module: https://github.com/puppetlabs/puppetlabs-ntp/blob/master/manif

[Puppet Users] restarting a specific service

2011-08-10 Thread Sans
Dear all, How can i restart "a" service on the agent [only] if the associated configuration file is changed. e.g. if I change the configuration in ntp.conf, I like to restart the ntpd as soon as the changes are detected and applied. Is there a way of doing that? Cheers!! -- You received this mes

[Puppet Users] list of puppet-agents

2011-08-10 Thread Sans
Dear all, Is there any why to get the list of the nodes are currently being managed by puppet? I know that I can do that looking in the "$vardir/ ssl/ca/signed" directory but i was wondering if puppet master itself provides some mechanism. I'm running v2.6.6. Cheers!! -- You received this messag

[Puppet Users] Re: How to subclass a module?

2011-08-10 Thread Luke Bigum
On Aug 10, 12:04 am, Haitao Jiang wrote: > I put it under modules/xyz/manifests/classes/xyz_new.pp For Puppet auto-loading, the full path to that file should be: modules/xyz/manifests/xyz_new.pp and you won't need any 'import' statements. > The problem is that when I include this new class xyz