[Puppet Users] Re: Host name lookup failure

2013-03-18 Thread yarlagadda ramya
Hi.. Am still getting the same problem..actually..the certificate is not getting generated in the agent..then only it is transferred to master for the signing right?? So..when an trying to find the certificates in master, it is showing.. couldnot call list: header too long error. On Friday,

Re: [Puppet Users] Re: Host name lookup failure

2013-03-18 Thread krish
On Mon, Mar 18, 2013 at 12:10 PM, yarlagadda ramya rams.15...@gmail.comwrote: Hi.. Am still getting the same problem..actually..the certificate is not getting generated in the agent..then only it is transferred to master for the signing right?? So..when an trying to find the certificates in

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

2013-03-18 Thread Klavs Klavsen
I solved this issue, by using netgroups (in LDAP) - which is loaded into puppet, by a script which is run by external_nodes setting (it just provides parameters - no actual nodes). This way, a server can have multiple roles (by being in multiple netgroups). Unfortunately hiera can't

[Puppet Users] custom fact works in testing but fails during puppet run

2013-03-18 Thread mark . allison
Hi I have the following custom fact: require 'facter' Facter.add(chat_remote_port, :timeout = 5) do setcode do Facter::Util::Resolution.exec('/usr/bin/ssh -o StrictHostKeyChecking=no -i /vagrant/fabfile/deployment/keys/id_rsa u...@example.com \'for port in 12321 12322 12323 12324 12325

[Puppet Users] Facter Strings to integer.

2013-03-18 Thread ollies...@googlemail.com
Hello, If I want to do something like this:- if $::lsbdistrelease = 6.3 { SOMETHING } Do I have to convert lsbdistrelease from a string to a number with an inline template or some such ? Thanks Paul -- You received this message because you are subscribed to the Google Groups Puppet Users

Re: [Puppet Users] Re: custom fact works in testing but fails during puppet run

2013-03-18 Thread Mark Allison
Solution found here: https://github.com/mitchellh/vagrant/issues/603#issuecomment-13791117 All I needed was to add '-n' to the ssh invocation and it works perfectly. On Mon, Mar 18, 2013 at 3:45 PM, Mark Allison mark.alli...@thebbgroup.orgwrote: On Mon, Mar 18, 2013 at 3:42 PM, llowder

Re: [Puppet Users] Facter Strings to integer.

2013-03-18 Thread Alessandro Ogier
Il 18/03/2013 17:16, ollies...@googlemail.com ha scritto: Hello, If I want to do something like this:- if $::lsbdistrelease = 6.3 { SOMETHING } Do I have to convert lsbdistrelease from a string to a number with an inline template or some such ? Hi, you can use versioncmp(), it's a builtin

[Puppet Users] Re: compute a value at catalog apply-time and use in resources

2013-03-18 Thread mark . allison
A custom fact was the way to go. My fact was hanging because I hadn't supplied '-n' to the ssh invocation. Apologies for the noise. Mark On Monday, March 18, 2013 2:19:14 PM UTC, mark.a...@thebbgroup.org wrote: Hi I'm using vagrant/puppet to create development environments for our team.

Re: [Puppet Users] Hiera 1.2.0-rc2 and deep-merge

2013-03-18 Thread Moses Mendoza
Hey Dan, Thanks for pointing this out! You're totally right. Not only does it require deep_merge, but it also appears to just fail silently if it's not there. We're looking into it now. Cheers, Moses On Mon, Mar 18, 2013 at 7:33 AM, Dan White y...@comcast.net wrote: Stumbled around a bit

Re: [Puppet Users] Hiera 1.2.0-rc2 and deep-merge

2013-03-18 Thread Dan White
I was starting out from the command line, and it ain't so silent there ! https://gist.github.com/linuxdan/5187422 “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin Hobbes) -

Re: [Puppet Users] Hiera 1.2.0-rc2 and deep-merge

2013-03-18 Thread Matthaus Owens
Dan, I think what Moses meant was that Hiera will silently fail to load deep_merge (the LoadError is rescued silently), which makes the later failures more difficult to debug. On Mon, Mar 18, 2013 at 12:09 PM, Dan White y...@comcast.net wrote: I was starting out from the command line, and it

[Puppet Users] Inherit two classes?

2013-03-18 Thread JamieC
Hello, I have a class called website, which requires both httpd and mysqld classes. Without defining it within the site.pp (node section). Is it possible to define that website requires these additions? Such as; class website inherits httpd, mysqld { ... } -- You received this message

Re: [Puppet Users] Re: Redmine upgrade beginning

2013-03-18 Thread Hunter Haugen
Looks like the upvote/downvote buttons are missing. (/red(dit|mine)/ anyone?) -Hunter On Thu, Mar 14, 2013 at 5:41 PM, Eric Sorenson eric.soren...@puppetlabs.com wrote: On Mar 14, 2013, at 5:12 PM, Eric Sorenson eric.soren...@puppetlabs.com wrote: Hi, we're starting the upgrade to

Re: [Puppet Users] Inherit two classes?

2013-03-18 Thread Matthew Burgess
On Mon, Mar 18, 2013 at 7:48 PM, JamieC jamiecresse...@googlemail.com wrote: Is it possible to define that website requires these additions? Such as; class website inherits httpd, mysqld { ... } Yes. Try: class website { ... require = Class['httpd', 'mysqld'] } I personally prefer

Re: [Puppet Users] Can't get past Permission denied error

2013-03-18 Thread Keith Burdis
The master runs as the puppet user not root so try: # chown -R puppet:puppet /etc/puppet - Keith On 14 Mar 2013 15:09, Mike Canty cantyma...@yahoo.com wrote: I am running Centos 6 and was able to install Puppet 3.1.1. However, when trying to run puppet, as root, for the first time, I

Re: [Puppet Users] Facter Strings to integer.

2013-03-18 Thread 尹川51web
thanks ,that's help me, too! On Tue, Mar 19, 2013 at 12:25 AM, Alessandro Ogier alessandro.og...@ieo.euwrote: Il 18/03/2013 17:16, ollies...@googlemail.com ha scritto: Hello, If I want to do something like this:- if $::lsbdistrelease = 6.3 { SOMETHING } Do I have to convert

Re: [Puppet Users] Inherit two classes?

2013-03-18 Thread joe
Better practice is to expose the functionality of those classes through defines or parameterized classes. For instance, use a define like apache::vhost in the puppetlabs/apache module: https://github.com/puppetlabs/puppetlabs-apache/blob/master/manifests/vhost.pp That way, all you have to do