camptocamp / puppet-accounts

11 stars 40 forks source link

Fix puppet error if the account is not yet created #41

Closed Zophar78 closed 5 years ago

Zophar78 commented 8 years ago

Hi there ;) I had an error when pushing accounts through hiera and providing a private key... It generates an error when creating the private key as the user home folder doesn't exist at the time the command is run. It would be better with a require but I don't know how to require a resource from a custom module. At least this patch avoid any errors and deploy the private key at next run.

Tell me what you think about this one... Is it possible to do this with a require?

Zophar78 commented 8 years ago

Well if you can point what's going wrong with CI as well i'll be thankfull. (Well seems to fail on master branch as well so it's not really an issue...)