Re: [Puppet Users] how to exports facts from puppetdb

2013-11-21 Thread Deepak Giridharagopal
On Nov 21, 2013, at 8:53 PM, kaustubh chaudhari wrote: > Hi, > > How can i export all the facts for all the nodes from puppetdb in cvs/xls > format. > > My objective is to us Business Object or some other tool for creating my > infrastructure reports. > > Can someone help/redirect me to the

[Puppet Users] how to exports facts from puppetdb

2013-11-21 Thread kaustubh chaudhari
Hi, How can i export all the facts for all the nodes from puppetdb in cvs/xls format. My objective is to us Business Object or some other tool for creating my infrastructure reports. Can someone help/redirect me to the right documentation? Kaustubh -- You received this message because you a

[Puppet Users] Puppet Dashboard 1.2.1

2013-11-21 Thread GregC
Anyone know where I can find rake node commands for Dashboard 1.2.1? I know this is an older release of the dashboard but the only documents I can find are for 1.24 and higher. I would like to be able to remove a node from Puppet Dashboard The doc says the following but this does not work in d

[Puppet Users] Added $::osfamily=Solaris support for the puppetlabs/ntp module

2013-11-21 Thread Richard Feltstykket
Hi, I've added preliminary support for $::osfamily=Solaris on the puppetlabs/ntp module to the below branch on github. It works for me on OpenIndiana Hipster. This is really my first use of github and contributing to the puppetforge in general, so can someone tell me if I've done anything wr

[Puppet Users] Create array from node facts

2013-11-21 Thread JamieC
I'm looking of a way to create an array of IPs of puppet clients which are currently assigned a certain class\module. Would anyone be able to tell me if this would be possible and if so, point me in the right direction of implementing it? I'm using puppetdb so assume the details could be pulled

Re: [Puppet Users] Weird Error From Running Puppet

2013-11-21 Thread Denmat
Two things, look at disabling detailed-exitcodes and use --hiera_conf to declare the path to the hiera.yaml file. That should get you further. Den > On 22 Nov 2013, at 3:43, MM wrote: > > So I had this confuse error message when running puppet via Vagrant puppet > provisioner with Puppet 3.3.

Re: [Puppet Users] matching all current "ipaddress_ethX" facts

2013-11-21 Thread Jo Rhett
Yep, write it out as such :) Either if/then in the manifest, or write a custom function that iterates through all ipaddress facts. On Nov 21, 2013, at 4:32 AM, cko wrote: > I'm currently trying to solve the following problem: > > I wrote a module that matches the "$ipaddress" fact for certain

Re: [Puppet Users] Problem with Passenger

2013-11-21 Thread Jo Rhett
On Nov 18, 2013, at 12:52 PM, Marcelo Frota wrote: > I having problem with passenger module, i create the config file > /usr/share/puppet/rack/puppetmasterd/config.ru but > the process master the puppet is not running . > For what seems apache is not recognizing the file config.ru I don't bel

[Puppet Users] Announce: Hiera 1.3.0 Available

2013-11-21 Thread Melissa Stone
Hiera 1.3.0 --- Released November 21, 2013 RC2: November 8, 2013 -- Reverted #18577 RC1: October 29, 2013 -- Problems came up functional-testing on ticket #18577, which caused us to revert it, so this build never got pushed. For the full list of closed issues speci

Re: [Puppet Users] package conflict resolution method:

2013-11-21 Thread jcbollinger
On Tuesday, November 19, 2013 1:48:26 PM UTC-6, Matt Simmons wrote: > > Hi John, > > I'm new around here, but I'm also in the same situation as Tom, who > started this thread. > > I was wondering if you could expound a little bit on the better solution > that you mention. I write what I could

Re: [Puppet Users] Purging of ssh_authorized_keys

2013-11-21 Thread Jo Rhett
I agree with much of what Felix said here. Most importantly, John's "every possible file everywhere" is more than a bit extreme. (sorry, John :D ) I actually think that something even more limited than what Felix suggested would solve most desires. I believe that purging unlisted SSH keys for al

Re: [Puppet Users] cannot find puppet_node_classifier

2013-11-21 Thread Martin Alfke
Hi, ENC description from puppetlabs can be found here: http://docs.puppetlabs.com/guides/external_nodes.html Or search/google for "puppet enc examples" you will find sites like this: https://github.com/rmt/puppetenc-ruby http://wiki.unixh4cks.com/index.php/Simple_External_Node_Classifier%28ENC%29

Re: [Puppet Users] Could not find parent resource type

2013-11-21 Thread jcbollinger
On Thursday, November 21, 2013 6:07:26 AM UTC-6, Johan De Wit wrote: > > And to make autoloading work : > > ...modules/myclass/init.pp > /params.pp > > Make that modules/myclass/*manifests*/init.pp and modules/myclass/*manifests*/params.pp John -- You re

Re: [Puppet Users] Problem with Passenger

2013-11-21 Thread Felix Frank
Marcelo, well, have you made sure that apache is configured correctly according to the documentation? I.e. http://docs.puppetlabs.com/guides/passenger.html I advise to restart apache and keep an eye on its log files. HTH, Felix On 11/21/2013 02:07 PM, Marcelo Frota wrote: > Hi Felix, > > My

Re: [Puppet Users] Re: Could not find parent resource type

2013-11-21 Thread Felix Frank
Just a quick remark: If anonymisation is an issue for you, you should definitely go back to pastebin and anynonymise the code there as well. I notice some anti-patterns, but nothing stands out to me that should make the agent fail like that... Cheers, Felix On 11/21/2013 01:26 PM, Raj kumar V wr

Re: [Puppet Users] cannot find puppet_node_classifier

2013-11-21 Thread jcbollinger
On Thursday, November 21, 2013 7:00:24 AM UTC-6, shlo@gmail.com wrote: > > Do I need to install something special for that or it came with Puppet? > > It is essentially a Puppet extension point. There are programs that provide a suitable node classifier (Foreman, Dashboard), but a lot of

[Puppet Users] Purging of ssh_authorized_keys

2013-11-21 Thread Felix Frank
Hi, I'm forking this thread from a cron discussion on the development list. I feel that the exchange of design ideas regarding the much requested cleaning of authorized ssh public keys is of interest to the base of (potential) users and is not (yet) closely related to implementation details. On 1

Re: [Puppet Users] Puppet Masterless on Windows

2013-11-21 Thread Rob Reynolds
I would be explicit about telling vagrant where your modules folder is. e.g. https://github.com/ferventcoder/vagrant-windows-puppet/blob/master/boxes/win2008r2x64-vagrant/Vagrantfile#L34 On Thu, Nov 21, 2013 at 12:16 AM, Roger Yu wrote: > yes i installed vagrant windows version and use vagrant

Re: [Puppet Users] Exported resource resolving oddly

2013-11-21 Thread Ken Barber
> I'm trying my hand at my first exported resource. In fact, this comes from > converting an older resource to an exported one, which might explain the > problem > > Currently, I have two classes: > > class yum { >File <<| tag == 'repofile' |>> ~> Exec['yum clean all'] >: > } > > class

[Puppet Users] Puppet Dashboard with Passenger - 500 Internal Server Error (Mysql::Error: Can't create/write to file Errcode: 13)

2013-11-21 Thread Jason Friedrich
Distribution: Ubuntu 12.04.3 Ruby version: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] Gem version: 1.8.15 Puppet version: 3.3.2-1puppetlabs1 (Puppetlabs apt repo) Puppet Dashboard: 1.2.23-1puppetlabs1 (Puppetlabs apt repo) I have successfully set up a puppet master, with two agents an

Re: [Puppet Users] Exported resource resolving oddly

2013-11-21 Thread Bret Wortman
I think you're right. Thanks, John and Ken for helping get me straightened out. *Bret Wortman* http://about.me/wortmanbret On Thu, Nov 21, 2013 at 1:52 PM, jcbollinger wrote: > > > On Thursday, November 21, 2013 10:29:37 AM UTC-6, Bret Wortman wrote: >> >> Wait -- so this collects every occu

[Puppet Users] Weird Error From Running Puppet

2013-11-21 Thread MM
So I had this confuse error message when running puppet via Vagrant puppet provisioner with Puppet 3.3.2 and Data in Module *Error: Could not run: Could not find file trueThe following SSH command responded with a non-zero exit status.Vagrant assumes that this means the command fai

Re: [Puppet Users] Puppet and scripts.

2013-11-21 Thread Daniel Lyons
So I knew the script took a while but I thought to myself: "No way does it take 5 minutes." Sure enough I dropped the timeout and it finishes. 312 seconds... Also I understand now that the log is posted in full AFTER the script runs, so that's why I wasn't seeing any of the echo outputs at all

Re: [Puppet Users] Exported resource resolving oddly

2013-11-21 Thread Bret Wortman
Wait -- so this collects every occurrence thoughout the database, not just for the system being processed? I think the word "node" was tripping me up in the online documentation -- I was reading "node" and thinking "resource". Okay, I get it now, and you're absolutely right -- this is a terrible us

[Puppet Users] Exported resource resolving oddly

2013-11-21 Thread Bret Wortman
I'm trying my hand at my first exported resource. In fact, this comes from converting an older resource to an exported one, which might explain the problem Currently, I have two classes: class yum { File <<| tag == 'repofile' |>> ~> Exec['yum clean all'] : } class yum::foo { inclu

Re: [Puppet Users] Exported resource resolving oddly

2013-11-21 Thread jcbollinger
On Thursday, November 21, 2013 10:29:37 AM UTC-6, Bret Wortman wrote: > > Wait -- so this collects every occurrence thoughout the database, not just > for the system being processed? > Yes, that's the point of exported resources. They allow resources the catalog compilation process for one n

Re: [Puppet Users] Exported resource resolving oddly

2013-11-21 Thread Bret Wortman
It's partly to experiment with something I just learned, in all honesty. But it's also because this is a resource that I only want on certain systems, and after installing it (or any yum file for that matter), I want to trigger a "yum clean all" so that puppet doesn't spin for a while before yum fi

Re: [Puppet Users] cannot find puppet_node_classifier

2013-11-21 Thread Jason Antman
As far as I know, "/usr/bin/puppet_node_classifier" is supposed to be the path to your ENC script. What ENC are you trying to use? Either your ENC documentation should tell you how to configure this (Puppet Dashboard/Console, Foreman, etc.) or if you're writing your own ENC, this should be the

Re: [Puppet Users] cannot find puppet_node_classifier

2013-11-21 Thread shlo . afgin
Is there good website i can read about it more? On Thursday, November 21, 2013 4:20:34 PM UTC+2, jcbollinger wrote: > > > > On Thursday, November 21, 2013 7:00:24 AM UTC-6, shlo@gmail.com wrote: >> >> Do I need to install something special for that or it came with Puppet? >> >> > > It is essen

Re: [Puppet Users] cannot find puppet_node_classifier

2013-11-21 Thread shlo . afgin
Do I need to install something special for that or it came with Puppet? On Thursday, November 21, 2013 2:34:00 PM UTC+2, Jason Antman wrote: > > As far as I know, "/usr/bin/puppet_node_classifier" is supposed to be > the path to your ENC script. > > What ENC are you trying to use? Either your EN

Re: [Puppet Users] Exported resource resolving oddly

2013-11-21 Thread Bret Wortman
The curl command, incidentally, returned nothing on the server, and errored on the client when typed in verbatim. And from the client, when I changed "localhost" to the name of the puppet master, I got a "curl (7): couldn't connect to host" error. I'll try Zach's tool next. *Bret Wortman* http:/

[Puppet Users] saving copy of template on puppetmaster

2013-11-21 Thread warden
I am using puppet to manage files on the nodes with the ERB templates. Plain old standard. What I need to do is to get a copy of the generated (parsed) template file on the puppet master server. What I want to achieve is that I want to see the current version of the file as it is on the clien

[Puppet Users] Belgian PUG - Something about augeas - Tuesday, November 26, 2013

2013-11-21 Thread Johan De Wit
Something about augeas Belgian Puppet User Group Added by Johan De Wit Tuesday, November 26, 2013 7:00 P

Re: [Puppet Users] Problem with Passenger

2013-11-21 Thread Marcelo Frota
Hi Felix, My archive config.ru is equal to the file that you spoke. Do you have other sugestion, for the my problem ? Regards Marcelo Frota Em quinta-feira, 21 de novembro de 2013 09h09min03s UTC-2, Felix.Frank escreveu: > > Hi, > > is that config.ru from the ubuntu package? > > It looks

[Puppet Users] Re: Could not find parent resource type

2013-11-21 Thread Raj kumar V
Warning: Scope(Class[<>]): Could not look up qualified variable '<>::params::<>_APIkey'; class <>::params could not be found Warning: Scope(Class[<>]): Could not look up qualified variable '<>::params::<>_APIkey'; class <>::params could not be found Error: Could not find class site24x7::params f

[Puppet Users] matching all current "ipaddress_ethX" facts

2013-11-21 Thread cko
Hi, I'm currently trying to solve the following problem: I wrote a module that matches the "$ipaddress" fact for certain IP subnets (like 20.20.2... or 30.30.2..). Depending on the subnet, the variable $proxy-server changes. The problem is, that some of our physical machines have a random numb

[Puppet Users] Puppet dashboard config for node request

2013-11-21 Thread kaustubh chaudhari
Sorry if this is a duplicate request. Unable to see my previous post, hence resending! I am trying to have a node request tab in puppet-dashboard in the open source version, In PE we have this tab to accept / reject node request. Can we configure the same in open source puppet dashboard ? Kau

Re: [Puppet Users] Puppet and scripts.

2013-11-21 Thread Andreas Ntaflos
On 2013-11-21 19:08, Daniel Lyons wrote: > We've got a decently complicated .sh script used to set up oracle > database, inlcuding partioning and the like. If I attempt to run it > through puppet the script will end after 300 seconds as timed out. To > test a simpler case I just made a little scrip

Re: [Puppet Users] Could not find parent resource type

2013-11-21 Thread jcbollinger
On Thursday, November 21, 2013 6:00:53 AM UTC-6, Felix.Frank wrote: > > On 11/21/2013 12:17 PM, Raj kumar V wrote: > > In my module folder, > > > > I have 2 files. > > > > init.pp > > params.pp > > > > My init code: > > > > class myclass($api_key=$myclass::params::myclassagent_APIkey)

[Puppet Users] Re: matching all current "ipaddress_ethX" facts

2013-11-21 Thread jcbollinger
On Thursday, November 21, 2013 6:32:44 AM UTC-6, cko wrote: > > Hi, > > I'm currently trying to solve the following problem: > > I wrote a module that matches the "$ipaddress" fact for certain IP subnets > (like 20.20.2... or 30.30.2..). Depending on the subnet, the variable > $proxy-server cha

[Puppet Users] How to configure puppet-dashboard for Node request management

2013-11-21 Thread kaustubh chaudhari
Hi, i am looking for configure a way to accept / reject node request using puppet-dashboard. I know this facility is available in PE, but i am trying to find a way to do this in opensource version. Is this possible? Kausutbh -- You received this message because you are subscribed to the G

[Puppet Users] Puppet and scripts.

2013-11-21 Thread Daniel Lyons
Hello, So I realize one of the main points of puppet is moving way from .sh scripts but I'm at a point where I need to use one until I can get everything figured out. The problem I'm having is that my scripts dont seem to run properly if I have puppet call them. We've got a decently complicate

[Puppet Users] Re: Could not find parent resource type

2013-11-21 Thread Raj kumar V
Still the same error. I have the params in the same init location. http://pastebin.com/nCmcgMi4 look at the pp scripts here On Thursday, 21 November 2013 14:41:01 UTC+5:30, Raj kumar V wrote: > > I have written a module with a init class. Now I have to pass a dynamic > value. so I have crea

Re: [Puppet Users] Could not find parent resource type

2013-11-21 Thread Johan De Wit
And to make autoloading work : ...modules/myclass/init.pp /params.pp hth Jo On 11/21/2013 01:00 PM, Felix Frank wrote: Hi, comments inline. On 11/21/2013 12:17 PM, Raj kumar V wrote: In my module folder, I have 2 files. init.pp params.pp My init code: clas

Re: [Puppet Users] Puppet: a way to secure certain files

2013-11-21 Thread Sergey Arlashin
Thank you! On Nov 20, 2013, at 9:02 PM, jcbollinger wrote: > > > On Wednesday, November 20, 2013 12:06:35 AM UTC-6, Rich Burroughs wrote: > You can use hiera gpg for ssh keys too. > > See this example: > > https://groups.google.com/d/msg/puppet-users/jHcuKQXT9cQ/g23Lmf4e6b8J > > > > > Bu

Re: [Puppet Users] Could not find parent resource type

2013-11-21 Thread Felix Frank
Hi, comments inline. On 11/21/2013 12:17 PM, Raj kumar V wrote: > In my module folder, > > I have 2 files. > > init.pp > params.pp > > My init code: > > class myclass($api_key=$myclass::params::myclassagent_APIkey) inherits > myclass::params{ No need to inherit the params class. I would get

Re: [Puppet Users] Could not find parent resource type

2013-11-21 Thread Raj kumar V
In my module folder, I have 2 files. init.pp params.pp My init code: class myclass($api_key=$myclass::params::myclassagent_APIkey) inherits myclass::params{ include myclass::params some code here... }include myclass params.pp got: class myclass::params{ myclassagent_APIkey=' ' } What am

Re: [Puppet Users] Problem with Passenger

2013-11-21 Thread Felix Frank
Hi, is that config.ru from the ubuntu package? It looks odd and seems to miss the vital '$0 = "master"' line. For reference: https://github.com/puppetlabs/puppet/blob/master/ext/rack/config.ru HTH, Felix On 11/18/2013 09:52 PM, Marcelo Frota wrote: > I am running puppet with puppet version 3.3

Re: [Puppet Users] create_resources and file

2013-11-21 Thread Felix Frank
Hi, tough call. You may have to replicate the file type in a defined type like so: define my_file($owner="root",$mode="644",...,$template="") { if $template { File[$name] { content => template($template) } } file { $name: owner => $owner, ... } } Then you can create_resource('my_file',hier

Re: [Puppet Users] Want to restrict puppet module execute every 30mins

2013-11-21 Thread Felix Frank
Hi, this would even work, but I think the approach as a whole is not well in line with puppet's philosophy. Application deployment is not among its core strengths. If you really want to do this by puppet, I suggest you keep it simple: 1. perform all your steps in one monolithic script 2. have pup

[Puppet Users] cannot find puppet_node_classifier

2013-11-21 Thread shlo . afgin
Hi, I'm trying to learn configure puppet nodes using ENC. The instruction tell to add to puppet.conf the line: external_nodes = /usr/bin/puppet_node_classifier I cannot find puppet_node_classifier anywhere in my system. I have puppet 3.3.1 installed. What I need to install in order to have i

Re: [Puppet Users] Puppetmaster generated Certificate with "old" CA domainname

2013-11-21 Thread Felix Frank
Hi, humm, the TCP handshake fails...? Is there firewalling on master and/or agent side? Are you using passenger by the way? Cheers, Felix On 11/20/2013 01:54 AM, yamakasi@gmail.com wrote: > Hi Mark, > > Yes I removed /var/lib/puppet/ssl on the agent. > > At the moment I get an: Error: Co

Re: [Puppet Users] undefined method `enum_lsdev' for Facter::Util::Processor:Module

2013-11-21 Thread Felix Frank
Hi, are you certain that puppet uses the facter gem you installed? Is an older version of facter installed by other means? Regards, Felix On 11/20/2013 01:19 PM, yamakasi@gmail.com wrote: > Hi All, > > I'm facing the following error on an Ubuntu 12.04 install with Puppet 3.3.2 > > Error: C

Re: [Puppet Users] Could not find parent resource type

2013-11-21 Thread Felix Frank
This looks pretty bad :-) Can you paste (excerpts of) your manifest code on pastebin or a similar service? On 11/21/2013 10:11 AM, Raj kumar V wrote: > I have written a module with a init class. Now I have to pass a dynamic > value. so I have created a params class and inherited in the init class

[Puppet Users] Could not find parent resource type

2013-11-21 Thread Raj kumar V
I have written a module with a init class. Now I have to pass a dynamic value. so I have created a params class and inherited in the init class and trying to access the value. But puppet says Could not find parent resource type ::params of type hostclass error. Any idea? -- You received th

Re: [Puppet Users] some good books

2013-11-21 Thread Jo Rhett
On Nov 15, 2013, at 2:35 PM, Jason Antman wrote: > As much as I hate to say this (for all of the people who write Puppet books) > I've found that things are changing fast enough that I usually recommend one > or two books for a beginner to get the ropes, and then after that, rely on > the onlin