I've written a define to replace the shell of system accounts with /
dev/null:

define preventLogin2systemaccts (){
  user{ $title:
    shell => "/dev/null" ,
  }
}

Invoking this define like this works:

$systemAccts = ["daemon", "bin"]
preventLogin2systemaccts{  $systemAccts  : }

However, I'd like to dynamically generate an array of system accounts
with UIDs < 500 (and UID != 0).

I tried

  $systemAccts = generate("/etc/puppet/scripts/
list.system.accounts.sh" )

but, no matter how the output of this script is formatted, it doesn't
work.

I'm a newbie.  Should this approach work?  Am I missing something
here?  Is there a better approach?

  -bonobo

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to