camptocamp / puppet-accounts

11 stars 40 forks source link

Using this module in RedHat Satellite. #25

Open xpz25nfh opened 8 years ago

xpz25nfh commented 8 years ago

Hello,

I am very new to puppet and grasping how things work. I downloaded V1.7.0 and imported it into Satellite. I have attached a screen shot as to what I see.

Shouldn't what I have circled in the image say 'account' not 'accounts'? If I try to use 'accounts' as documented, it doesn't work. I keep seeing this message:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter user1 on Accounts::Account[account] on node myserver.com Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

Checking 'init.pp':

`# See README.md for details. class accounts( $groups = {}, $groups_membership = undef, $ssh_keys = {}, $users = {}, $usergroups = {}, $accounts = {}, <--- Should this be 'account'? Not 'accounts'? $start_uid = undef, $start_gid = undef, $purge_ssh_keys = false, $ssh_authorized_key_title = '%{ssh_key}-on-%{account}', $shell = undef, ) { include ::accounts::config

create_resources(group, $groups)

create_resources(accounts::account, $accounts)

Remove users marked as absent

$absent_users = keys(absents($users)) user { $absent_users: ensure => absent, } }`

capture