[Puppet Users] Ruby for HP-UX 11.00

2012-12-06 Thread Alex Harvey
Hi all, I have been trying to compile Ruby on HP-UX 11.00 but there are too many dependencies and no publicly available packages for these on such an old operating system and I'm forced to give up. As a last resort - and it's a long shot indeed! - I am wondering if anyone out there has managed

[Puppet Users] $certname in thias-puppet module

2012-12-06 Thread Nitin Sharma
Hi I am using thias-puppet to manage puppet agent configuration. And it is being done in the following order: class baseclass { class puppet::agent { variables... } } node 'hostname1' { include baseclass } This all above works well. But now I wish to include $certname which would be used

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

2012-12-06 Thread Peter Brown
I worked out my problem. I spelt hierarchy wrong in my hiera.yaml file... On 7 December 2012 13:00, Peter Brown wrote: > On 7 December 2012 12:11, Ryan Cunningham > wrote: > >> I'm actually having this exact same problem. In my hiera.yaml file I had >> a hierarchy including two facts and then

Re: [Puppet Users] Having puppetmaster checkout manifests from subversion

2012-12-06 Thread Aaron Russo
Thomas, Have you looked at SVN's post-commit hooks? I think it can do what you want (though, I'm a git guy, so don't take my word for it). Maybe something like rsync/scp your files over to the puppet masters in your post-commit hook? FWIW, we use git and the post-receive hooks to distribute the

[Puppet Users] Re: need urgent help with including Ruby DSL class from puppet manifests

2012-12-06 Thread Michael Field
Error: Must pass a parameter or all necessary values at /etc/puppet/ > Is because when using Ruby DSL, assumed variables $name and $title are not passed to Puppet resource. For example, fix this: create_resource :'server::vhost', 'example', :ensure => 'present', etc..

[Puppet Users] Is there any ways to fetching custom fact after some resources setuped?

2012-12-06 Thread cynipe
I'm currently trying to create icinga module and the icinga-web and icinga-idoutils-libdbi-mysql from rpmforge store the initial sql file in version numbered directory(/usr/share/doc/icinga-web-1.7.2/~~~). So, I try to determine the version number from the yum info like as below, but that repos

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

2012-12-06 Thread Peter Brown
On 7 December 2012 12:11, Ryan Cunningham wrote: > I'm actually having this exact same problem. In my hiera.yaml file I had a > hierarchy including two facts and then some strings derived from facter > facts. > Nice to know I am not completely insane. When I run puppet agent --test the hiera var

Re: [Puppet Users] "Could not render to pson"

2012-12-06 Thread Peter Brown
Is it possible to install the .so from a package and install it on the node via a custom repository? Managing shared libraries via puppet is screaming "Dependency Hell" in my brain. On 7 December 2012 01:24, Tom Owens wrote: > I found this error in syslog: > > Dec 3 16:43:15 0x0x0tuna puppet-a

[Puppet Users] Does facter 2.x need cfengine key support?

2012-12-06 Thread John Warburton
We were tripped up (we shot ourselves) on facter 1.6.x looking in a missing NFS mounted /usr/local, which got me thinking - does facter 2.x really need this? https://github.com/puppetlabs/facter/blob/2.x/lib/facter/Cfkey.rb John -- You received this message because you are subscribed to the Goo

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

2012-12-06 Thread Ryan Cunningham
I'm actually having this exact same problem. In my hiera.yaml file I had a hierarchy including two facts and then some strings derived from facter facts. When I run puppet agent --test the hiera vars in files named for the node's $fqdn, etc. aren't found, but if I puppet apply specifying my sit

Re: [Puppet Users] Re: puppetlabs-stdlib

2012-12-06 Thread Russell Harrison
On Thursday, August 30, 2012 6:01:43 PM UTC-4, Jeff McCune wrote: > > On Wed, Aug 29, 2012 at 12:20 PM, Douglas Garstang > > > wrote: > >> Really? From the function reference at: >> http://docs.puppetlabs.com/references/latest/function.html >> >> Common ones seem to be create_resources, crit, d

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

2012-12-06 Thread Alex Harvey
> I prefer the core count definition, but whatever it is, it should be > consistent between Linux and Solaris. > Yes it certainly should be the same on all platforms - the question is if we change it who is going to be impacted and how can we manage the change? I believe the vast majority o

[Puppet Users] RE: puppet ca list --all ERROR

2012-12-06 Thread Rodolfo Pilas
Following my previous message, do you think that the problem may be: puppet master: # puppet -V 3.0.1 puppet agent: # puppet -V 0.25.4 I am testing a 3 version of master with my old deploy of agents. --- Rodolfo Pilas http://www.pilas.net @ysidorito El jueves, 6 diciembre 2012 a las 20:17

Re: [Puppet Users] Having puppetmaster checkout manifests from subversion

2012-12-06 Thread Peter Brown
Hi Thomas, About the only way I can see that working is if you setup a cron job on the puppet master that updates the svn and then do the remote puppet runs. Git may be a better way to achieve this. On 6 December 2012 21:19, Thomas Rasmussen wrote: > Hi > > I'm looking into a setup where we'd l

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

2012-12-06 Thread Peter Brown
On Dec 7, 2012 12:08 AM, "jcbollinger" wrote: > > > > On Tuesday, December 4, 2012 8:10:00 PM UTC-6, Pete wrote: >> >> >> One last question. >> I use a node level variable to specify the location of a node. >> I use this for setting variables specific to that location like different puppet master

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

2012-12-06 Thread Jakov Sosic
On 12/07/2012 12:20 AM, iamauser wrote: Thanks, but we are still running EL5. Do you have rpm available for this ? Yeah it's easy just replace el6 with el5 ;) http://ftp.srce.hr/srce-redhat/base/el5/x86_64/rubygem-puppet-lint-0.1.13-1.el5.srce.noarch.rpm Although I don't have all packages bu

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

2012-12-06 Thread iamauser
Thanks, but we are still running EL5. Do you have rpm available for this ? On Thursday, December 6, 2012 5:12:33 PM UTC-6, Jakov Sosic wrote: > > On 12/06/2012 08:00 PM, iamauser wrote: > > >> Are you using RHEL od RHEL derivative? If yes, I can provide you RPM. > > > > Yes, I am. That will b

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

2012-12-06 Thread Jakov Sosic
On 12/06/2012 08:00 PM, iamauser wrote: Are you using RHEL od RHEL derivative? If yes, I can provide you RPM. Yes, I am. That will be a lot helpful. Thanks a lot. http://ftp.srce.hr/srce-redhat/base/el6/x86_64/rubygem-puppet-lint-0.1.13-1.el6.srce.noarch.rpm -- Jakov Sosic www.srce.unizg.

[Puppet Users] puppet ca list --all ERROR

2012-12-06 Thread Rodolfo Pilas
I have just installed a puppet master 3.0.1 under Debian 6.0 Squeeze. As soon as I have installed puppet ca list --all works ok: # puppet ca list --all + master1.domain (SHA256) AB:E1:EE:F5:9C:C7:F5:4F:37:76:A0:AB:93:60:9A:E9:69:58:12:A6:37:4E:29:CD:7C:B7:A1:07:80:3B:13:47 and I "puppet agent

Re: [Puppet Users] Puppet report aggregation

2012-12-06 Thread John Warburton
On 6 December 2012 20:29, Luke Bigum wrote: > I haven't looked at The Foreman in a while but in my mind it's more like > Puppet Dashboard - correct me if I'm wrong. What I'm aiming for is a tool > that can aid change / release management where we run Puppet --noop across > the estate, gather all

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

2012-12-06 Thread Amos Shapira
I copied the question to issue http://projects.puppetlabs.com/issues/18021 since I think I stumbled on a bug. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users

Re: [Puppet Users] Re: gem error installing rack

2012-12-06 Thread DJames
Thanks i found this. http://www.rubyenterpriseedition.com/download.html On Thursday, December 6, 2012 1:59:31 PM UTC-5, Matthaus Litteken wrote: > > If you go to https://rubygems.org/gems/rack there is a download link > to download the gem as well as links to previous versions. Once you > have

Re: [Puppet Users] Puppet Agent on Windows and file paths 32 or 64 Bit

2012-12-06 Thread ad
Hey Oliver, I finally got around to working on this today, and discovered I fixed it long ago and completely forgot to push the change to github. oops :) Looks like I took a different approach. https://github.com/adenning/winfacts/blob/master/lib/facter/os_architecture.rb I only run Puppet on

Re: [Puppet Users] Catalog into something "human readable"

2012-12-06 Thread Deepak Giridharagopal
On Thu, Dec 6, 2012 at 4:50 AM, ollies...@googlemail.com < paul.seym...@barcap.com> wrote: > Hello, > > Is there anyway to parse a catalog generated with something like:- > > puppet master --compile > .cat > > That looks vaguely human readable. I have tried the "puppet catalog print" > face but

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

2012-12-06 Thread iamauser
On Thursday, December 6, 2012 11:20:08 AM UTC-6, Jakov Sosic wrote: > On 12/06/2012 05:51 PM, iamauser wrote: > > Hi, > > > > I had tried installing puppet-lint sometime ago, and tried this again as > > you wrote, but I get a bunch of buffer overflow (see below). I have > > reported an issue

Re: [Puppet Users] Re: gem error installing rack

2012-12-06 Thread Matthaus Owens
If you go to https://rubygems.org/gems/rack there is a download link to download the gem as well as links to previous versions. Once you have the gem locally, you can run `gem install /path/to/rack-1.2.3.gem` to install the gem. HTH On Thu, Dec 6, 2012 at 10:39 AM, DJames wrote: > how can i manu

Re: [Puppet Users] Puppet report aggregation

2012-12-06 Thread Ohad Levy
On Thu, Dec 6, 2012 at 11:29 AM, Luke Bigum wrote: > On Wednesday, December 5, 2012 12:50:43 PM UTC, ohad wrote: > >> You could use foreman for that? filtering the hosts via search should >> allow you to find the exact resources you are looking for? >> >> Ohad >> >> > Hi Ohad, > > I haven't looke

[Puppet Users] Re: gem error installing rack

2012-12-06 Thread DJames
how can i manually install these then? On Thursday, December 6, 2012 9:32:18 AM UTC-5, DJames wrote: > > # gem install rack > > > ERROR: http://rubygems.org/ does not appear to be a repository > ERROR: Could not find a valid gem 'rack' (>= 0) in any repository > > -- You received this message

Re: [Puppet Users] Proper way to call variables from a parent class to a child class

2012-12-06 Thread Gary Larizza
Hi there, This is an example of dynamic scoping, and there is a good help document here --> http://docs.puppetlabs.com/guides/scope_and_puppet.html That page should describe what you're seeing and how to clarify it. On Thu, Dec 6, 2012 at 10:17 AM, phundisk wrote: > I currently have a child cl

[Puppet Users] Proper way to call variables from a parent class to a child class

2012-12-06 Thread phundisk
I currently have a child class of a parent one. The parent defines some variable that I need to use in the child class. I am also using gepetto. Gepetto is complaining about the syntax of the child variable. It is saying that "$parentVar" should be "$::parentVar" however, when changing to w

Re: [Puppet Users] Catalog into something "human readable"

2012-12-06 Thread R.I.Pienaar
- Original Message - > From: "ollies...@googlemail.com" > To: puppet-users@googlegroups.com > Sent: Thursday, December 6, 2012 1:50:56 PM > Subject: [Puppet Users] Catalog into something "human readable" > > Hello, > > Is there anyway to parse a catalog generated with something like:-

Re: [Puppet Users] How to group hosts?

2012-12-06 Thread Joe Topjian
Hello, I do this using facter-dot-d. For my environment, I group by physical location, so I have a text file "/etc/facter/facts.d/location.txt" with contents of: location=foobar Then "facter -p location" will output the location of the node. Then throughout my manifests, I use the meta-paramet

Re: [Puppet Users] How to group hosts?

2012-12-06 Thread Stefan Goethals
Hi, You could use facter-dot-d to set a fact on those servers specifying the name of a storagegroup or a webcluster and then use that fact in your hiera hierarchy so you could have /etc/facter/facts.d/servertype.yaml with content servertype: storage_node ( or web_node ) Have in /etc/puppet/hi

Re: [Puppet Users] pasenger does not start puppet master under nginx

2012-12-06 Thread Craig White
On Dec 6, 2012, at 3:17 AM, Anadi Misra wrote: > On the server > > [root@bangvmpllDA02 logs]# ruby -v > ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] > > [root@bangvmpllDA02 logs]# puppet --version > 3.0.1 > > and > > [root@bangvmpllDA02 logs]# service nginx configtest > nginx: the co

[Puppet Users] How to group hosts?

2012-12-06 Thread Jakov Sosic
Hi. I'm currently using hiera in a very rudimentary way, using only perhost and common. Now, I'm trying to group my hosts a little bit, so for example web servers could have their own yaml with data. Problem is I don't have an idea how to group hosts? How can I say to puppet that for example host

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

2012-12-06 Thread Jakov Sosic
On 12/06/2012 05:51 PM, iamauser wrote: > Hi, > > I had tried installing puppet-lint sometime ago, and tried this again as > you wrote, but I get a bunch of buffer overflow (see below). I have > reported an issue with rodjek's github and let's see if I get an answer. > Any suggestion from this for

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

2012-12-06 Thread iamauser
Hi, I had tried installing puppet-lint sometime ago, and tried this again as you wrote, but I get a bunch of buffer overflow (see below). I have reported an issue with rodjek's github and let's see if I get an answer. Any suggestion from this forum will certainly help. ]# gem install puppet-li

[Puppet Users] Puppet Camp Ghent Jan 31 & Feb 1 (before FOSDEM)

2012-12-06 Thread Dawn Foster
I wanted to let everyone know that we're holding Puppet Camp Ghent on January 31 and February 1. For those of you attending FOSDEM, don't worry, you will have plenty of time to catch the train (it's a 30 minute trip) from Ghent to Brussels for the FOSDEM Friday Beer Event after we wrap up Puppet Ca

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

2012-12-06 Thread Diogo Martinez
The solutions went start master pid and redo the ssl certificates with puppet cert clean host_name and deleting var/lib/puppet/ssl. thanks Fran and Jc!!! 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 le

Re: [Puppet Users] Re: managing exceptions/specifics on file content / source

2012-12-06 Thread Martin Willemsma
Thanks for the pointer, Evelio For others needed something similar: I created a key in hiera, defaulting to template $config_src = hiera("openssh_config_src", "template") My code now looks like this: file { $config : ensure => file, owner => 0

[Puppet Users] "Could not render to pson"

2012-12-06 Thread Tom Owens
I found this error in syslog: Dec 3 16:43:15 0x0x0tuna puppet-agent[16790]: (/Stage[main]/Tuna/File[/u/net/profile/common/zoom.so.32/hpsw.so]/content) change from {md5}9913d05900c2fd8cd14ef2efec728457 to {md5}fe7db3112ffcea0f80fbda99b7da408c failed: Could not back up /u/net/profile/common/zoo

[Puppet Users] Puppet+Passenger: Client can get cert signed, but then errors

2012-12-06 Thread Emil Flink
Puppet + webbrick = No problems Puppet + Passenger = Client can connect and get its certificate signed, but then get heaploads of SSL errors . I have tried regenerating all certificates by running *rm -R /var/lib/puppet/ssl/** on both the master and the client. Apa

[Puppet Users] pasenger does not start puppet master application under nginx

2012-12-06 Thread Anadi Misra
On the server [root@bangvmpllDA02 logs]# ruby -v ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] [root@bangvmpllDA02 logs]# puppet --version 3.0.1 and [root@bangvmpllDA02 logs]# service nginx configtest nginx: the configuration file /apps/nginx/nginx.conf syntax is ok nginx: configuration

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

2012-12-06 Thread Konrad Scherer
On 12/05/2012 10:22 AM, Andrew Beresford wrote: 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+"

[Puppet Users] pasenger does not start puppet master under nginx

2012-12-06 Thread Anadi Misra
On the server [root@bangvmpllDA02 logs]# ruby -v ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] [root@bangvmpllDA02 logs]# puppet --version 3.0.1 and [root@bangvmpllDA02 logs]# service nginx configtest nginx: the configuration file /apps/nginx/nginx.conf syntax is ok nginx: configuration

[Puppet Users] Re: how to use vcsrepo?¿

2012-12-06 Thread Drew Blessing
Hi Fran, There's a couple of things you can try. First, make sure you have the module in your modules directory. I'm fairly sure you have this step done but just in case. Then, since vcsrepo uses plugins to accomplish it's tasks you need to ensure that the plugins are on both the puppet mast

[Puppet Users] Re: Error: can't instantiate uninitialized class

2012-12-06 Thread Luca Gioppo
Ruby version 1.8.7 on both master and agent. But on the agent I get: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: can't instantiate uninitialized class Debug: Using cached catalog for jbossm.cortile.cloudlabcsi.local Using cached catalog So the problem should be in

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

2012-12-06 Thread Nikola Petrov
You should consider using a good editor which will show those error for you. You can incorporate puppet-lint for example and it will spot most of the problems and warn you about the double quotes for performance and clarity reasons. Hope that helps :-) Best, Nikola On Wed, Dec 05, 2012 at 04:19:

Re: [Puppet Users] gem error installing rack

2012-12-06 Thread Stefan Goethals
This is not a puppet error.. But i think the name rubygems.org is not resolving on your server and/or a firewall is blocking access to the site... Regards, Stefan. On Thu, Dec 6, 2012 at 3:32 PM, DJames wrote: > # gem install rack > > > ERROR: http://rubygems.org/ does not appear to be a rep

[Puppet Users] gem error installing rack

2012-12-06 Thread DJames
# gem install rack ERROR: http://rubygems.org/ does not appear to be a repository ERROR: Could not find a valid gem 'rack' (>= 0) in any repository -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit htt

[Puppet Users] Re: Error: can't instantiate uninitialized class

2012-12-06 Thread jcbollinger
On Thursday, December 6, 2012 5:14:51 AM UTC-6, Luca Gioppo wrote: > > OK I'm getting mad. > > All of a sudden after a few mods I received this error from the > puppet_master. > > I reverted all the changes done up to a last working set but no prize > still this error and I cannot understand wh

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

2012-12-06 Thread jcbollinger
On Tuesday, December 4, 2012 8:10:00 PM UTC-6, Pete wrote: > > > One last question. > I use a node level variable to specify the location of a node. > I use this for setting variables specific to that location like different > puppet master ip and nagios ip for the office and such. > I want to u

[Puppet Users] Re: managing exceptions/specifics on file content / source

2012-12-06 Thread Evelio VILA
HI, Le jeudi 6 décembre 2012 13:07:19 UTC+1, mawi a écrit : > > Hi, > > I'm looking for help on this use case: > > I have several modules managing e.g. ntp and ssh on some nodes. The > content of ntp.conf and sshd_config are generated from templates for most > of the nodes. Now we have a use c

[Puppet Users] managing exceptions/specifics on file content / source

2012-12-06 Thread Martin Willemsma
Hi, I'm looking for help on this use case: I have several modules managing e.g. ntp and ssh on some nodes. The content of ntp.conf and sshd_config are generated from templates for most of the nodes. Now we have a use case where some nodes need specific sshd_config or other admins need to make per

[Puppet Users] Catalog into something "human readable"

2012-12-06 Thread ollies...@googlemail.com
Hello, Is there anyway to parse a catalog generated with something like:- puppet master --compile > .cat That looks vaguely human readable. I have tried the "puppet catalog print" face but cannot seem to get it to parse for some reason # puppet catalog print --catalog /var/tmp/.cat err: unde

[Puppet Users] Having puppetmaster checkout manifests from subversion

2012-12-06 Thread Thomas Rasmussen
Hi I'm looking into a setup where we'd like the puppetmaster to checkout/update all the manifests from subversion before it compiles the manifests served to puppet nodes. I have been looking through the documentation, and I can't seem to find a way of doing this. We'd like to be able to develo

[Puppet Users] Error: can't instantiate uninitialized class

2012-12-06 Thread Luca Gioppo
OK I'm getting mad. All of a sudden after a few mods I received this error from the puppet_master. I reverted all the changes done up to a last working set but no prize still this error and I cannot understand what is happening it seems that it manages to finish the catalog but than it stops.

[Puppet Users] Re: Storeconfigs parsing

2012-12-06 Thread Andrei Burd
https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/5jMB2RxcKMU here's the answer =) On Wednesday, December 5, 2012 9:20:48 PM UTC+2, Or Elimelech wrote: > > Hello everyone, > We have installed new puppetmaster on debian squeeze with storeconfigs > using postgresql > we've migrated

[Puppet Users] Re: quotes in templates/manifests using storeconfigs

2012-12-06 Thread Andrei Burd
we figured out, that the problem was that in Postgres 9.1 they made *standard_conforming_strings* was ON by default, that causes problem in inserting escape characters to DB. On Wednesday, December 5, 2012 9:30:28 PM UTC+2, Andrei Burd wrote: > > Hi everyone! > we installed Puppet master 2.7.18

Re: [Puppet Users] Puppet report aggregation

2012-12-06 Thread Luke Bigum
On Wednesday, December 5, 2012 12:50:43 PM UTC, ohad wrote: > You could use foreman for that? filtering the hosts via search should > allow you to find the exact resources you are looking for? > > Ohad > > Hi Ohad, I haven't looked at The Foreman in a while but in my mind it's more like Puppet