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/readme

rvm::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,

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b21e2e16-c077-4c87-897c-3d550e9fcf85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to