(inline) On Tue, Dec 05, 2017 at 11:23:32AM -0800, dkoleary wrote: > On Tuesday, December 5, 2017 at 1:10:44 PM UTC-6, Christopher Wood wrote: > > Twofold: > > "fqdn" is usually a puppet fact, I suspect you wouldn't find that if you > grepped your hiera data. Try these as root on any node: > > You are quite right. My attempt to simplify the problem apparently went > awry. > > > puppet lookup --node [1]myhost.me.com --environment production --explain > myclass::someparam > puppet lookup --node [2]myhost.me.com --environment production --explain > fqdn > puppet help lookup | less > > I had tried variations of those all with the same result: > # puppet lookup --environment production --node cl1vinfconf2442.mydom.com > --explain mpiossec:run_ossec > Error: Could not run: Could not find a directory environment named > 'unconfigured' anywhere in the path: /etc/puppetlabs/code/environments. > Does the directory exist? > mpiossec is *definitely* a hiera data entry. > Thanks for the response. I appreciate it.
Quoth your earlier post: "Puppet environments, in my setup, are established via an external node classifier." What does the ENC return for that node? The ENC is listed under the "external_nodes" parameter in /etc/puppetlabs/puppet/puppet.conf, you should be able to run it at the console like "/usr/bin/myenc nodename" sort of thing. The output makes me suspect that the environment is listed as "unconfigured" in your ENC output. Here I typically leave out the --environment parameter, so "puppet lookup" must be consulting the ENC at some point or I'd never find anything. I presume there is no /etc/puppetlabs/code/environments/unconfigured. I notice you are missing a colon in your hiera key, should that be "mpiossec::run_ossec"? The class::param delimiter is two colons. Editorially, it's quite nifty once you get it going, keep at it. > > -- > 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 [3][email protected]. > To view this discussion on the web visit > > [4]https://groups.google.com/d/msgid/puppet-users/818f86f2-027a-487a-a457-593d35944206%40googlegroups.com. > For more options, visit [5]https://groups.google.com/d/optout. > > References > > Visible links > 1. http://myhost.me.com/ > 2. http://myhost.me.com/ > 3. mailto:[email protected] > 4. > https://groups.google.com/d/msgid/puppet-users/818f86f2-027a-487a-a457-593d35944206%40googlegroups.com?utm_medium=email&utm_source=footer > 5. https://groups.google.com/d/optout -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/20171205194953.ucrro2ajfowtdp4v%40iniquitous.heresiarch.ca. For more options, visit https://groups.google.com/d/optout.
