I have a custom fact (creationkey) which gives me the AWS Creation key name (this is also a local linux user account). I'm trying to use that fact with the rvm module.
https://forge.puppetlabs.com/maestrodev/rvm/readmervm::system_user { bturner: ; jdoe: ; jsmith: ; }
I've tried the following:
rvm::system_user { ::creationkey: ; }
rvm::system_user { ::$creationkey: ; }
rvm::system_user { ::${creationkey}: ; }
They all give this error:
Error: Could not create user $creationkey: Execution of
'/usr/sbin/useradd -M $creationkey' returned 3: useradd: invalid user
name '$creationkey'
I tried:
$user = ::creationkey
rvm::system_user { $user: ; }
But that is not working either.
PS the creationkey fact does work as expected on the instances, its just using it to populate the variable what is failing.
Cheers,