Hey;

Never mind, I reasoned this one out on my own.  The whole point of hiera is 
to be able to override lower level configurations with ones higher up in 
the hierarchy, so while a cool idea, this definitely won't work. 

On to plan B.

Thanks

Doug

On Wednesday, June 8, 2016 at 7:32:37 PM UTC-5, dkoleary wrote:
>
> Hey;
>
> I'm planning out a module to handle syslog config in my environment.  I 
> know there are modules on puppet forge already but am interested in the 
> learning opportunity.  .
>
> Here's the scenario:
>
> * The syslog config files will all be the same except for forwarders.
> * We have three datacenters whose hosts forward to a DC specific collector.
> * Production systems and select others also foward to a SIEM
> * DMZ systems forward to a third collector in addition to the previous two.
>
> This seems like a template would work well here.  Don't know what that 
> would look like yet but there are plenty of examples on the net.  I'm 
> curious how about hiera interaction - specifically multiple remote 
> collectors specified.
>
> Here's my hierarchy:
>
> :hierarchy:
>   - "hosts/%{facts.hostname}"
>   - "environments/%{facts.environment}"
>   - "host_env/%{facts.env}"
>   - "dc/%{facts.dc}"
>   - "os/%{facts.osfamily}"
>   - common
>
> in the appropriate dc.yaml file, I'm planning on:
>
> ---
> dolsyslog::remote: '1.2.3.4'
>
> Similar set up in hosts_env/prd.yaml
>
> ---
> dolsyslog::remote: '2.3.4.5'
>
> DMZ and specific hosts will be set up in the hosts hieradata directory.
>
> So. long build up to a relatively short question.  Can a template be made 
> to iterate across multiple remotes identified like that?  It seems like 
> it'd be too good to be true but worth the question.  If my suspicion is 
> correct, is there a better way to work this?
>
> Thanks for your time and help.
>
> Doug O'Leary
>

-- 
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/6ba8f598-3a27-4ce6-ac31-7c9f14f612c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to