[Puppet Users] Re: error with apply the class

2013-03-08 Thread mike
Thanks i solved with your suggestion El viernes, 8 de marzo de 2013 20:37:11 UTC-3, mike escribió: > > Hi, > I am declaring class (for test) on my puppet master but when i want apply > on my node i have the next error: > > [root@nodo1 ~]# puppet agent --test --noop > Info: Retrieving plugin >

[Puppet Users] Re: error with apply the class

2013-03-08 Thread Ellison Marks
You have two values for ensure in you package resources. For services, you need two resources each. First, package, with ensure present to install the package. Second, service, with ensure running to start the service. Also, neither of those packages has an associated service. Perhaps you meant

[Puppet Users] error with apply the class

2013-03-08 Thread mike
Hi, I am declaring class (for test) on my puppet master but when i want apply on my node i have the next error: [root@nodo1 ~]# puppet agent --test --noop Info: Retrieving plugin Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class baseConf for nodo1.

Re: [Puppet Users] Re: hiera / create_resources / define

2013-03-08 Thread Jay Christopherson
Yes, sorry about the case mixing. That was a mis-paste. Thanks for the advice, I'll start working through your suggestions. On Fri, Mar 8, 2013 at 2:49 PM, Ellison Marks wrote: > Through create_resources, Name and WorkingDir are being passed to your > defined type as parameters. Your defined t

[Puppet Users] Re: hiera / create_resources / define

2013-03-08 Thread Ellison Marks
Through create_resources, Name and WorkingDir are being passed to your defined type as parameters. Your defined type though, does not accept parameters. something like this: define app::virtualApps($Name, $WorkingDir) { should work, though you'll also have to work out case, as it seems you're

[Puppet Users] Re: Parametrized classes and scope dilemma

2013-03-08 Thread Nick Fagerlund
It's defensive coding around a long-standing unwanted behavior of Puppet. See bug http://projects.puppetlabs.com/issues/2053 More information and explanation here: http://docs.puppetlabs.com/puppet/latest/reference/lang_namespaces.html#relative-name-lookup-and-incorrect-name-resolution David's

[Puppet Users] hiera / create_resources / define

2013-03-08 Thread Jay Christopherson
I'm trying to use create_resources to create a series of files with semi-custom content based on a template. This is what I have: foo.conf.erb: Name "<%= name %>" WorkingDir "<%= working_dir %>" ... a bunch of static entries YAML: configs: config1: Name: app1 WorkingDir: /var/a

Re: [Puppet Users] Custom type and provider development

2013-03-08 Thread damian . folwell
Thanks Nan and Josh. Your help is much appreciated. Once I've finished first draft I'll upload to GitHub / Forge and ask for comments! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails f

Re: [Puppet Users] Puppet Support for Windows

2013-03-08 Thread Josh Cooper
Hi Damian, On Mon, Jan 28, 2013 at 2:01 PM, wrote: > Hi Josh, > > First of all thanks for the quick reply. > > The main priorities to make Puppet usable on Windows for us would be: > > 1> Control complete state of the DACL for grant (we don't use deny). > 2> Control inheritance on DACL (at the s

Re: [Puppet Users] Windows MSI Error "change from absent to present failed: Failed to install: Fail on INT 24."

2013-03-08 Thread Josh Cooper
On Thu, Feb 14, 2013 at 3:40 AM, jim wrote: > Hello Michael and Josh > > Thanks for your quick responses, Michael "The package { source => } > directive for MSIs *must* use backslashes." worked a charm thanks again > > would be nice in next versions, if this was all uniform > > thanks again > > J

[Puppet Users] Re: how to customize hiera lookups per node?

2013-03-08 Thread Ellison Marks
I'm not really sure you're describing multiple hierarchies. From the limited hierarchies you posted, it sort of looks like the hierarchy you're describing is like so: :hierarchy: - host/%{::fqdn}/config - app/%{::some_custom_fact_app}/config - common/config which is pretty simple (if slig

Re: [Puppet Users] how to customize hiera lookups per node?

2013-03-08 Thread Aaron Grewell
I don't know of a way to have multiple hierarchies, but if you need central control of parameters like profile you can use an ENC. At one point I even experimented with a yaml- based ENC that used my hiera data files to keep all the information in one place. On Mar 8, 2013 10:54 AM, "Chad Huneycut

Re: [Puppet Users] include statement not being "seen"

2013-03-08 Thread Matt Zagrabelny
Thanks guys for clue-ing me in. -mz On Fri, Mar 8, 2013 at 1:23 PM, llowder wrote: > > > On Friday, March 8, 2013 12:42:21 PM UTC-6, Stefan Goethals wrote: >> >> I think you might have a conflict problem between the node and class name >> as they are both the same > > > It's #1372. http://pr

Re: [Puppet Users] include statement not being "seen"

2013-03-08 Thread llowder
On Friday, March 8, 2013 12:42:21 PM UTC-6, Stefan Goethals wrote: > > I think you might have a conflict problem between the node and class name > as they are both the same > It's #1372. http://projects.puppetlabs.com/issues/1372 It's a nasty one, and a few ideas are being discussed to fix

Re: [Puppet Users] Using Puppet with Windows MSIs

2013-03-08 Thread Josh Cooper
On Tue, Mar 5, 2013 at 6:31 PM, Nathan Shirlberg wrote: > Thanks for the suggestion. I'll look into that. I have started appending > the version to the package name and with the plan to use something like > hiera as a lookup to determine what version should be on each machine. We > would have the

[Puppet Users] Re: Puppet and ClusterSSH

2013-03-08 Thread Vincent Janelle
Dalen's written https://github.com/dalen/puppet-puppetdbquery which may be of some use. On Friday, 8 March 2013 08:14:35 UTC-8, Jonathan Gazeley wrote: > > I use ClusterSSH for prodding my Puppet-managed servers occasionally. > I'd like a way of generating my .csshrc automatically so it always

Re: [Puppet Users] how to customize hiera lookups per node?

2013-03-08 Thread Chad Huneycutt
Hi James, We are in a similar situation. I think of it slightly differently, though. We are trying to use the roles/profiles pattern, and I am having trouble figuring out how to get hiera to use the profile to do the lookup. So rather than explicitly listing the values in the hierarchy, I wa

Re: [Puppet Users] include statement not being "seen"

2013-03-08 Thread Stefan Goethals
I think you might have a conflict problem between the node and class name as they are both the same Stefan - Zipkid - Goethals On Fri, Mar 8, 2013 at 6:54 PM, Matt Zagrabelny wrote: > Greetings, > > I am getting a perplexing message on a client: > > Mar 8 11:49:06 matlab puppet-agent[2028

[Puppet Users] include statement not being "seen"

2013-03-08 Thread Matt Zagrabelny
Greetings, I am getting a perplexing message on a client: Mar 8 11:49:06 matlab puppet-agent[2028]: Could not run Puppet configuration client: Could not find dependency Class[Matlab] for File[/usr/local/MATLAB/R2012a/etc/license.dat] at /etc/puppet/manifests/debian/matlab.pp:24 In my node manif

[Puppet Users] Re: Long puppet catalog run times on certain nodes after "using pson" is called

2013-03-08 Thread r.yeo
Yeah, I have played with both max workers to 30 and PassengerMaxPoolSize to 30. No change from my problem clients. So odd. Thank you for the suggestion. Rob On Tuesday, February 26, 2013 11:32:33 AM UTC-7, r.yeo wrote: > > Running the agent in debug mode on a some clients and I am seeing lo

Re: [Puppet Users] Custom type and provider development

2013-03-08 Thread Josh Cooper
On Thu, Mar 7, 2013 at 6:42 PM, Nan Liu wrote: > On Thu, Mar 7, 2013 at 1:38 PM, Nan Liu wrote: > >> On Thu, Mar 7, 2013 at 8:47 AM, wrote: >> >>> >>> Hi, >>> >>> I'm very new to Ruby, and pretty new to Puppet so apologies if this is a >>> bit Puppet custom type development 101. >>> >>> We curr

[Puppet Users] PuppetCA and saved certs

2013-03-08 Thread Mason Turner
This may be a crazy question, but do we have to keep the generated client certs on the puppetca? What would be the harm in deleting them? I ask because we have our puppetca geographically redundant, and we keep the certs synced with our old friend rsync. If we didn't even try to store the certs

[Puppet Users] Puppet and ClusterSSH

2013-03-08 Thread Jonathan Gazeley
I use ClusterSSH for prodding my Puppet-managed servers occasionally. I'd like a way of generating my .csshrc automatically so it always includes new servers. I would also like this .csshrc to include environment information, formatted like this: environment1 = node1.test.com node2.test.com no

Re: [Puppet Users] Re: Boolean in hiera... problems again

2013-03-08 Thread Richard Clark
On Thu, Mar 07, 2013 at 12:43:26PM -0800, Nick Fagerlund wrote: > > Yeah it's definitely a bug, but I think it's > http://projects.puppetlabs.com/issues/17105 -- not sure when it'll be > fixed, but I know they're working on it and consider it serious. > > If you need it to work today, you can

Re: [Puppet Users] Dynamic scoping deprecated - for defines also?

2013-03-08 Thread Felix Frank
On 08/26/2012 09:29 PM, Bostjan Skufca wrote: > ### File: module2/manifests/something.pp > class module2::something { >$param3 = 'asdf' >module1::dir::file { "someName": param1=>1 } > } > > > Defines

[Puppet Users] Relocating "confdir" on a puppet-master caused a small problem with the agent

2013-03-08 Thread Dan White
New setup, Puppet 3.1.0 and Passenger on a RHEL 5 server. I wanted to move $confdir from /etc/puppet to follow local practices about where to install stuff. Anyway, I made the necessary change in /usr/share/puppet/rack/puppetmasterd/config.ru and set confdir in the [main] part of puppet.conf

[Puppet Users] Re: Auto-generate multiple facts

2013-03-08 Thread Gavin Williams
Hmm, it seems that the new fact has broken my Network devices?! :( Getting the following when trying to run puppet against a network device: $ sudo puppet device --deviceconfig devices/act-star-nactl01.conf -v Info: starting applying configuration to act-star-nactl01 at act-star-nactl01 Info: Re

Re: [Puppet Users] Re: Puppet agent intermittently stops without doing any thing

2013-03-08 Thread Felix Frank
On 03/08/2013 05:13 AM, sanjiv singh wrote: > 1) There is 16 GB of RAM on puppet master machine. and there is no > swapping happening on puppet master. > > total used free > sharedbuffers cached > ##

Re: [Puppet Users] Re: Long puppet catalog run times on certain nodes after "using pson" is called

2013-03-08 Thread Felix Frank
Have you tried raising the worker pool yet? On 03/06/2013 06:33 PM, r.yeo wrote: > I'll wireshark this next to see if I can see anything else I can add. > > Rob -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and

Re: [Puppet Users] Re: Dynamic scoping deprecated - for defines also?

2013-03-08 Thread llowder
On Thursday, March 7, 2013 4:49:38 PM UTC-6, Bruce wrote: > > > > just do <%= @foo_name %> the vars in the define is local scope, just use >> them >> > > This worked great. I'm a little shaky on when I can use @variables. Is > there documentation you could point me at? Thanks again. > Any

Re: [Puppet Users] "Could not find class" hiccups *often* once after manifest/module changes

2013-03-08 Thread christian . le . flamm
Hey, here's a detailed error example: Debug: importing '/opt/xxx/dev/puppet/modules/xxxbase/manifests/packages/basictools.pp' in environment production Debug: Automatically imported xxxbase::packages::basictools from xxxbase/packages/basictools into production Error: Could not find class xxxbas

[Puppet Users] Re: multiple pamameter values in puppet dashboard ENC

2013-03-08 Thread vioilly
Thanks for the reply. I have been told to use puppet dashboard as an ENC as I believe the reason is it will be the easiest way for the people looking after this. I managed to get this working - in puppet dashboard, supply the params with a delimiter. ie nameservers = 10.0.0.1,10.0.0.2 Then in

[Puppet Users] Re: Auto-generate multiple facts

2013-03-08 Thread Gavin Williams
Google to the rescue again... Stumbled across this link: http://serverfault.com/questions/325591/puppet-checking-sets-of-variables This suggested using the "inline_template" function to do an erb evaluation of my variable... So changed the following line: # Get export path fact for db $

[Puppet Users] puppet dashboard:No runs found to report

2013-03-08 Thread 陈士超
the puppetmaster conf file is: [main] logdir = /var/log/puppet rundir = /var/run/puppet ssldir = $vardir/ssl reports = store, http, foreman reporturl = http://localhost:3000/reports/upload [agent] classfile = $vardir/classes.txt localconfig = $vardir/localconfig the p

Re: [Puppet Users] Auto-generate multiple facts

2013-03-08 Thread David Schmitt
On 08.03.2013 10:12, Gavin Williams wrote: Morning all I'm currently trying to work out a method to auto-generate a set of facts. These facts need to contain information about what database clones have been created using NetApp SnapManager for Oracle on a given Host... I need the fact to give t

[Puppet Users] Re: Auto-generate multiple facts

2013-03-08 Thread Gavin Williams
Ok, next challenge now I've got these facts is how to get the values out of them in my Puppet manifests :S As it's now an auto-generated name, I've got to work out a dynamic fact name, and then pull that value back... Have tried a few different code combos, however i'm not getting any luck :(

[Puppet Users] Re: multiple pamameter values in puppet dashboard ENC

2013-03-08 Thread ollies...@googlemail.com
On Friday, March 8, 2013 10:16:37 AM UTC, vioilly wrote: > > Is there a way to use send multiple parameter values using puppet > dashboard ENC? > > For example, > > nameserver = 10.0.0.1, 10.0.0.2 > > or perhaps > > nameserver = ['10.0.0.1','10.0.0.2'} > > then the template erb file can loop thr

[Puppet Users] multiple pamameter values in puppet dashboard ENC

2013-03-08 Thread vioilly
Is there a way to use send multiple parameter values using puppet dashboard ENC? For example, nameserver = 10.0.0.1, 10.0.0.2 or perhaps nameserver = ['10.0.0.1','10.0.0.2'} then the template erb file can loop through each of the nameserver values to set up mulitple nameservers in resolve.co

Re: [Puppet Users] "Could not find class" hiccups *often* once after manifest/module changes

2013-03-08 Thread David Schmitt
On 08.03.2013 10:33, christian.le.fl...@gmail.com wrote: Hi David, thanks for your answer! I only have the 'nodes.pp' import: > egrep -R "import[ \t]" /opt/xxx/dev/puppet/ /opt/xxx/dev/puppet/manifests/site.pp:import 'nodes.pp' Must I get rid of this? You might want to run the puppe

[Puppet Users] Re: Auto-generate multiple facts

2013-03-08 Thread Gavin Williams
Ok, looks like I wasn't googling hard-enough :( Managed to find Nan Liu's Puppetlabs blog post Facter Part 3: Caching and TTL , which showed how to generate multiple facter facts on the fly :) So after a bit of coding came up with:

Re: [Puppet Users] "Could not find class" hiccups *often* once after manifest/module changes

2013-03-08 Thread christian . le . flamm
Hi David, thanks for your answer! I only have the 'nodes.pp' import: > egrep -R "import[ \t]" /opt/xxx/dev/puppet/ /opt/xxx/dev/puppet/manifests/site.pp:import 'nodes.pp' Must I get rid of this? Best Regards, Christian > > Hi, > > I've reported a similar issue recently here: > >h

[Puppet Users] Auto-generate multiple facts

2013-03-08 Thread Gavin Williams
Morning all I'm currently trying to work out a method to auto-generate a set of facts. These facts need to contain information about what database clones have been created using NetApp SnapManager for Oracle on a given Host... I need the fact to give the following information: clone_ACREPC11 =

Re: [Puppet Users] "Could not find class" hiccups *often* once after manifest/module changes

2013-03-08 Thread David Schmitt
On 08.03.2013 09:33, christian.le.fl...@gmail.com wrote: Hi, I’ve got no idea if this is a bug or some kind of misuse/misconfiguration. Hope somebody can help. Thanks! If I change a file in a module or manifest directory this /often/ results in errors, mostly of the following kinds * Cou

[Puppet Users] "Could not find class" hiccups *often* once after manifest/module changes

2013-03-08 Thread christian . le . flamm
Hi, I’ve got no idea if this is a bug or some kind of misuse/misconfiguration. Hope somebody can help. Thanks! If I change a file in a module or manifest directory this *often* results in errors, mostly of the following kinds - Could not find class for on node - Cannot f