I finally got to give this a whirl and it worked beautifully!  Thanks again 
for your advice (as well as for exposing me to a feature I wasn't aware 
of), Ian, and have a great day!

On Sunday, January 18, 2015 at 8:01:30 PM UTC-6, ianm wrote:
>
> On Fri, 2015-01-16 at 08:27 -0800, Barry Gestwicki wrote: 
>
> > 
> > 3.) Augeas / Type - This seems to be my best option thus far. 
> > However, I've ran in to a bit of a snag in how to get an array to work 
> > with Augeas resource declarations within a defined type.  When I 
> > execute the sample code below, what I get is an entire "blob" where my 
> > resulting line in /etc/hosts.allow is something like "sshd: 
> > 1.1.1.2.2.2.3.3.3.", instead of the desired and expected end-result of 
> > "sshd: 1.1.1., 2.2.2., 3.3.3.".   
> > 
> You could assemble your augeas changes in a template and pass the result 
> to augeas with: 
>
>    changes => template('tcpwrappers/hosts.allow.erb') 
>
> (I don't use that for tcpwrappers but I do for other modules. 
> The call to a template will be slower but you can assemble 
> a complex set of augeas changes more easily and combine all 
> the changes for a file into one augeas resource.) 
>
>
> -- 
> Ian 
>

-- 
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/f75fe045-03dc-42d5-a095-d17b3a260912%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to