[Puppet Users] rabbitmq puppet module

2011-06-14 Thread Dan Bode
Hi all, I have been working on a puppet module for managing rabbitmq. It should be ready enough for people to try out. I just cut a 2.0.0rc1 release: https://github.com/puppetlabs/puppetlabs-rabbitmq It has two external dependencies: https://github.com/puppetlabs/puppetlabs-stdlib https://gith

Re: [Puppet Users] RHEL 6 Optional channel

2011-06-14 Thread Len Rugen
And I misspoke, we don't have satellite, just proxy. Long day. -- 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+

[Puppet Users] Re: Puppet Class execution order

2011-06-14 Thread Larry Ludwig
Sorry the typo: My examples should read: class { 'two': require => Class['one'] } class {'two: require => Exec['withinclassone'] } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google

[Puppet Users] require vs include?

2011-06-14 Thread Larry Ludwig
On a related note to my last post, what is the difference between a require and an include of a class? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/9c4l

[Puppet Users] Puppet Class execution order

2011-06-14 Thread Larry Ludwig
For the life of me I'm not sure why this isn't working properly but Puppet appears to execute classes in the order it feels like, not how I'm specifying it within the language. I've tried the newer sytax Class['one'] -> Class['two'] Yet, I see Class two get executed first. I've also tried doi

[Puppet Users] ANNOUNCE: Puppet 2.6.9rc1 is available

2011-06-14 Thread Michael Stahnke
This release is a maintenance release of the 2.6.x series of Puppet. This release is available for download at: http://puppetlabs.com/downloads/puppet/puppet-2.6.9rc1.tar.gz As an aside, I will be removing older release candidate files (from all versions) from our downloads area over the next wee

[Puppet Users] dashboard ENC and parameterized classes

2011-06-14 Thread Ashley Gould
Looking at the release notes for dashboard 1.1.1, I see that param classes are not yet supported within dashboard's external node classifier feature. A few months ago I saw a post suggesting the following work around until there is support: class foo ($var="default") { notify { $var: } } Para

Re: [Puppet Users] NGINX Puppet Module: Looking for Feedback/Use Cases

2011-06-14 Thread Eric Searcy
On Tue, Jun 7, 2011 at 9:20 AM, Jamison Fryman wrote: > My ask is this: I'm really interested in the various use cases of nginx that > are used by the community today that we can roll into this module. If I was going to use a module like this I'd probably need a fallback for directly-controlled

Re: [Puppet Users] puppet dashboard

2011-06-14 Thread Craig White
On Jun 14, 2011, at 12:00 PM, Nigel Kersten wrote: > > > On Tue, Jun 14, 2011 at 11:56 AM, Craig White wrote: > I am using Ubuntu 10.04 and ruby-enterprise (not ubuntu ruby) and installed > puppet via gem. > > How can I install puppet-dashboard if I don't see a gem available and if I > use

Re: [Puppet Users] Question about custom function.

2011-06-14 Thread Dominik Zyla
On Tue, Jun 14, 2011 at 02:59:06PM -0700, Nan Liu wrote: > On Tue, Jun 14, 2011 at 2:30 PM, Dominik Zyla wrote: > > On Tue, Jun 14, 2011 at 02:04:33PM -0700, Nan Liu wrote: > >> On Tue, Jun 14, 2011 at 1:40 PM, Dominik Zyla > >> wrote: > >> > Hello group, > >> > > >> > I'm trying to generate con

Re: [Puppet Users] RHEL 6 Optional channel

2011-06-14 Thread Len Rugen
Thanks, we are paying for "satellite" but not the more useful newer functions. My registration key worked, but systems were just attached to the base channel. I was able to update my key on RHN and that is all that is needed. On Tue, Jun 14, 2011 at 10:09 AM, Aaron Grewell wrote: > Unless you'

[Puppet Users] Re: puppet dashboard

2011-06-14 Thread George Bobeck
On Jun 14, 1:56 pm, Craig White wrote: > I am using Ubuntu 10.04 and ruby-enterprise (not ubuntu ruby) and installed > puppet via gem. > > How can I install puppet-dashboard if I don't see a gem available and if I > use the ubuntu package, i get the whole slop of ruby packages sucked in > (whic

Re: [Puppet Users] RHEL 6 Optional channel

2011-06-14 Thread Michael Stahnke
On Mon, Jun 13, 2011 at 7:31 PM, Len Rugen wrote: > It looks like all of our RHEL 6 systems now need to connect to the RHN > Optional Channel. (puppet, ruby vs. selinux deps) > > Is there a way to do that with a script without having to enter RHN userid > and password? Is there a way to add a

Re: [Puppet Users] Question about custom function.

2011-06-14 Thread Nan Liu
On Tue, Jun 14, 2011 at 2:30 PM, Dominik Zyla wrote: > On Tue, Jun 14, 2011 at 02:04:33PM -0700, Nan Liu wrote: >> On Tue, Jun 14, 2011 at 1:40 PM, Dominik Zyla wrote: >> > Hello group, >> > >> > I'm trying to generate configuration for tomcat server. I want it to >> > depend on my mod_jk propert

Re: [Puppet Users] puppet clients

2011-06-14 Thread Denmat
You've got a full stop '.' at the include ntp line. Cheers, Den On 15/06/2011, at 2:30, Craig White wrote: > > On Jun 14, 2011, at 8:33 AM, Peter Bukowinski wrote: > >> Try quoting your node names, e.g. >> >> node 'ubuntu2.ttinet' { > > trying to keep this as simple as possible just to

Re: [Puppet Users] Question about custom function.

2011-06-14 Thread Dominik Zyla
On Tue, Jun 14, 2011 at 02:04:33PM -0700, Nan Liu wrote: > On Tue, Jun 14, 2011 at 1:40 PM, Dominik Zyla wrote: > > Hello group, > > > > I'm trying to generate configuration for tomcat server. I want it to > > depend on my mod_jk properties file. I wrote some simple script which > > you can see he

Re: [Puppet Users] Managing local + LDAP users and groups

2011-06-14 Thread Denmat
Just FYI, I use a fact that checks authconfig --test for ldap enabled. Then I exclude my user base create run in puppet based on the existence if this fact. For services and apps I include their user account creation in the module managing the service. Therefore they are no effected by the ldap

Re: [Puppet Users] Question about custom function.

2011-06-14 Thread Nan Liu
On Tue, Jun 14, 2011 at 1:40 PM, Dominik Zyla wrote: > Hello group, > > I'm trying to generate configuration for tomcat server. I want it to > depend on my mod_jk properties file. I wrote some simple script which > you can see here: http://pastebin.com/CffBr0Nc it works just fine. > > So I tried t

[Puppet Users] Question about custom function.

2011-06-14 Thread Dominik Zyla
Hello group, I'm trying to generate configuration for tomcat server. I want it to depend on my mod_jk properties file. I wrote some simple script which you can see here: http://pastebin.com/CffBr0Nc it works just fine. So I tried to move it to puppet as my custom function. It's available for revi

Re: [Puppet Users] functions and environments

2011-06-14 Thread Nigel Kersten
On Tue, Jun 14, 2011 at 1:26 PM, Gabriel Filion wrote: > Hello, > > I'm trying to test out new features of a module before I deploy it and I > have difficulty with the functions declared by the module. > > I'm using an enviroment called "development" where I dropped the "new" > module and would l

[Puppet Users] functions and environments

2011-06-14 Thread Gabriel Filion
Hello, I'm trying to test out new features of a module before I deploy it and I have difficulty with the functions declared by the module. I'm using an enviroment called "development" where I dropped the "new" module and would like to test on a node with the following: puppetd --environment=deve

Re: [Puppet Users] Re: Setting defaults on scoped definitions : Each Word Needs To Be Capitalized

2011-06-14 Thread Matthias Saou
Ken Barber wrote: > Nice idea to hire document writers with clairvoyance skills :-). I'll second that! :-) Thanks for the great work : The documentation has really been improving a lot and my general feeling is that "things" are much easier to find than before. Matthias > On Tue, Jun 14, 2011

RE: [Puppet Users] Re: how to do conditional check?

2011-06-14 Thread Matthew Black
Not sure if it does, I'm going with the assumption it would not. Though there is a Dir.exists that you could use. -Original Message- From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Sans Sent: Tuesday, June 14, 2011 1:54 PM To: Puppet Users Subject:

Re: [Puppet Users] puppet dashboard

2011-06-14 Thread Nigel Kersten
On Tue, Jun 14, 2011 at 11:56 AM, Craig White wrote: > I am using Ubuntu 10.04 and ruby-enterprise (not ubuntu ruby) and installed > puppet via gem. > > How can I install puppet-dashboard if I don't see a gem available and if I > use the ubuntu package, i get the whole slop of ruby packages sucked

[Puppet Users] puppet dashboard

2011-06-14 Thread Craig White
I am using Ubuntu 10.04 and ruby-enterprise (not ubuntu ruby) and installed puppet via gem. How can I install puppet-dashboard if I don't see a gem available and if I use the ubuntu package, i get the whole slop of ruby packages sucked in (which i am trying to avoid)? # dpkg -i puppet-dashboar

Re: [Puppet Users] puppet clients

2011-06-14 Thread Craig White
Thanks - asked my company to buy it but I might just buy it myself if they aren't interested. Sounds like just the ticket for me... progress has been really slow. Craig On Jun 14, 2011, at 10:32 AM, Nathan Clemons wrote: > I will also mention that there are now a few books on Puppet. I'm curre

Re: [Puppet Users] Re: Setting defaults on scoped definitions : Each Word Needs To Be Capitalized

2011-06-14 Thread Ken Barber
Nice idea to hire document writers with clairvoyance skills :-). On Tue, Jun 14, 2011 at 6:45 PM, Nick Fagerlund wrote: > On Jun 14, 8:26 am, Matthias Saou > > wrote: >> Could the documentation section about capitalization be updated to >> include a scoped example and make it clear for >> every

Re: [Puppet Users] Managing local + LDAP users and groups

2011-06-14 Thread Jacob Helwig
On Tue, 14 Jun 2011 07:45:44 -0700, bradejr wrote: > > Our environment (mostly RHEL) uses LDAP for user and group > administration. Unfortunately, we have some cases where (broken) > software insists on local users and groups. I'm guessing it's > checking the files directly instead of using the p

[Puppet Users] Re: how to do conditional check?

2011-06-14 Thread Sans
On Jun 14, 6:12 pm, "Matthew Black" wrote: > I haven’t used torque or yaim but what you want to do in a fact is something > like this to determine installation. > > if File.exists?('/path/to/config') > Does it work for directory as well? -San -- You received this message because you are subscr

[Puppet Users] Re: Setting defaults on scoped definitions : Each Word Needs To Be Capitalized

2011-06-14 Thread Nick Fagerlund
On Jun 14, 8:26 am, Matthias Saou wrote: > Could the documentation section about capitalization be updated to > include a scoped example and make it clear for > everyone?http://docs.puppetlabs.com/guides/language_guide.html#capitalization Yes! In fact, I just did that yesterday. It's not live on

Re: [Puppet Users] puppet clients

2011-06-14 Thread Nathan Clemons
I will also mention that there are now a few books on Puppet. I'm currently reading through Pro Puppet by James Turnbull (who wrote the original Pulling Strings with Puppet book), and it's quite good. The original book was a bit light on some details, Pro Puppet really dives in and shows how all th

RE: [Puppet Users] Re: how to do conditional check?

2011-06-14 Thread Matthew Black
I haven’t used torque or yaim but what you want to do in a fact is something like this to determine installation. if File.exists?('/path/to/config') end I don’t usually install anything on a system without doing it in puppet, so I don’t typically write facts to find out if something is installed

Re: [Puppet Users] puppet clients

2011-06-14 Thread Craig White
On Jun 14, 2011, at 9:35 AM, R.I.Pienaar wrote: > The error message says: > > err: Could not parse for environment production: Syntax error at '.'; > expected '}' at /etc/puppet/manifests/nodes.pp:2 on node ubuntu2.ttinet > > and your file in question: > >> # cat nodes.pp >> node 'ubuntu.tti

[Puppet Users] Velocity and free beer

2011-06-14 Thread James Turnbull
For anyone at Velocity this week we're doing some speaking and buying some drinks: http://www.puppetlabs.com/blog/santa-clara-schedule-asynchronous-real-time-monitoring-with-mcollective-at-velocity-puppet-labs-happy-hour/ Jeff McCune is speaking about MCollective and monitoring on Wednesday at

[Puppet Users] Re: cannot manage home directories

2011-06-14 Thread vella1tj
We just need the account to have root access and be created successfully, I looked at the permissions of the assorted folders everything to the best of my knowledge had root access. I'll definitely look into it though thanks for the heads up. On Jun 13, 5:20 pm, Nigel Kersten wrote: > On Mon, Jun

Re: [Puppet Users] puppet clients

2011-06-14 Thread R.I.Pienaar
The error message says: err: Could not parse for environment production: Syntax error at '.'; expected '}' at /etc/puppet/manifests/nodes.pp:2 on node ubuntu2.ttinet and your file in question: > # cat nodes.pp > node 'ubuntu.ttinet' { > include ntp. > } So what's on line 2? a "." at t

Re: [Puppet Users] puppet clients

2011-06-14 Thread Ken Barber
Is it just my imagination, or are you putting a full stop/period/comma after the 'include ntp' lines in nodes.pp? On Tue, Jun 14, 2011 at 5:30 PM, Craig White wrote: > > On Jun 14, 2011, at 8:33 AM, Peter Bukowinski wrote: > >> Try quoting your node names, e.g. >> >> node 'ubuntu2.ttinet' { > ---

Re: [Puppet Users] puppet clients

2011-06-14 Thread Craig White
On Jun 14, 2011, at 8:33 AM, Peter Bukowinski wrote: > Try quoting your node names, e.g. > > node 'ubuntu2.ttinet' { trying to keep this as simple as possible just to get one client to work. # cat site.pp import "templates" import "nodes" # cat nodes.pp node 'ubuntu.ttinet' { includ

[Puppet Users] Re: notify defined in exported resource won't work?

2011-06-14 Thread mizuki
Never mind, after I upgraded puppet to the latest version, it's actually fixed. Thanks for the developers whoever fixed the problem!! Mizuki On Tue, Jun 14, 2011 at 11:53 AM, mizuki wrote: > Hi all, > > I noticed a "service notify" defined inside of exported resource won't > work. > > For examp

[Puppet Users] notify defined in exported resource won't work?

2011-06-14 Thread mizuki
Hi all, I noticed a "service notify" defined inside of exported resource won't work. For example, I have the following exported resource defined: define host($ip = $fqdn, $short_alias = $fqdn) { @@file { "$nagios_cfgdir/${name}_host.cfg":

[Puppet Users] Re: writing custom facts

2011-06-14 Thread Sans
Google helped me get stared and I did something like this: if n1 == (n2 * 2) # do this elsif n1 == n2 # do that end which appears to be working. Is "then" optional? cheers!! On Jun 14, 3:41 pm, Ken Barber wrote: > ruby != bash :-). You need a ruby book if you can :-). > > if n1

Re: [Puppet Users] Setting defaults on scoped definitions : Each Word Needs To Be Capitalized

2011-06-14 Thread Ken Barber
I believe that would be a good addition. You should raise a feature request with category 'Documentation' so its tracked: http://projects.puppetlabs.com/projects/puppet/issues ken. On Tue, Jun 14, 2011 at 4:26 PM, Matthias Saou wrote: > Hi, > > The documentation section gives a good example for

Re: [Puppet Users] puppet clients

2011-06-14 Thread Peter Bukowinski
Try quoting your node names, e.g. node 'ubuntu2.ttinet' { -- Peter M. Bukowinski Systems Engineer Janelia Farm Research Campus, HHMI On Tuesday, June 14, 2011 at 11:26 AM, Craig White wrote: > > On Jun 13, 2011, at 5:02 PM, Nan Liu wrote: > > > On Mon, Jun 13, 2011 at 4:19 PM, Craig White

Re: [Puppet Users] configuration history

2011-06-14 Thread Dan Bode
On Tue, Jun 14, 2011 at 7:47 AM, puppeter wrote: > Hi people, > I have a quite interesting problem here. We are using Puppet for > deploying configuration files (among others) and GIT for keeping > version history of templates. But now we got a request to keep also > history of files that are al

Re: [Puppet Users] puppet clients

2011-06-14 Thread Craig White
On Jun 13, 2011, at 5:02 PM, Nan Liu wrote: > On Mon, Jun 13, 2011 at 4:19 PM, Craig White wrote: >> >> On Jun 13, 2011, at 3:10 PM, Nan Liu wrote: >> >>> On Mon, Jun 13, 2011 at 1:57 PM, Craig White wrote: I've gone over the documentation several times now and I can't figure out h

[Puppet Users] Setting defaults on scoped definitions : Each Word Needs To Be Capitalized

2011-06-14 Thread Matthias Saou
Hi, The documentation section gives a good example for the "exec" type : http://docs.puppetlabs.com/guides/language_guide.html#resource-defaults But for scoped definitions, I had to figure out that each word needs to be capitalized, not just the first word : Mymod::mydef { 'foo': } gives Syntax

RE: [Puppet Users] Managing local + LDAP users and groups

2011-06-14 Thread Kinzel, David
>Our environment (mostly RHEL) uses LDAP for user and group >administration. Unfortunately, we have some cases where (broken) >software insists on local users and groups. I'm guessing it's >checking the files directly instead of using the proper system calls. > >Our current process is to create t

Re: [Puppet Users] array in template

2011-06-14 Thread Ken Barber
Try: <% if ["x86_64","amd64"].include?(architecture) %> ... do stuff ... <% end %> ken. On Tue, Jun 14, 2011 at 11:30 AM, romuald FREBAULT wrote: > Hi, > > I have a recipe that deploy a nrpe_local.cfg. > In my template, i want to deploy diffrent lines between 32 and 64 bits. > > We have hosts u

Re: [Puppet Users] RHEL 6 Optional channel

2011-06-14 Thread Aaron Grewell
Unless you're using RHN's system management features (and thus paying extra for the Management Entitlements) you won't be able to do this though. And since you're using Puppet that seems unlikely. I'd use either mrepo or yum-downloadonly to mirror your RHN repos to local yum repos so you can mana

[Puppet Users] Adding LDAP users to system group

2011-06-14 Thread Gareth Allen
Hi all, All our users are stored in LDAP, but I need to add users to a system group for sudo rules.  Is there a way to do this without having Puppet manage the user? For example: getent passwd gareth.allen gareth.allen:XX:1100:1100:Gareth Allen:/home/gareth.allen:/bin/bash /etc/group cont

[Puppet Users] configuration history

2011-06-14 Thread puppeter
Hi people, I have a quite interesting problem here. We are using Puppet for deploying configuration files (among others) and GIT for keeping version history of templates. But now we got a request to keep also history of files that are already interpreted and deployed. Does somebody have an idea ho

[Puppet Users] array in template

2011-06-14 Thread romuald FREBAULT
Hi, I have a recipe that deploy a nrpe_local.cfg. In my template, i want to deploy diffrent lines between 32 and 64 bits. We have hosts uder redhat and debian,. When i write <% if architecture == "i386" -%> no problem, the lines are well deployed on redhat and debian, but for the 64 bits, redhat

[Puppet Users] Managing local + LDAP users and groups

2011-06-14 Thread bradejr
Our environment (mostly RHEL) uses LDAP for user and group administration. Unfortunately, we have some cases where (broken) software insists on local users and groups. I'm guessing it's checking the files directly instead of using the proper system calls. Our current process is to create the loca

[Puppet Users] puppet CA expired

2011-06-14 Thread j...@squirk.org
hi, my puppet CA expired. Anyone knows how to solve the problem and extend the validity of the CA ? I mean without recreating one and going on each node to change the certs (that is what puppet is made to prevent, going to each node ^^) regards, Jean. -- You received this message because y

Re: [Puppet Users] Re: writing custom facts

2011-06-14 Thread Ken Barber
ruby != bash :-). You need a ruby book if you can :-). if n1 == n2 then # do something elsif n2 == n1*2 then # do something else end ken. On Tue, Jun 14, 2011 at 2:47 PM, Sans wrote: > Very useful info Ken - those are the couple of things I was actually > looking for. It'll certainly get me

[Puppet Users] Re: how to do conditional check?

2011-06-14 Thread Sans
On Jun 14, 2:48 pm, Patrick wrote: > > 1) Why not use puppet to decide if Torque should be installed in the first > place?  Then you can use that logic to decide if the file should be > created/put in place? I can't: "torque" is a vital part of the middleware, which needs to be installed and

[Puppet Users] Re: writing custom facts

2011-06-14 Thread Sans
Hi Dan, Thanks for the link. That 's probably the next thing I'd be looking for. Very useful information for the type of things I'm trying to do here. Cheers!! On Jun 14, 1:21 pm, Denmat wrote: > Is this what your after? > > http://projects.puppetlabs.com/projects/1/wiki/Dmidecode_Patterns > > C

Re: [Puppet Users] Re: how to do conditional check?

2011-06-14 Thread Patrick
On Jun 13, 2011, at 5:00 PM, Sans wrote: > Well, the file I mention is actually one of the Torque (formerly PBS > batch system) "config" file (location: /var/torque/mom_priv/config), > which is auto generated by "yaim" but the thing is: if the file is > already there "yaim" won't touch it. Let's

[Puppet Users] Re: writing custom facts

2011-06-14 Thread Sans
Very useful info Ken - those are the couple of things I was actually looking for. It'll certainly get me going. One more thing, how do I do "if..else.." thing in there? Like: if [ "$n1" == "$n2" ]; then echo "something here" elif [ "$n2" == "$(($n1*2))" ]; then echo "something else here..

Re: [Puppet Users] Re: writing custom facts

2011-06-14 Thread Ken Barber
Not pretty - but hacking up your example to work in ruby should be something like: Facter.add("num_core") do setcode do dd_code=`which dmidecode`.chomp n1=`#{dd_code} -t processor | grep -c "Socket Designation"`.chomp.to_i n2=`#{dd_code} -t processor | grep "Core Count" | uniq | awk

Re: [Puppet Users] Re: writing custom facts

2011-06-14 Thread Denmat
Is this what your after? http://projects.puppetlabs.com/projects/1/wiki/Dmidecode_Patterns Cheers, Den On 14/06/2011, at 22:03, Sans wrote: > Surely, I can do "/usr/sbin/dmidecode -t processor | grep -c "Socket > Designation" etc. - that's not a problem. My question is: How to do > the rest in

[Puppet Users] Re: writing custom facts

2011-06-14 Thread Sans
Surely, I can do "/usr/sbin/dmidecode -t processor | grep -c "Socket Designation" etc. - that's not a problem. My question is: How to do the rest in the "fact"? Anyone one care to make a sample script out of that, which will be lot easier for me to understand how this thing works. Cheers!! On Jun

Re: [Puppet Users] writing custom facts

2011-06-14 Thread Peter Bukowinski
One option is to save dd_code lines as a separate script, have puppet ensure its presence on each machine with a file statement, and then call it by explicit path in the Facter.add block. -- Peter (from phone) On Jun 14, 2011, at 7:39 AM, Sans wrote: > Dear all, > > I see that writing a cust

[Puppet Users] writing custom facts

2011-06-14 Thread Sans
Dear all, I see that writing a custom-fact with single line of command is not that tough, like this: Facter.add("num_core") do setcode do %x{/bin/grep siblings /proc/cpuinfo | uniq | cut -d" " -f 2}.chomp end end But that'

[Puppet Users] Re: how to do conditional check?

2011-06-14 Thread Sans
Thanks Matthew! I think that way it's better and simpler. But that makes me asking: How to check if Torque (or any package in question) is installed or not? Another question: How write the template file to multiply the no. of CPU-core by 1.2 (or whatever)? cheers!! On Jun 14, 4:28 am, Matthew Bla