Hi Kris,

On Thursday, April 7, 2016 at 4:21:44 PM UTC-7, KC wrote:
>
>
> rm /files/etc/securetty/*[.='vc/1'] works for one line
> but
> rm /files/etc/securetty/*[.='vc/*'] doesn't appear to iterate for the 
> other vc lines.
>
> Any suggestions?
>

The trick is that you need to tell Augeas that you want to match a glob; in 
your second example, Augeas will look for nodes that have literally 'vc/*' 
in it. This should work:

 rm /files/etc/securetty/*[. =~ glob('vc/*') ]

David

-- 
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/f3e7676f-f958-41f2-96cb-38d29f4474b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to