Re: [Puppet Users] Re: puppet 3 hiera configs hiding somewhere

2013-03-28 Thread Keith Burdis
Yes, perhaps try:

  # chown -R puppet:puppet /etc/puppet /var/lib/puppet

  - Keith
On 28 Mar 2013 05:27, Nick Fagerlund nick.fagerl...@puppetlabs.com
wrote:



 On Wednesday, March 27, 2013 6:22:05 PM UTC-7, Philip Brown wrote:


 nope, nothing.
 I tried your suggestion of explicitly setting it.
 It gets ignored.


 Oh wait, I just had another idea. File ownership/permissions? If you wrote
 it as root and it's only accessible to root, puppet master will have a
 problem, since it drops permissions to the puppet user once it gets
 started.

 --
 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+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: puppet 3 hiera configs hiding somewhere

2013-03-28 Thread Keith Burdis
On 28 Mar 2013 01:22, Philip Brown p...@bolthole.com wrote:

 On Wed, Mar 27, 2013 at 2:10 PM, Nick Fagerlund
 nick.fagerl...@puppetlabs.com wrote:
...
 to keith's suggestion, of

 Also you can use the hiera command-line utility [1] to test - for
example:
 
   # hiera --debug philcheck::value

 That doesnt quite work as-is, eh?
 Because I need to know how to set the client hostname,

You could use:

  # hiera --debug philcheck:value hostname=$(facter hostname)

  - Keith

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: puppet 3 hiera configs hiding somewhere

2013-03-28 Thread Philip Brown
On Thu, Mar 28, 2013 at 12:42 AM, Keith Burdis ke...@burdis.org wrote:

 That doesnt quite work as-is, eh?
 Because I need to know how to set the client hostname,

 You could use:

   # hiera --debug philcheck:value hostname=$(facter hostname)


Thank you! That, along with -c /etc/puppet/hiera.yaml, helped debug
some syntax errors.

but that was not the problem.
THE PROBLEM was...

puppetmaster was started with /etc/puppet/hiera.yaml not existing.
Apparently, it only reads it at startup.
So, as soon as I restarted it for debug purposes... it started
working as I expected it to.
Lol?

Thanks to everyone for all the suggestions

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: puppet 3 hiera configs hiding somewhere

2013-03-27 Thread Philip Brown
On Wed, Mar 27, 2013 at 2:10 PM, Nick Fagerlund
nick.fagerl...@puppetlabs.com wrote:

 First off, check Puppet's hiera_config setting
 (http://docs.puppetlabs.com/references/3.1.1/configuration.html#hieraconfig)
 -- is there a value in your puppet.conf?

nope, nothing.
I tried your suggestion of explicitly setting it.
It gets ignored.
Would be real nice if there was some way to strace the puppetmaster
demon doing its thing for a client!


 Next, double-check the syntax of your hiera.yaml file.
 (http://docs.puppetlabs.com/hiera/1/configuring.html) Are you forgetting the
 leading colon on :hierarchy:?

Here it is --

#
# Apparently, this file is NOT CHECKED
#
---
:backends:
  - yaml
:yaml:
  :datadir: /etc/puppet/hieradata
:hierarchy:
  - %{hostname}



to keith's suggestion, of

Also you can use the hiera command-line utility [1] to test - for example:

  # hiera --debug philcheck::value

That doesnt quite work as-is, eh?
Because I need to know how to set the client hostname,
Plus it's not pulling in whatever puppet is setting it to. It's
pulling from /etc/yaml.conf if I call it that way.

If I call it with -c /etc/puppet/hiera.yaml, it passes the syntax
check. and even loads the value I expect.
So it's not a matter of a syntax error making the thing default, either. sigh...

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: puppet 3 hiera configs hiding somewhere

2013-03-27 Thread Nick Fagerlund


On Wednesday, March 27, 2013 6:22:05 PM UTC-7, Philip Brown wrote:



 nope, nothing. 
 I tried your suggestion of explicitly setting it. 
 It gets ignored. 


Weird. I'm out of ideas at this point.
 

 Would be real nice if there was some way to strace the puppetmaster 
 demon doing its thing for a client! 


You might try:
- stop the puppet master service
- in a console, run puppet master --no-daemonize --verbose --debug

That will let you see everything in real time, with extra debug logging 
turned on. It might get you somewhere. You'll need to reduce the agent load 
coming at it (or work on a set of dev systems), of course. 

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: puppet 3 hiera configs hiding somewhere

2013-03-27 Thread Nick Fagerlund


On Wednesday, March 27, 2013 6:22:05 PM UTC-7, Philip Brown wrote:


 nope, nothing. 
 I tried your suggestion of explicitly setting it. 
 It gets ignored. 


Oh wait, I just had another idea. File ownership/permissions? If you wrote 
it as root and it's only accessible to root, puppet master will have a 
problem, since it drops permissions to the puppet user once it gets 
started.  

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.