[Puppet Users] Re: removing "minimum_uid=1000" value from all my pam config files

2017-04-04 Thread Peter K
Oh, yeah, and this goes into the site.pp: Exec { path => '/bin/:/sbin/:/usr/bin/:/usr/sbin/' } ### This helps with ... ### exec resources (like researchpattern) so you don't need to specify binary paths for debian/redhat -- You received this message because you are subscribed to

[Puppet Users] Re: removing "minimum_uid=1000" value from all my pam config files

2017-04-04 Thread Peter K
@jcbollinger: Thank you so much. Sometimes when you've been looking at code a while you just can't see the obvious. I started with code you created in another post and finished it with your help. Here's the finished code: class replacepattern { define replace($file,$pattern,$newstring){

[Puppet Users] Re: removing "minimum_uid=1000" value from all my pam config files

2017-03-31 Thread John Gelnaw
On Thursday, March 30, 2017 at 1:58:46 PM UTC-4, Peter K wrote: > > I'm trying to remove a specific configuration value, "minimum_uid=1000", > from multiple lines in several files (currently 5 files) in /etc/pam.d/. > A typical line looks like this: > auth [success=1 default=ignore]

[Puppet Users] Re: removing "minimum_uid=1000" value from all my pam config files

2017-03-31 Thread jcbollinger
On Thursday, March 30, 2017 at 12:58:46 PM UTC-5, Peter K wrote: > I've tried exec and sed, but I couldn't figure out the necessary escaping > to get the filename variable to parse (here I test with 'abc'): > define removeMinimumUID(){ > exec { '${filename}': > command =>