Re: [Puppet Users] PuppetDB api - deactivate command

2013-03-28 Thread Alexander Grushin
Great! Thank you a lot! It works! On Wednesday, March 27, 2013 6:21:09 PM UTC+4, Ken Barber wrote: Here is a better working example as a gist, with what you should see in the puppetdb.log if it was successful: https://gist.github.com/kbarber/5254512 On Wed, Mar 27, 2013 at 2:19 PM,

Re: [Puppet Users] Re: puppet 3 hiera configs hiding somewhere

2013-03-28 Thread Keith Burdis
Yes, perhaps try: # chown -R puppet:puppet /etc/puppet /var/lib/puppet - Keith On 28 Mar 2013 05:27, Nick Fagerlund nick.fagerl...@puppetlabs.com wrote: On Wednesday, March 27, 2013 6:22:05 PM UTC-7, Philip Brown wrote: nope, nothing. I tried your suggestion of explicitly setting it.

Re: [Puppet Users] Re: puppet 3 hiera configs hiding somewhere

2013-03-28 Thread Keith Burdis
On 28 Mar 2013 01:22, Philip Brown p...@bolthole.com wrote: On Wed, Mar 27, 2013 at 2:10 PM, Nick Fagerlund nick.fagerl...@puppetlabs.com wrote: ... to keith's suggestion, of Also you can use the hiera command-line utility [1] to test - for example: # hiera --debug philcheck::value

Re: [Puppet Users] execution order not being honored with -

2013-03-28 Thread Brian Lalor
On Mar 27, 2013, at 2:32 PM, Ellison Marks gty...@gmail.com wrote: If your role class declares other classes you probably being bitten by http://projects.puppetlabs.com/issues/8040. That is, and classes declared in the role class are not confined by the dependency graph. It's something

[Puppet Users] Custom fact or function ? looking for opinion

2013-03-28 Thread Johan De Wit
Hi, I'm in the progress of writing custom facts to retrieve our network configuration for the nodes from the openldap ENC. Now, since the puppetmaster has also access to the ldap server, I'm thinking to move the custom facts to a function, so it runs on the puppetmaster only, end not on

Re: [Puppet Users] Augeas lens dependency on valid config file parsing

2013-03-28 Thread Dominic Cleal
On 22/03/13 23:22, Gonzalo Servat wrote: On Sat, Mar 23, 2013 at 9:47 AM, Gonzalo Servat gser...@gmail.com mailto:gser...@gmail.com wrote: On Fri, Mar 22, 2013 at 9:11 PM, Dominic Cleal dcl...@redhat.com mailto:dcl...@redhat.com wrote: Perhaps ideally, lenses could be

[Puppet Users] puppet 3.x selectors with hashes - syntax error

2013-03-28 Thread Maxim Ianoglo
Hello, I am facing a issue that is not present in Puppet version 2.X. At construction like: $panel_tcp_in = $control_panel ? { cpanel = {'admin_interface' = '2087', 'user_interface' = '2077,2078,2082,2083,2086,2095,2096'}, directadmin = {'admin_interface' = '', 'user_interface'

[Puppet Users] Catalog compilation, puppetdb and ssl

2013-03-28 Thread Mohit Chawla
Hello, Stuck in a weird place here. I am trying to do 'puppet master --compile foo.com', however I am not getting the catalog json. So far, I have noticed two sort of outputs: 1) The above command results in : notice: Compiled catalog for foo.com in environment production in 10.60 seconds Failed

[Puppet Users] Re: Catalog compilation, puppetdb and ssl

2013-03-28 Thread Mohit Chawla
Forgot mentioning the env details: [user@puppetmaster ~]# rpm -qa | grep puppet puppetlabs-release-6-6.noarch puppetdb-terminus-1.0.4-1.el6.noarch mcollective-puppet-agent-1.4.1-1.noarch puppet-2.7.20-1.el6.noarch hiera-puppet-1.0.0-1.el6.noarch puppet-server-2.7.20-1.el6.noarch

[Puppet Users] Re: Reference first member of array in manifest

2013-03-28 Thread Willem Bos
O man, I should have thought of that myself... Thanks. I didn't want to use '-g' as it enables large time changes but I - just know - found out that is the default on RHEL6. So I'll probably just add '-g' to /etc/sysconfig/ntpd on RHEL5 also :-) Regards, Willem. On Tuesday, March 26, 2013

Re: [Puppet Users] Re: Catalog compilation, puppetdb and ssl

2013-03-28 Thread Ken Barber
So I have some questions, as the error could mean a number of things: What version of PuppetDB are you running? And what exact version of Java is it using? Can you take a look at puppetdb.log and tell me if you see any meaningful error messages? Without trying to compile a catalog in this

Re: [Puppet Users] Re: Catalog compilation, puppetdb and ssl

2013-03-28 Thread Mohit Chawla
Hello Ken, Thanks for the response. On Thu, Mar 28, 2013 at 6:42 PM, Ken Barber k...@puppetlabs.com wrote: So I have some questions, as the error could mean a number of things: What version of PuppetDB are you running? And what exact version of Java is it using? puppetdb version is

[Puppet Users] Re: Custom fact or function ? looking for opinion

2013-03-28 Thread jcbollinger
On Thursday, March 28, 2013 5:32:06 AM UTC-5, Johan De Wit wrote: Hi, I'm in the progress of writing custom facts to retrieve our network configuration for the nodes from the openldap ENC. I'm confused. An ENC is a service for the master's use, so nodes should have nothing to do with

Re: [Puppet Users] Re: Catalog compilation, puppetdb and ssl

2013-03-28 Thread Ken Barber
I'm just trying to run up the same environment so I can try to replicate it, as yet I can't replicate it on the newer environment. What does your puppet.conf look like on the host you are trying to run puppet master --compile btw? I presume you are trying to run the command as root, is there a

[Puppet Users] custom fact lost after restarting puppetmaster

2013-03-28 Thread LTH
We have a custom package provider (cpanm) which uses a custom fact (perl_installsitebin) to determine the location of the executable it uses to install the various perl modules. It normally works wonderfully, until the puppetmaster is restarted. Then on the first run the agent will error out

Re: [Puppet Users] execution order not being honored with -

2013-03-28 Thread jcbollinger
On Thursday, March 28, 2013 5:21:51 AM UTC-5, blalor wrote: On Mar 27, 2013, at 2:32 PM, Ellison Marks gty...@gmail.com javascript: wrote: If your role class declares other classes you probably being bitten by http://projects.puppetlabs.com/issues/8040. That is, and classes declared in

[Puppet Users] Staging content from modules for temporary use by resources

2013-03-28 Thread Bruno Harbulot
Hello, I would like to find a few to use files available in a module for the execution of a particular resource, without having to stage the file explicitly onto the client and possibly having to clean it up afterwards. (This could also apply to content coming from templates.) The use-cases I

Re: [Puppet Users] Re: Custom fact or function ? looking for opinion

2013-03-28 Thread Johan De Wit
On 03/28/2013 02:20 PM, jcbollinger wrote: On Thursday, March 28, 2013 5:32:06 AM UTC-5, Johan De Wit wrote: Hi, I'm in the progress of writing custom facts to retrieve our network configuration for the nodes from the openldap ENC. I'm confused. An ENC is a service for the

Re: [Puppet Users] Staging content from modules for temporary use by resources

2013-03-28 Thread Keith Burdis
I have been using the file, exec approach for my modules but transferring big zip or tar files is a pain because they take up space, as you say, and sometimes the transfer times out when the files are really big. Today I started using Jordan Sissel's fpm [1] to build multiple rpms for each tomcat

[Puppet Users] Belgian Puppet User group kickoff meeting sat 6 April @ loaddays

2013-03-28 Thread Johan De Wit
More detail can be found here http://www.meetup.com/Belgian-Puppet-User-Group/events/109397462/ Everyone is welcome -- Johan De Wit Open Source Consultant Red Hat Certified Engineer(805008667232363) Puppet Certified Professional 2013 (PCP006)

Re: [Puppet Users] Running ENC alongside site.pp (node defn)

2013-03-28 Thread Martin Alfke
Hi, On Mar 27, 2013, at 2:32 AM, iamauser tapas.sara...@gmail.com wrote: Thanks Pete and Martin. Follow up question. Let's assume I have 3 nodes (A,B,C), and all of them have some class definitions in site.pp, and now, I just want to test my ENC based class definitions for only node-A. I

Re: [Puppet Users] PuppetDB api - deactivate command

2013-03-28 Thread Felipe Salum
Right time for this :) If I'm running this outside the localhost, do I need any specific auth permission ? Regards, Felipe On Wednesday, March 27, 2013 7:21:09 AM UTC-7, Ken Barber wrote: Here is a better working example as a gist, with what you should see in the puppetdb.log if it was

Re: [Puppet Users] PuppetDB api - deactivate command

2013-03-28 Thread Deepak Giridharagopal
On Thu, Mar 28, 2013 at 10:20 AM, Felipe Salum fsa...@gmail.com wrote: Right time for this :) If I'm running this outside the localhost, do I need any specific auth permission ? Yes, you'll need to hit PuppetDB's HTTPS port (8081 by default) and you'll have to supply a client certificate.

[Puppet Users] Re: Beta release of puppetdbquery module 1.0

2013-03-28 Thread Stephen Price
Guys, Can you expand the README to describe where this should be run from? I've been trying to use it as a Puppet Face from different hosts, including directly on the PuppetDB server, to no avail. I keep getting 'bad request' or SSL cert errors. My PuppetDB is running on localhost:8080 with

Re: [Puppet Users] Rake tests for hiera

2013-03-28 Thread Wolf Noble
What we've been doing here is trying to make all our hiera calls as class parameter default values. This allows us to set param values in the unit tests, thus bypassing hiera. This has required some refactoring, but it has the advantage of being a simpler test collection to implement. Does

Re: [Puppet Users] Rake tests for hiera

2013-03-28 Thread Nikola Petrov
This seems like a good idea and something I should look at. The problem is that there are third party modules which use hiera and I should redefine parameters and pass them along in my classes. But it this is indeed doable ;) -- Nikola On Thu, Mar 28, 2013 at 04:36:55PM +, Wolf Noble

[Puppet Users] [solved] Re: Unresponsive nodes with no pending task in the dashboard

2013-03-28 Thread Juan Sierra Pons
Hi, Finally the problem was related with auth.conf, puppet.con fileserver.conf files permissions. A restore fixed the problem. Best regards -- Juan Sierra Pons j...@elsotanillo.net Linux User Registered:

Re: [Puppet Users] PuppetDB api - deactivate command

2013-03-28 Thread Felipe Salum
Great, thanks Deepak. On Thursday, March 28, 2013 9:25:49 AM UTC-7, Deepak Giridharagopal wrote: On Thu, Mar 28, 2013 at 10:20 AM, Felipe Salum fsa...@gmail.comjavascript: wrote: Right time for this :) If I'm running this outside the localhost, do I need any specific auth permission ?

[Puppet Users] Re: Nodes Could not retrieve catalog from remote server: execution expired

2013-03-28 Thread iamauser
Hi John, Thanks for your suggestion. In our setup, puppet cron is managed by system crontab via a script and with no-daemonize option.For now, I will divide the nodes and run them bi-hourly. In the meantime, I will follow the example bunch on the setting up cron for puppet from here,

[Puppet Users] Announcing puppet-ceph

2013-03-28 Thread François Charlier
Quite recently Sébastien Han and myself worked together on the Puppet modules for Ceph on behalf of our employer eNovance. Modules are in pretty good shape thus we thought it was important to communicate to the community. The official announcement:

[Puppet Users] Confirming nodes and assigning classes in puppet dashboard

2013-03-28 Thread Max Lapshin
I want to setup puppet or chef, or whatever else to help deploy system to a person, that doesn't know how to write that strange words in command line. So I want to have a proper copy-paste that should be launched as a root on target machine and web interface where configuration will happen. I

[Puppet Users] Puppet in Novell Zenworks ZCM 11

2013-03-28 Thread stewart
Hello.. I'm in charge of setting up a ZCM server to replace an older ZLM instance. One of the reasons given for sticking with Novell and the new version is that puppet is used as the linux engine for applying policies. Unfortunately when that decision was made it wasn't realised that the

Re: [Puppet Users] Running ENC alongside site.pp (node defn)

2013-03-28 Thread iamauser
On Thursday, March 28, 2013 10:44:04 AM UTC-5, Martin Alfke wrote: Hi, On Mar 27, 2013, at 2:32 AM, iamauser tapas@gmail.com javascript: wrote: Thanks Pete and Martin. Follow up question. Let's assume I have 3 nodes (A,B,C), and all of them have some class definitions in

[Puppet Users] Viewing reports without the dashboard

2013-03-28 Thread Schofield
What I understand is that the puppet dashboard is essentially deprecated. https://groups.google.com/forum/#!msg/puppet-users/j44EbTJY7HI/EQSJgh-g1fgJ I'm curious to know if anyone is aware of any effort to replace the report viewing capability of the dashboard that is compatible with reports

[Puppet Users] Re: Viewing reports without the dashboard

2013-03-28 Thread llowder
On Thursday, March 28, 2013 2:23:15 PM UTC-5, Schofield wrote: What I understand is that the puppet dashboard is essentially deprecated. https://groups.google.com/forum/#!msg/puppet-users/j44EbTJY7HI/EQSJgh-g1fgJ I'm curious to know if anyone is aware of any effort to replace the report

[Puppet Users] Puppet node does not see manifests on new puppet master

2013-03-28 Thread Rilindo Foster
I have a puppet master that I had recently split into two, one handling just CA functionality and one handling the normal puppet master operations. puppet_ca puppet_master Otherwise, both are configured identically as follows: 1) The modules are stored into separate environments under

[Puppet Users] Puppet Enterprise 2.8 is now available

2013-03-28 Thread Christy
Hello puppet-users, Just a quick heads-up that Puppet Enterprise 2.8 is now available. This latest release includes a key new feature: IBM AIX support. The puppet agent can now be installed on nodes running AIX so you can manage them using Puppet Enterprise. To help you configure AIX nodes,

Re: [Puppet Users] Re: Catalog compilation, puppetdb and ssl

2013-03-28 Thread Ken Barber
Yeah, it does seem very odd though ... if agent works - and the master is able to talk to PuppetDB no problem, then its weird that running puppet master on the command line doesn't seem to work. What is strange is that the SSL error is very very unspecific: Failed to submit 'replace catalog'

Re: [Puppet Users] Re: puppet 3 hiera configs hiding somewhere

2013-03-28 Thread Philip Brown
On Thu, Mar 28, 2013 at 12:42 AM, Keith Burdis ke...@burdis.org wrote: That doesnt quite work as-is, eh? Because I need to know how to set the client hostname, You could use: # hiera --debug philcheck:value hostname=$(facter hostname) Thank you! That, along with -c

[Puppet Users] Puppet Enterprise 2.8 is now available

2013-03-28 Thread damian . folwell
Any idea on timescales (even which quarter) you are expecting to release a PE3 with puppet 3 and more importantly MCollective 2 (for the windows support)? Thanks Damian -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this

Re: [Puppet Users] Puppet Support for Windows

2013-03-28 Thread damian . folwell
Thanks Josh. Unfortunately I have had zero time to dedicate to this. Tbh if I could just model the dacl plus control the inheritance of dacl from parent that would be enough. I did start to write an ntfsfile class but wanted to keep all of the existing file class functionality except setting