[Puppet Users] Re: Host name lookup failure

2013-03-18 Thread yarlagadda ramya
On Friday, 15 March 2013 14:46:37 UTC+5:30, yarlagadda ramya wrote: > > Hi all, > > I installed puppet agent in one ip in linux..and am trying to connect to > master while installing only..agent is getting installed but its giving > host name look up failure.. > > But i specified the correct ho

[Puppet Users] Re: Host name lookup failure

2013-03-18 Thread yarlagadda ramya
On Friday, 15 March 2013 14:46:37 UTC+5:30, yarlagadda ramya wrote: > > Hi all, > > I installed puppet agent in one ip in linux..and am trying to connect to > master while installing only..agent is getting installed but its giving > host name look up failure.. > > But i specified the correct ho

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

2013-03-18 Thread Felix Frank
Hi, On 03/08/2013 07:54 PM, Chad Huneycutt wrote: > I could, as Brendan suggests, distribute a fact out to all the nodes, > but I worry about the security of that solution since it puts the node > in control of its configuration. I'm currenlty dealing with similar issues for the same security rea

[Puppet Users] setting up default param value to all instances of a specific resource type

2013-03-18 Thread david . eauee
hi, Specifically I would like to have something like top scope resource defaults so as to enforce,... well,... default behaviors across our modules for example, with the exec type: Exec { logoutput => on_failure } However our puppet code base is rather extensive and the responsibility for it

Re: [Puppet Users] Advice on module organization

2013-03-18 Thread jcbollinger
On Saturday, March 16, 2013 9:49:24 AM UTC-5, Ryan Coleman wrote: > > Hi Tom, > > This definitely seems like a job for parameterized classes. This language > feature allows you to define your model while expressing some parameters > (data) that your model will use to modify its behavior. >

[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 currently

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

2013-03-18 Thread mark . allison
Hi I'm using vagrant/puppet to create development environments for our team. Part of the set-up is creating a reverse ssh tunnel between the vagrant box and a central server. I'd like to be able to automatically allocate that port number when 'provision' is run and use it in a couple of resourc

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

2013-03-18 Thread Dan White
Stumbled around a bit until I figured out you need to do this: gem install deep_merge to get it to work ! “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) -- You rece

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

2013-03-18 Thread krish
On Mon, Mar 18, 2013 at 6:24 PM, yarlagadda ramya wrote: > Hi krish.. > > Am able to reach the master through user..and am mentioning down the > debugging results..please do help me in getting a solution.. > > > dnsdomainname: Host name lookup failure > dnsdomainname: Host name lookup failure > d

[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] Re: custom fact works in testing but fails during puppet run

2013-03-18 Thread llowder
On Monday, March 18, 2013 10:26:05 AM UTC-5, mark.a...@thebbgroup.org wrote: > > 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 /vag

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

2013-03-18 Thread Mark Allison
On Mon, Mar 18, 2013 at 3:42 PM, llowder wrote: > Are you running facter and puppet as the same user? > I believe so. In testing I run as user root. During 'puppet apply' (via 'vagrant provision') I believe facter is run as root. I checked this by changing my command to /bin/whoami. That return

Re: [Puppet Users] "Could not find class" hiccups *often* once after manifest/module changes

2013-03-18 Thread christian . le . flamm
Switching to an Apache/Passenger/Rack solution (and dumping WEBrick) seems to solve this problem. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+u

[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 User

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 wrote: > On Mon, Mar 18, 2013 at 3:42 PM, llowder wrote: > >> Are you running fac

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 f

[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.

[Puppet Users] Re: setting up default param value to all instances of a specific resource type

2013-03-18 Thread joe
There's no way to have the defaults in the top scope if you put them in a module. Module implies class, which implies a scope under top scope. Site.pp would be the appropriate place, but keep in mind there is no way to "enforce" these defaults. There's a fairly common practice these days of set

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 wrote: > Stumbled around a bit until I figured out

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) - Ori

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 wrote: > I was starting out from the command line, and it ain't so silent the

[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 b

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 wrote: > On Mar 14, 2013, at 5:12 PM, Eric Sorenson > wrote: > > > Hi, we're starting the upgrade to projects.puppetlabs.com now. There > will be a brief down

Re: [Puppet Users] Inherit two classes?

2013-03-18 Thread Matthew Burgess
On Mon, Mar 18, 2013 at 7:48 PM, JamieC 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 more fine-grained depe

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" 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 get the following >

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 wrote: > 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 lsbdistrelea

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 i