camptocamp / puppet-accounts

11 stars 40 forks source link

What does this code do? #42

Open igalic opened 8 years ago

igalic commented 8 years ago

The current (d5c30cf) accounts::authorized_key define

  validate_hash($::accounts::ssh_keys)

  # Retrieve $ssh_keys and $users in the current scope
  $ssh_keys = $::accounts::ssh_keys
  $users    = $::accounts::users

$ssh_keys and $users is never used in the code below. $::accounts::ssh_keys itself could be validated in init.pp, rather than on each invocation of accounts::authorized_key

mcanevet commented 8 years ago

IIRC it's required for strformat()