On 01/18/2013 08:33 PM, Jeff Thomas wrote:
but that runs the "ypmatch" on the client, which isn't useful. Then I
found the "generate" function, but apparently "generate" can be called
with only one argument (spaces are excluded from the characters
"generate" will take). I tried:
user { $username:
...
password => generate("/path/getuserpasswd.sh $username"),
...
}
but that gets an error due to the space (getuserpaswd.sh is just a shell
script that does the ypmatch expecting $1 to be the username).
Have you tried:
password => generate('/path/getuserpasswd.sh', $username),
--
Jakov Sosic
www.srce.unizg.hr
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-users@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.