On Tuesday, September 8, 2015 at 4:49:22 PM UTC-5, Todd C wrote: > > I'm in the process of refactoring our puppet to make use of r10k, hiera > and roles/profiles, as seems to be the suggested methodology these days. > > I've successfully got the ericsson/motd and puppetlabs/apt modules up and > running and configured with appropriate with hiera, doing what I want in > various environments. > > I'm trying (so far unsuccessfully) to use hiera to configure this module ( > https://forge.puppetlabs.com/jgazeley/ossec). r10k is configured to pull > in the ossec module and dependencies (which it has). > > I'm simply attempting to set the ossec_server_ip parameter in the > ossec::client class, but all I ever get is a "Must pass ossec_server_ip to > Class[Ossec::Client]..." error. I get this from running a "puppet agent > --test--noop" on an agent or running a puppet apply directly on the module. > I feel like this should be incredibly simple and that I'm just missing > something completely obvious. >
Are you certain that the apt and motd classes are correctly receiving their parameters from Hiera? If their definitions happen to provide default values for all parameters, then a failure to look up parameter values in hiera would not cause catalog building to fail for them. It could be that Hiera is misconfigured, so that it's not providing *any* data. Have you restarted the master since last updating the data? I'm never sure any more what exactly Puppet caches, or when, but you can ensure that its caches are flushed by restarting the master (the service, not necessarily the whole machine). Have you looked in the master's logs for diagnostics that might be relevant? John -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/58342373-0607-44ec-a2d8-83ef3bf5c9c5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.