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 puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to