Hey all,
I'm running puppet 2.7.3 on CentOS, and am trying to use the new
create_resources function. I have a class that looks like this:
scp_account($userid, $unixid, $password) {
.....
}
and I'm trying to call it with a hash of parameters like so:
# Create a hash of the scp accounts
$scp_accounts = {
'joe' => {userid => 'joe', unixid => '700', password =>
'$1$sdfasdfasdfasdfsdaf'},
'bob' => {userid => 'bob', unixid => '701', password =>
'$1$asdfsdfsadfasdfsadf'}
}
create_resources('scp_account', $scp_accounts)
However - when I try to run it, I'm getting an error like so:
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Must pass userid to Class[Production_scp_accounts::Scp_account] at
/etc/puppet/modules/production_scp_accounts/manifests/scp_account.pp:1
I'm sure it's user error, but I'm having a hard time figuring out exactly
what I'm doing wrong.
Thanks!
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/PiHuiZtUZQQJ.
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.