Re: [Puppet Users] in-module data with hiera

2012-12-05 Thread Stefan Goethals
This functionality is a fantastic improvement over the, already useful, data.pp functionality of the hiera_puppet backend. For me this means i can create modules with defaults without limiting the module to the specific defaults i can think of and have them easily over-ridable without modifying the

Re: [Puppet Users] Commercial tools

2012-12-05 Thread Thomas Bendler
Hi Thomas, 2012/12/4 Thomas Eichberger > We are checking which tool might be the best one for us. I like Puppet > (together with Foreman or whatever helps), but there are commercial tools > UC4 (http://uc4.com/) which seem to offer a lot. > [...] > the scope is different, UC4 was designed for p

Re: [Puppet Users] in-module data with hiera

2012-12-05 Thread ZipKid
Hello, Maybe i should be clearer and specify that the hiera.yaml i mention in my comment is /etc/puppet/hiera.yaml and not the /data/hiera.yaml version. That last one indeed only requires a hierarchy setting for things to work. Stefan. On Tuesday, December 4, 2012 10:38:46 PM UTC+1, R.I. Pi

[Puppet Users] puppetlabs-lvm broken?

2012-12-05 Thread Dennis Hoppe
Hello, does anybody know why the puppetlabs-lvm module is not working at Debian Wheezy and Ubuntu Quantal? I am getting the following error message: root@pclient2:~# puppet agent --test Ignoring --listen on onetime run Info: Retrieving plugin Info: Caching catalog for pclient2.credativ.lan Info:

Re: [Puppet Users] Re: hiera default values for a variable

2012-12-05 Thread Vaidas Jablonskis
On Wednesday, 5 December 2012 02:10:00 UTC, Pete wrote: > > On 4 December 2012 21:17, Vaidas Jablonskis > > wrote: > >> Yes, it is that simple. > > > I gave it a go just after I sent my email and it works like a charm. > > > The other way of doing (some people prefer this way actually) is to put

Re: [Puppet Users] Puppet report aggregation

2012-12-05 Thread Ohad Levy
You could use foreman for that? filtering the hosts via search should allow you to find the exact resources you are looking for? Ohad On Tue, Dec 4, 2012 at 11:00 PM, Luke Bigum wrote: > Hi all, > > Can anyone recommend any tools for Puppet report aggregation? I'm > interested in something tha

Re: [Puppet Users] Puppet & Nagios/NRPE with Plugins...

2012-12-05 Thread Gavin Williams
Pete Cheers for that... Will have a read through the code and give it a spin :) Cheers Gavin On Wednesday, 5 December 2012 04:45:05 UTC, Pete wrote: > > Hi again, > > It seems github is a better option as they have an issue tracker. > > https://github.com/rendhalver/puppet-nrpe > > > > On 5

Re: [Puppet Users] Nested class not working

2012-12-05 Thread jcbollinger
On Tuesday, December 4, 2012 9:21:53 PM UTC-6, Gary Larizza wrote: > > It's a bit deeper than that, > > Nesting a class definition inside of a class definition will result in a > class namespaced as first_class::second_class. > That is, nesting will result *only* in a class *definition* namesp

Re: [Puppet Users] Nested class not working

2012-12-05 Thread jcbollinger
On Tuesday, December 4, 2012 9:25:04 PM UTC-6, Navid Paya wrote: > > OK, that makes sense. Thanks for the tip. Gotta go do some reading. The > thing is this very same manifest used to work under puppet 2.6. > No, I'm sure it didn't. None of the relevant characteristics of Puppet have change

Re: [Puppet Users] Commercial tools

2012-12-05 Thread Thomas Eichberger
Thank you! On Wednesday, December 5, 2012 9:51:43 AM UTC+1, thbe wrote: > > Hi Thomas, > > 2012/12/4 Thomas Eichberger > > >> We are checking which tool might be the best one for us. I like Puppet >> (together with Foreman or whatever helps), but there are commercial tools >> UC4 (http://uc4.com

[Puppet Users] Re: in-module data with hiera

2012-12-05 Thread jcbollinger
On Sunday, September 30, 2012 4:37:29 AM UTC-5, R.I. Pienaar wrote: > > > I propose extending the module layout with a data/ directory that can go > into each module and in this data directory would live a hiera config > file (optionally) and module specific data: > [...] > Here the data/hie

Re: [Puppet Users] Re: in-module data with hiera

2012-12-05 Thread R.I.Pienaar
On 5 Dec 2012, at 16:43, jcbollinger wrote: > > > On Sunday, September 30, 2012 4:37:29 AM UTC-5, R.I. Pienaar wrote: >> >> >> I propose extending the module layout with a data/ directory that can go >> into each module and in this data directory would live a hiera config >> file (optional

[Puppet Users] Error: Could not request certificate: Connection refused - connect(2)

2012-12-05 Thread Diogo Martinez
Hi all, I am new at puppet and Im using the puppet learning tutorial. I execute until Basic agent/master puppet. Everything worked ok but after 2 or 3 days, running the command "puppet agent --test", start throw the error in subject. That left me with the following questions: how to puppet age

[Puppet Users] Could not request certificate: Connection refused - connect(2)

2012-12-05 Thread Diogo Martinez
Hi all, I am new at puppet and Im using the puppet learning tutorial. I execute until Basic agent/master puppet. Everything worked ok but after 2 or 3 days, running the command "puppet agent --test", start throw the error in subject. That left me with the following questions: how to puppet age

[Puppet Users] Re: Agent error with class (puppet server)

2012-12-05 Thread Diogo Martinez
Craig is correct. Directory files doesnt need to be declared. It is resolved by puppet structure. Em terça-feira, 4 de dezembro de 2012 19h16min39s UTC-2, Kazor escreveu: > > I have declared in my puppet server my class "lab" , this class create one > archive in the agent but when i sync from ag

Re: [Puppet Users] Agent error with class (puppet server)

2012-12-05 Thread Miguel Angel Coa Morales
Thanks for the clarification. I edit the "source" in my class with the mention of Craig and now is solved. Best regards! El 05-12-2012, a las 8:07, Diogo Martinez escribió: > Craig is correct. Directory files doesnt need to be declared. It is resolved > by puppet structure. > Em terça-feir

[Puppet Users] Re: Solaris processor count facts - bug or feature?

2012-12-05 Thread Andrew Beresford
Apologies, I re-read your post and understand what you mean. I prefer the core count definition, but whatever it is, it should be consistent between Linux and Solaris. Andrew On Wednesday, 5 December 2012 04:37:19 UTC, Alex Harvey wrote: > > > > On Monday, December 3, 2012 9:54:49 PM UTC+11,

[Puppet Users] Re: Unnecessary changes when creating facts.yaml

2012-12-05 Thread Andrew Beresford
I've ended up separating the template into an external file and then doing something horrible; out=scope.to_hash.reject { |k,v| k.to_s =~ /(uptime.*|timestamp|.*free|macaddress.*|ipaddress)/ }.to_yaml.split "\n" header = out.shift header = header+"\n" sorted = out.sort sorted_string = sorted.joi

[Puppet Users] Multiple external_nodes

2012-12-05 Thread Nuno Marques
Hi all, Is it possible to use multiple ENCs? I'm using an external node for puppet-dashboard, and I want to use cobbler-ext-nodes also. Will I need to parse both classifiers outputs and merge them? Does anyone have a script hat already does this? Thanks! -- You received this message because

[Puppet Users] Slow compilation after moving to modules

2012-12-05 Thread Adam Winberg
We are working on moving our puppet code from old-school method of importing standalone classes in site.pp to modules. I was hoping i could move one class at a time and at the same time review syntax, coding, subclasses and so forth for each class. So, i defined a modulepath in puppet.conf and put

[Puppet Users] Re: Could not request certificate: Connection refused - connect(2)

2012-12-05 Thread Diogo Martinez
ops this post is duplicated. ignore it. how do i do to close? Em quarta-feira, 5 de dezembro de 2012 08h12min25s UTC-2, Diogo Martinez escreveu: > > Hi all, > I am new at puppet and Im using the puppet learning tutorial. I execute > until Basic agent/master puppet. Everything worked ok but after

[Puppet Users] Re: Error: Could not request certificate: Connection refused - connect(2)

2012-12-05 Thread Diogo Martinez
to complete, im using puppet 3 on centos 5.6 Em quarta-feira, 5 de dezembro de 2012 08h16min58s UTC-2, Diogo Martinez escreveu: > > Hi all, > I am new at puppet and Im using the puppet learning tutorial. I execute > until Basic agent/master puppet. Everything worked ok but after 2 or 3 > days,

[Puppet Users] how to use vcsrepo?¿

2012-12-05 Thread Fran Rodríguez
Hi, i spent all day trying to work the vcsrepo module, without success. Im doing my own class like this: class rta-frontend {

[Puppet Users] Re: Error: Could not request certificate: Connection refused - connect(2)

2012-12-05 Thread Fran Rodríguez
Puppetmaster has to sign the agent certificated, if you do: puppetca list Normally, you wiill see something interesting. After that, with puppetca sign, you will sign the certificate from agent. This is the normal process so you could do the test command without that error. Cheers On Wednesda

[Puppet Users] Storeconfigs parsing

2012-12-05 Thread Or Elimelech
Hello everyone, We have installed new puppetmaster on debian squeeze with storeconfigs using postgresql we've migrated all manifests/modules from our old one that used to parse everything correctly the way it is... with the new one I get "Could not retrieve catalog from remote server: wrong hea

[Puppet Users] quotes in templates/manifests using storeconfigs

2012-12-05 Thread Andrei Burd
Hi everyone! we installed Puppet master 2.7.18 from debian backports Configured it with storeconfig using Postgresql 9.1 and ENC Foreman 1.0.1 When we started migration from old puppet master with LDAP ENC we received parser errors that he could not insert to db tempate with string *; Use Syba

[Puppet Users] Slight oversight in the type documentation

2012-12-05 Thread Ellison Marks
So I was looking at the type reference, and noticed that for a lot of the types, no namevar was listed. When I checked the types in the code, for each of those omissions, the namevar was simply "name". Now, it might be self evident that this is the case, but a little documentation couldn't hurt

Re: [Puppet Users] Slight oversight in the type documentation

2012-12-05 Thread Gary Larizza
Hi Ellison, You can do `puppet decribe ` from the command line and it should tell you which attribute is the namevar for that type. Most types use 'name' for their namevar, but some (like file) do not. Hope that helps! On Wed, Dec 5, 2012 at 11:46 AM, Ellison Marks wrote: > So I was looking

Re: [Puppet Users] Re: in-module data with hiera

2012-12-05 Thread Stefan Goethals
Not having any problem with osfamily i agree with John. A default to 'common' would suffice i believe. Stefan. On Wed, Dec 5, 2012 at 3:43 PM, jcbollinger wrote: > > > On Sunday, September 30, 2012 4:37:29 AM UTC-5, R.I. Pienaar wrote: > >> >> I propose extending the module layout with a data/ d

Re: [Puppet Users] Slight oversight in the type documentation

2012-12-05 Thread Ellison Marks
Yes, And while the command line tools and looking at the code are as accurate as ever, it would be nice to find that info on the type page as well. http://docs.puppetlabs.com/references/latest/type.html On Wednesday, December 5, 2012 12:44:50 PM UTC-8, Gary Larizza wrote: > > Hi Ellison, > > Yo

Re: [Puppet Users] Slight oversight in the type documentation

2012-12-05 Thread Dan White
The info you are asking for is at the top of the Type Reference page: The namevar is the parameter used to uniquely identify a type instance. This is the parameter that gets assigned when a string is provided before the colon in a type declaration. In general, only developers will need to worry

Re: [Puppet Users] Slight oversight in the type documentation

2012-12-05 Thread Ellison Marks
I read that bit. It doesn't identify a default namevar, nor indicate that the "name" parameter is special. Again, maybe it's common sense, but having it spelled out explicitly can't be a bad thing. Also, I dispute that namevars are only important to developers (assuming by developer they mean s

Re: [Puppet Users] Slight oversight in the type documentation

2012-12-05 Thread Gary Larizza
On Wed, Dec 5, 2012 at 1:01 PM, Ellison Marks wrote: > I read that bit. It doesn't identify a default namevar, nor indicate that > the "name" parameter is special. Again, maybe it's common sense, but having > it spelled out explicitly can't be a bad thing. Also, I dispute that > namevars are only

Re: [Puppet Users] Slight oversight in the type documentation

2012-12-05 Thread Ellison Marks
Ah, point taken about using namevars. As to the documentation, it lists the namevar, but only where it differs from "name". There are a bunch of types, cron and user to name two, whose namevar is the "name" parameter, but there's no indication in the doc that this is the case. In fact, for thes

Re: [Puppet Users] Slight oversight in the type documentation

2012-12-05 Thread Gary Larizza
Gotcha, That would probably be a good ticket for our docs project in Redmine --> http://projects.puppetlabs.com/projects/puppet-docs On Wed, Dec 5, 2012 at 1:14 PM, Ellison Marks wrote: > Ah, point taken about using namevars. > > As to the documentation, it lists the namevar, but only where it

Re: [Puppet Users] Slight oversight in the type documentation

2012-12-05 Thread Dan White
Help me out here, please. I believe I understand the descriptions given by both sides. What I do not understand is "why is it a concern ?" How do you plan to use "namevar" that makes this clarification important to you ? “Sometimes I think the surest sign that intelligent life exists elsewhere in

Re: [Puppet Users] Slight oversight in the type documentation

2012-12-05 Thread Ellison Marks
Thanks for the advice. Ticket filed. As to why is this a concern, I don't know yet what I might use namevar for (not writing manifests, as I've just been told :P), but if or when that time comes, I want to be able to find out what the namevars are by looking at the documentation. On Wednesday

Re: [Puppet Users] Re: in-module data with hiera

2012-12-05 Thread jcbollinger
On Wednesday, December 5, 2012 8:47:32 AM UTC-6, R.I. Pienaar wrote: > > > On 5 Dec 2012, at 16:43, jcbollinger > > wrote: > > > Certainly the default osfamily support wouldn't be directly harmful to > users, inasmuch as they can easily ignore or override it, but I > nevertheless urge you to k

[Puppet Users] Re: Error: Could not request certificate: Connection refused - connect(2)

2012-12-05 Thread jcbollinger
On Wednesday, December 5, 2012 4:16:58 AM UTC-6, Diogo Martinez wrote: > > Hi all, > I am new at puppet and Im using the puppet learning tutorial. I execute > until Basic agent/master puppet. Everything worked ok but after 2 or 3 > days, running the command "puppet agent --test", start throw th

[Puppet Users] Re: Multiple external_nodes

2012-12-05 Thread jcbollinger
On Wednesday, December 5, 2012 9:50:32 AM UTC-6, Nuno Marques wrote: > > Hi all, > > Is it possible to use multiple ENCs? > Not directly, no. > I'm using an external node for puppet-dashboard, and I want to use > cobbler-ext-nodes also. > Will I need to parse both classifiers outputs and

[Puppet Users] Announce: Puppet Dashboard 1.2.15 available

2012-12-05 Thread Matthaus Owens
Puppet Dashboard 1.2.15 is a bugfix release of the 1.2 series of Puppet Dashboard. This release is available for download at: https://downloads.puppetlabs.com/dashboard/puppet-dashboard-1.2.15.tar.gz Debian packages are available at https://apt.puppetlabs.com RPM packages are available at https:

Re: [Puppet Users] Re: sourceselect all

2012-12-05 Thread Jakov Sosic
On 11/14/2012 08:48 PM, Bernardo Costa wrote: > Well, what I could understand from your proposition (1) is that I should > elect one of the hosts as representative of a group of hosts and make > all other hosts inherit its configuration like the example I am showing > below. > > class automount {

Re: [Puppet Users] Usage of puppet to deploy and configuration manage software patches

2012-12-05 Thread Jakov Sosic
On 11/09/2012 05:04 PM, Christian wrote: > Ihave some questions in terms of how to use puppet of configuration > management for software patches. My previous approach was it to create a > puppet module for each patch ... Like Patch1 includes (FileA, FileB, > FileC), Patch2 includes (FileD, FileE)..

Re: [Puppet Users] Re: in-module data with hiera

2012-12-05 Thread Jakov Sosic
On 12/05/2012 09:45 PM, Stefan Goethals wrote: > Not having any problem with osfamily i agree with John. > A default to 'common' would suffice i believe. Agree, common is more than enough as default. -- You received this message because you are subscribed to the Google Groups "Puppet Users" gr

Re: [Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-05 Thread Jakov Sosic
On 12/04/2012 09:48 PM, iamauser wrote: > link_files { '$mynamevar' : When you pass the argument within the single quotes, variables are not parsed AFAIK. Maybe that's your issue. Remove the quotes? -- You received this message because you are subscribed to the Google Groups "Puppet Users" gro

Re: [Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-05 Thread iamauser
Thanks, but I have tried that already, it doesn't help. -Tapas On Wednesday, December 5, 2012 5:21:46 PM UTC-6, Jakov Sosic wrote: > > On 12/04/2012 09:48 PM, iamauser wrote: > > > link_files { '$mynamevar' : > > When you pass the argument within the single quotes, variables are not > parsed A

Re: [Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-05 Thread Jakov Sosic
On 12/06/2012 12:24 AM, iamauser wrote: > Thanks, but I have tried that already, it doesn't help. > You have another syntax problem that escaped me first time I reviewed your code... This is the problem: link_files { '$mynamevar' : $linkcase => "var", } You should remove quotes around array

Re: [Puppet Users] Technical Reviewers Needed

2012-12-05 Thread Jakov Sosic
On 11/26/2012 01:32 PM, joan...@packtpub.com wrote: > I am searching for a number of technical reviewers for a Puppet > Beginner's Guide that is currently in production. You need to have > good technical knowledge, and be able to spare a few hours every > couple of weeks to review the chapters. Ple

Re: [Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-05 Thread iamauser
On Wednesday, December 5, 2012 5:50:30 PM UTC-6, Jakov Sosic wrote: > > On 12/06/2012 12:24 AM, iamauser wrote: > > Thanks, but I have tried that already, it doesn't help. > > > > You have another syntax problem that escaped me first time I reviewed > your code... > > This is the problem: >

Re: [Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-05 Thread Jakov Sosic
On 12/06/2012 12:58 AM, iamauser wrote: > First of all, I didn't copy paste my code, rather typed it here, so > indentation should be ignored. > You are right, dollar sign shouldn't be there, and I think it was a typo > on my part that I failed to notice. I disagree with your comment about > singl

Re: [Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-05 Thread iamauser
No worries. Your comment helped me to notice the dollar sign in front of the linkcase. That actually solved the issue. Now it works and yes, I have added a default case as well :) Thanks On Wednesday, December 5, 2012 6:16:55 PM UTC-6, Jakov Sosic wrote: > > On 12/06/2012 12:58 AM, iamauser wr

Re: [Puppet Users] Slight oversight in the type documentation

2012-12-05 Thread Dan White
That is as good a reason as any I can think of: advance planning. Thanks for sharing. On Dec 5, 2012, at 4:38 PM, Ellison Marks wrote: > As to why is this a concern, I don't know yet what I might use namevar for > (not writing manifests, as I've just been told :P), but if or when that time > co

Re: [Puppet Users] Unable to configure Puppet-dashboard using opensource package

2012-12-05 Thread Juan Sierra Pons
2012/11/28 Bill : > Hi > > I'm trying to configure Puppet-dashboard after installing Puppet from the > open source package. But there was no issues when using the Enterprise > package. > Do you have any solutions for the below error? I'm trying to configure > Puppet-dashboard. > > # rake RAILS_ENV=

Re: [Puppet Users] Re: hiera default values for a variable

2012-12-05 Thread Peter Brown
On 5 December 2012 21:10, Vaidas Jablonskis wrote: > > > On Wednesday, 5 December 2012 02:10:00 UTC, Pete wrote: > >> On 4 December 2012 21:17, Vaidas Jablonskis wrote: >> >>> Yes, it is that simple. >> >> >> I gave it a go just after I sent my email and it works like a charm. >> >> >> The other

Re: [Puppet Users] Puppet & Nagios/NRPE with Plugins...

2012-12-05 Thread Peter Brown
Cool. Let me know how it goes. I am making a start at splitting out my code for nagios into a module by itself and setting up one for icinga as well. Will likely post to the list when it's ready for consumption. Pete. On 5 December 2012 23:17, Gavin Williams wrote: > Pete > > Cheers for th

Re: [Puppet Users] compiling ruby on HP-UX / PA-RISC

2012-12-05 Thread Alex Harvey
It turns out static linking didn't work either but for the benefit of people reading this in the archives I found a workaround - There is some documentation of HP-UX PA-RISC compiler here http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=4727276391695110Vg

Re: [Puppet Users] Re: hiera default values for a variable

2012-12-05 Thread Chad Huneycutt
On Wed, Dec 5, 2012 at 9:29 PM, Peter Brown wrote: > On 5 December 2012 21:10, Vaidas Jablonskis wrote: >> On Wednesday, 5 December 2012 02:10:00 UTC, Pete wrote: >>> On 4 December 2012 21:17, Vaidas Jablonskis wrote: >>> >>> One last question. >>> I use a node level variable to specify the loca

Re: [Puppet Users] Re: hiera default values for a variable

2012-12-05 Thread Peter Brown
On 6 December 2012 14:08, Chad Huneycutt wrote: > On Wed, Dec 5, 2012 at 9:29 PM, Peter Brown wrote: > > On 5 December 2012 21:10, Vaidas Jablonskis > wrote: > >> On Wednesday, 5 December 2012 02:10:00 UTC, Pete wrote: > >>> On 4 December 2012 21:17, Vaidas Jablonskis > wrote: > >>> > >>> One

[Puppet Users] daemontools service provider doesn't support "restart" parameter?

2012-12-05 Thread Amos Shapira
Hello, Using Puppet 2.7(.20), I'm trying to override the "restart" command of a service controlled by daemontools provider using: service { 'bamboo-agent': hasrestart => false, provider => 'daemontools', restart => '/bin/touch /var/run/needs-restart', ... } And ... notify => Service['bam

Re: [Puppet Users] Slow compilation after moving to modules

2012-12-05 Thread Adam Winberg
i was a bit rushed when writing this so i forgot a couple of things: OS: RHEL6 puppetmaster version: puppet-server-2.7.9-1.el6.rf.noarch puppet client version: puppet-2.6.17-2.el6.noarch (Upgrading client version is on the todo-list) Happy for any help/suggestions! //Adam On 5 December 2012 1

[Puppet Users] Re: Puppet Dashboard for Rails 3

2012-12-05 Thread Joshua Bussdieker
Awesome! I had that thought myself :) On Tuesday, November 20, 2012 11:10:38 AM UTC-8, Aaron Stone wrote: > > I've added Devise and OmniAuth, starting with configs for Google OAuth2 > (compatible with and can be restricted to apps-for-your-domain) on this > branch: > > https://github.com/sodabre

[Puppet Users] Any advice on how to debug Could not evaluate: Puppet::Util::Log requires a message

2012-12-05 Thread Roman Shaposhnik
Hi! all of a sudden my puppet runs started to spew out this mysterious message on the most basic of use of Package resource: err: /Stage[main]/Hadoop_gateway_node/Hadoop::Client[hadoop client]/Package[hadoop-doc]: Could not evaluate: Puppet::Util::Log requires a message Does anybody have a clue