Re: [Puppet Users] running a program and returning the value

2013-11-16 Thread Rich Burroughs
Yeah I'm with John. I don't know what your use case is, but if you want to make sure that user's UID is set to a certain value, that's a great task for Puppet's user management. Manage the user in a manifest and set the UID, and Puppet will make sure it's set to that value each time the agent runs.

Re: [Puppet Users] List of all Hiera data for a particular host/puppet run?

2013-11-16 Thread Rich Burroughs
This would be a pretty awesome feature. I think the hard part about something like a script is that different hosts may have different classes applied. You could also make a big ERB template with all the known Hiera variables in it and just have it generate a file somewhere on your filesystem. I'm

Re: [Puppet Users] List of all Hiera data for a particular host/puppet run?

2013-11-16 Thread Tony Hays
Thanks for the quick reply. Thought of that as I was typing up the question. I guess my goal is to try and use the info that is already in the puppet run, and try to tease out this info into a separate report. I mean it is building this list somewhere in the catalog, I just don't know enough abo

Re: [Puppet Users] frustrating dependency problem

2013-11-16 Thread Dan White
Don’t pound on yourself Been there, done that. Glad I could help. :D On Nov 16, 2013, at 4:03 PM, Jay Christopherson wrote: > oh damn. can't believe I missed that. > > > On Sat, Nov 16, 2013 at 11:59 AM, Dan White wrote: > Rename the file “services.pp” to "myservice.pp” to match the defin

Re: [Puppet Users] List of all Hiera data for a particular host/puppet run?

2013-11-16 Thread Dan White
Knee-jerk-reaction response: Make a shell script of hiera command line calls with the host name as an input to the shell script. On Nov 16, 2013, at 3:20 PM, Tony Hays wrote: > Quick question for the gurus out there, I have searched a bit but haven't > seen a topic that seems to fit... > > I

Re: [Puppet Users] frustrating dependency problem

2013-11-16 Thread Jay Christopherson
oh damn. can't believe I missed that. On Sat, Nov 16, 2013 at 11:59 AM, Dan White wrote: > Rename the file “services.pp” to "myservice.pp” to match the defined type > > On Nov 16, 2013, at 1:52 PM, Jay Christopherson > wrote: > > I'm having a difficult time with a dependency issue. Basically

[Puppet Users] List of all Hiera data for a particular host/puppet run?

2013-11-16 Thread Tony Hays
Quick question for the gurus out there, I have searched a bit but haven't seen a topic that seems to fit... I have a fairly nested Hiera hierarchy. I was wondering if there was a way of displaying/outputing/reporting on all of the substitutions that have been made during a particular puppet ru

Re: [Puppet Users] frustrating dependency problem

2013-11-16 Thread Dan White
Rename the file “services.pp” to "myservice.pp” to match the defined type On Nov 16, 2013, at 1:52 PM, Jay Christopherson wrote: > I'm having a difficult time with a dependency issue. Basically, I want to be > able to call a defined type, but it's not working out so far. I have my > manifes

[Puppet Users] Re: frustrating dependency problem

2013-11-16 Thread Jay Christopherson
There is a typo in the example class - "ensure => running" doesn't apply to a package... sorry if that creates any confusion. On Sat, Nov 16, 2013 at 10:52 AM, Jay Christopherson wrote: > I'm having a difficult time with a dependency issue. Basically, I want to > be able to call a defined type,

[Puppet Users] frustrating dependency problem

2013-11-16 Thread Jay Christopherson
I'm having a difficult time with a dependency issue. Basically, I want to be able to call a defined type, but it's not working out so far. I have my manifests setup like this: init.pp: class foo { } bar.pp: class foo::bar { include foo package{ "test": e

[Puppet Users] site.pp Does include work inside a node definition?

2013-11-16 Thread Puppet Muppet
Hi, Is it possible to use Include as I have done below, inside my node statement? I'm guessing not as it's not working :) Any ideas how I get my test.pp manifest so that it only applys to my puppetagent001? #site.pp node 'puppetagent001' { include test file {'/tmp/puppet-test-node-def':

[Puppet Users] add classes returns coonection in console

2013-11-16 Thread Raj kumar V
Problem loading console auth middleware: cannot load such file -- console_auth_middleware Problem with loading console: cannot load such file -- console_middleware Problem with loading console auth: cannot load such file -- console_auth_app_middleware Problem with loading event inspector: cannot

[Puppet Users] connection error in console UI

2013-11-16 Thread Raj kumar V
When I click Add Class, I am seeing We found these classes on your system [image: Notice] [image: Failed]Connection error. We could not find classes on your master. Does your puppet master allow querying resource types? Don't see a class? [image: Notice] Type in a class to add What should I fix?

Re: [Puppet Users] puppdb connection refused

2013-11-16 Thread Raj kumar V
2 things. I dont know which one solved it. I dont know why I have to give the fqdn name in the jetty.ini file for the ssl host I ran the puppetdb ssl from /opt/puppet/sbin/puppetdb-ssl-setup . Dont know why it is in opt dir On Friday, 15 November 2013 22:22:38 UTC+5:30, Ken Barber wrote: > >