I have used a simple fact to (very) naively determine "real" users. It runs on
each client:
$ cat localusers.rb
Facter.add("localusers") do
setcode do
%x{USERS=`/bin/getent passwd | /bin/grep /home | /bin/awk -F: \'{print
$1}\'`; echo $USERS | sed -e \'s/ /,/g\'}.chomp
end
end
And is then accessed in Puppet like so:
$users = split($localusers, ",")
provision_user { $users: }
Cheers.
--
bdha
cyberpunk is dead. long live cyberpunk.
--
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.