This is what I would like to do.
define normal_user($fullname, $groups) {
$username = $name
user { "$username" :
ensure => present,
allowdupe => false,
shell => '/bin/bash',
home => "/home/${username}",
gid => $username,
groups => $groups,
comment => $fullname,
managehome => true,
}
if exists("puppet://modules/users/${username}.bashrc") { # This is
the important line
file { "/home/${username}/.bashrc":
ensure => present,
source => "puppet://modules/users/${username}.bashrc"
}
}
normal_user { "joe":
fullname => "Joe Hillenbrand",
groups => ["admin"]
}
--
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.