[Puppet Users] Re: Managing account shells with augeas

2013-11-14 Thread David Lutterkort
On Wednesday, November 13, 2013 11:23:15 AM UTC-8, Bret Wortman wrote: > > Next fun topic for today: our security folks want to change all the > /sbin/nologin and related shells to /dev/null. Augeas seems the perfect > tool for this, but I'm having a devil of a time getting close to something >

Re: [Puppet Users] Re: Managing account shells with augeas

2013-11-14 Thread Bret Wortman
You know what's sad? I looked at setm when I was poking around with augtool, but didn't see any examples using Puppet so I never circled back to it. I ended up writing a shell script with a sed script inside, distributing that using file and then executing it via an exec in refreshonly mode. I'll