[Puppet Users] Re: Referencing a variable in template, loaded from Ruby DSL each loop

2013-02-06 Thread Andriy Yurchuk
I've found out that it works if inside the loop I define $item_name = itemand then reference it as $item_name in the template. On Tuesday, February 5, 2013 10:04:14 PM UTC+2, Andriy Yurchuk wrote: hostclass :class do items = scope.lookupvar('items_list') items.each do |item|

Re: [Puppet Users] dashboard permission issue

2013-02-06 Thread Jo Rhett
It would help to indicate the operating system and such. If you are using linux, I'm very surprised that the user and group weren't set up right. This is clearly a right problems. Frankly I would remove and reinstall. It sounds like you are floundering, and you've probably made changes you

[Puppet Users] Re: Best way for conditional dependency?

2013-02-06 Thread Bret Wortman
A. So since that module won't be included on all machines, neither will the dependency. I get it. Thanks, Joe. On Tuesday, February 5, 2013 3:06:08 PM UTC-5, joe wrote: If freeipa-client will be on all systems, just order it the other way. In the user module, make your class before

Re: [Puppet Users] Re: Need a solution for puppet node clean (puppet v3.0.2)

2013-02-06 Thread Ken Barber
Perhaps you want to use 'puppet node deactivate' for now: http://docs.puppetlabs.com/puppetdb/1.1/maintain_and_tune.html#deactivate-decommissioned-nodes This will at least remove it from being collected immediately, but it leaves it in the database. So beyond that we are working on an automated

[Puppet Users] Defined type and cyclic dependencies :(

2013-02-06 Thread Gavin Williams
Morning all I've got an issue when trying to use a defined type which is generating a cyclic dependency error when running puppet... The defined type is: https://gist.github.com/fatmcgav/4722199#file-nfs_mount-pp There is another defined type called - act::util::linux::nfs_mount - which

Re: [Puppet Users] Re: Need a solution for puppet node clean (puppet v3.0.2)

2013-02-06 Thread llowder
On Wednesday, February 6, 2013 6:06:49 AM UTC-6, Ken Barber wrote: Perhaps you want to use 'puppet node deactivate' for now: http://docs.puppetlabs.com/puppetdb/1.1/maintain_and_tune.html#deactivate-decommissioned-nodes This will at least remove it from being collected immediately,

[Puppet Users] Re: Could not retrieve catalog from remote server: Error 400 on SERVER: No managed repo yet for this distro.

2013-02-06 Thread AJR
Removing the node from MySQL resolved the issue, wish someone could elaborate why this happens every few months? On Tuesday, February 5, 2013, Mailing Lists mailingl...@theflux.net wrote: I'm hoping someone else has experienced the error. The puppetmaster and agent are on the same system and its

Re: [Puppet Users] Re: Multiple hierarchies with Hiera

2013-02-06 Thread Schofield
:yaml: :datadir: /etc/puppet/environments/%{environment}/data So you in essence have a different hierarchy per environment. I really need a hierarchy per module instead of a site/environment hierarchy. Looks like R.I.Pienaar is working on this.

Re: [Puppet Users] Is it possible to generate a sequence in a template?

2013-02-06 Thread jcbollinger
On Tuesday, February 5, 2013 10:48:38 AM UTC-6, David Kerr wrote: On Tuesday, February 5, 2013 6:27:26 AM UTC-8, jcbollinger wrote: On Monday, February 4, 2013 11:49:24 PM UTC-6, David Kerr wrote: On Monday, February 4, 2013 9:07:49 PM UTC-8, Aaron Russo wrote: On Mon, Feb 4, 2013

[Puppet Users] Certificate nightmares

2013-02-06 Thread Bret Wortman
I think I really hosed my certificates somehow this morning trying to get PuppetDB and Puppet talking again -- here's where I stand. My Puppet master and PuppetDB are again talking, or at least, aren't complaining about communication. From my puppet master, I can run puppet agent -t, and it

Re: [Puppet Users] Re: Multiple hierarchies with Hiera

2013-02-06 Thread Chad Huneycutt
I totally cheated to achieve module-local data as well as site-local data. I copied the yaml.rb hiera backend and renamed it siteyaml.rb, then made a few modifications in the .rb file to reflect the name change. The result is that I can add an additional back-end with a second datadir. :yaml:

[Puppet Users] Puppet F5 module

2013-02-06 Thread MrTeleBird
Hi, following thishttps://puppetlabs.com/blog/managing-f5-big-ip-network-devices-with-puppet/tutorial, I finally made it till the part where I see the SSL cert request from my f5 load balancer. Then I signed it and configured in nodes.pp the same pool and irule as suggested in the tutorial.

[Puppet Users] Re: Puppet F5 module

2013-02-06 Thread MrTeleBird
Hi, well I think the problem is that there is no such method on my F5 load balancer. I verified directly on the webinterface of my BIG-IP: https://f5.puppetlabs.lan/iControl/iControlPortal.cgi?WSDL=System.SystemInfo For which F5 firmware version is this module supposed to work with?? thanks

Re: [Puppet Users] Re: Puppet F5 module

2013-02-06 Thread Christopher Wood
If you look into the F5 ruby gem installed with the F5 puppet module, it contains the wsdl files for LTM 10. I'm running LTM 11 and have this method. It sounds like you may be running LTM 9? On Wed, Feb 06, 2013 at 08:05:53AM -0800, MrTeleBird wrote: Hi, well I think the problem is that

[Puppet Users] Puppet broken in upgrade from 3.0.1 to 3.1.0

2013-02-06 Thread thinkwell
Hello everyone, Recently puppet was upgraded from 3.0.1 to 3.1.0 when I did a sudo apt-get update on my Kubuntu server. Now, I'm getting the following error http://thinkwelldesigns.com/puppet.htmlwhen running puppet. My config.ru file http://thinkwelldesigns.com/config.txtis the same as the

Re: [Puppet Users] Re: Need a solution for puppet node clean (puppet v3.0.2)

2013-02-06 Thread David Kerr
On Wednesday, February 6, 2013 5:40:41 AM UTC-8, llowder wrote: On Wednesday, February 6, 2013 6:06:49 AM UTC-6, Ken Barber wrote: Perhaps you want to use 'puppet node deactivate' for now: http://docs.puppetlabs.com/puppetdb/1.1/maintain_and_tune.html#deactivate-decommissioned-nodes

Re: [Puppet Users] Certificate nightmares

2013-02-06 Thread Brendan O'Bra
Are you sure the master is running? This: Error: Could not request certificate: Connection refused - connect(2) seems like it might not be listening. On Wed, Feb 6, 2013 at 7:44 AM, Bret Wortman b...@thewortmans.org wrote: I think I really hosed my certificates somehow this morning trying to

Re: [Puppet Users] Certificate nightmares

2013-02-06 Thread Bret Wortman
Yeah, It is running (though I had been assuming that -- thanks for prompting me to check!); puppet agent -t works when run on the master, but only there. And I can see the requests hitting in the /var/log/puppet/masterhttp.log file: [2013-02-06 12:04:55] nodename.my.net - -

Re: [Puppet Users] Is it possible to generate a sequence in a template?

2013-02-06 Thread David Kerr
So you were looking for different nodes to export fragments with different sequence numbers embedded in the content? That was SO never going to work. Every node's catalog is compiled independently of all the others'. Even collecting exported resources isn't really an exception to

Re: [Puppet Users] Certificate nightmares

2013-02-06 Thread Bret Wortman
I should add that shortly thereafter, webrick reports this: [2013-02-06 12:06:45] ERROR OpenSSL::SSL::SSLError: SSL_accept returned=1 errno=0 state=SSLv3 read client certificate A: sslv3 alert certificate revoked /usr/share/ruby/vendor_ruby/puppet/network/http/webrick.rb:32:in `accept'

Re: [Puppet Users] Re: Need a solution for puppet node clean (puppet v3.0.2)

2013-02-06 Thread Josh Cooper
Hi David, On Wed, Feb 6, 2013 at 9:01 AM, David Kerr ker...@gmail.com wrote: On Wednesday, February 6, 2013 5:40:41 AM UTC-8, llowder wrote: On Wednesday, February 6, 2013 6:06:49 AM UTC-6, Ken Barber wrote: Perhaps you want to use 'puppet node deactivate' for now:

Re: [Puppet Users] dashboard permission issue

2013-02-06 Thread Moses Mendoza
On Tue, Feb 5, 2013 at 1:15 AM, sgd.eriks...@gmail.com wrote: I'm having trouble getting puppet dashboard (1.2.21) to run on apache. i installed puppetmaster-passenger and puppet-dashboard package. It didn't create user puppet-dashboard automatically as stated in the installation guide, so

Re: [Puppet Users] Certificate nightmares

2013-02-06 Thread Wolf Noble
Did you try removing the cert from a node and seeing if that changes the behavior? you removed the certs from the master, but the node still thinks it has a valid cert maybe? This message may contain confidential or privileged information. If you are not the

Re: [Puppet Users] Certificate nightmares

2013-02-06 Thread Bret Wortman
My test node doesn't have its certs either. I've now started puppetmaster in verbose mode: # puppet master --no-daemonize --verbose : : : Info: Could not find certificate for 'nodename.my.net' Info: Could not find certificate for 'nodename.my.net' Info: Could not find certificate for

[Puppet Users] recursive file management and setgid directory modes

2013-02-06 Thread Byron Appelt
I want to recursively set the mode of files in a directory to '0750' but set the permissions of the directory itself to '2750'. I cannot figure out a way to accomplish this. Is it possible? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

Re: [Puppet Users] storeconfigs and exported resources?

2013-02-06 Thread Jakov Sosic
On 02/04/2013 02:02 PM, Ken Barber wrote: You can see without those lines in routes.yaml it still sends a replace catalog. You simply shouldn't need that part. If for some reason you do, then something isn't right, and we are probably better to drill into the 'why' now rather than later :-).

[Puppet Users] PuppetDB builtin backend performance?

2013-02-06 Thread Jakov Sosic
Hi, I'm using PuppetDB with builtin backend, haven't switched yet to postgresql, and I'm starting to see decrease in performance of my agent runs. I use PuppetDB solely because of exported resources support. How soon should I think about moving to PostgreSQL? How many clients does my master

Re: [Puppet Users] PuppetDB builtin backend performance?

2013-02-06 Thread Ken Barber
I would recommend moving it over now. There are magic numbers I could make up about when to switch etc., but if you want to get it right from the beginning switch now. The problem is HSQLDB stores everything in the RAM in the JVM, and as that gets bigger your JVM garbage collection consumes more

Re: [Puppet Users] Re: Hiera, Hashes, and Create_resources

2013-02-06 Thread Darryl Wisneski
On Mon, Aug 27, 2012 at 08:10:34AM -0700, jcbollinger wrote: # cat common.yaml --- searchdomain: 'example.com' ssh_auth: ldap servers : server-a : sshd_auth: local

[Puppet Users] Re: recursive file management and setgid directory modes

2013-02-06 Thread jcbollinger
On Wednesday, February 6, 2013 1:16:03 PM UTC-6, Byron Appelt wrote: I want to recursively set the mode of files in a directory to '0750' but set the permissions of the directory itself to '2750'. I cannot figure out a way to accomplish this. Is it possible? The File resource type does

Re: [Puppet Users] Is it possible to generate a sequence in a template?

2013-02-06 Thread jcbollinger
On Wednesday, February 6, 2013 11:10:28 AM UTC-6, David Kerr wrote: So you were looking for different nodes to export fragments with different sequence numbers embedded in the content? That was SO never going to work. Every node's catalog is compiled independently of all the others'.

Re: [Puppet Users] Is it possible to generate a sequence in a template?

2013-02-06 Thread David Kerr
On Wednesday, February 6, 2013 2:22:41 PM UTC-8, jcbollinger wrote: On Wednesday, February 6, 2013 11:10:28 AM UTC-6, David Kerr wrote: So you were looking for different nodes to export fragments with different sequence numbers embedded in the content? That was SO never going to

Re: [Puppet Users] PuppetDB builtin backend performance?

2013-02-06 Thread Jakov Sosic
On 02/06/2013 09:48 PM, Ken Barber wrote: I would recommend moving it over now. There are magic numbers I could make up about when to switch etc., but if you want to get it right from the beginning switch now. The problem is HSQLDB stores everything in the RAM in the JVM, and as that gets

Re: [Puppet Users] PuppetDB builtin backend performance?

2013-02-06 Thread Ken Barber
If you like, try the puppetdb module ... it includes support for setting up the postgresql server as well: http://forge.puppetlabs.com/puppetlabs/puppetdb We're really working hard to make it work well (and the postgresql module for that matter) and would love to hear if it works well for you.

[Puppet Users] Announce: Puppet Enterprise 2.7.1 available

2013-02-06 Thread Matthaus Owens
Dear Puppet Enterprise Users, Puppet Enterprise 2.7.1 is now available. This is a maintenance release of PE with bug fixes and security updates. All users of Puppet Enterprise 2.0 and later are strongly encouraged to upgrade when possible to Puppet Enterprise 2.7.1. Puppet Enterprise 2.7.1

[Puppet Users] Announce: Puppet Enterprise 1.2.6 available

2013-02-06 Thread Matthaus Owens
Dear Puppet Enterprise Users, Puppet Enterprise 1.2.6 is now available. This is a security release of PE. All users of Puppet Enterprise 1.0, 1.1, and 1.2 are strongly encouraged to upgrade when possible to Puppet Enterprise 1.2.6. Puppet Enterprise 1.2.6 includes previously released hotfixes to

[Puppet Users] Last Step In Initial Puppet Run

2013-02-06 Thread Brian Carpio
I need a way to put down a file, /tmp/finished, for instance as the last step in an initial puppet run. I've tried playing with the relationship syntax: * | | - File[/tmp/finished] But that doesn't work For now I am using Package | | - File[/tmp/finished] And that seems to work most of

Re: [Puppet Users] Last Step In Initial Puppet Run

2013-02-06 Thread Brian Lalor
On Feb 6, 2013, at 10:36 PM, Brian Carpio bcar...@thetek.net wrote: I need a way to put down a file, /tmp/finished, for instance as the last step in an initial puppet run. I've tried playing with the relationship syntax: * | | - File[/tmp/finished] But that doesn't work For now I

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

2013-02-06 Thread sanjiv singh
Hi All, We are observing frequently issue that Puppet agent intermittently stops without doing any thing when lot of puppet agent hitting puppet master . In our environment , we have configured puppet master over Apache-passenger and we have used LDAP as node classifier. - puppet 5.5

Re: [Puppet Users] Re: Puppet F5 module

2013-02-06 Thread MrTeleBird
Hi Christopher! thanks for your reply. I am running LTM version BIG-IP 10.0.1 Build 283.0 Fina. This is a bit strange, isn't it? I will try to uncomment those lines on the WSDLs and see if i can do what i am looking for. If yes, then I guess i should upgrade to LTM 11. Thanks for your help

Re: [Puppet Users] Re: Puppet F5 module

2013-02-06 Thread MrTeleBird
I found this information from F5-devcentral's guys: *Versioning* Contained within the Gem is the iControl Ruby Library and the WSDLshttp://en.wikipedia.org/wiki/Web_Services_Description_Languagefor the most recent iControl SDK