Hi Toky,

On Fri, Jun 19, 2015 at 12:16 PM, Toky <[email protected]> wrote:

> 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}: ; }
>

I think you're looking for $::creationkey, e.g. 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
> <https://groups.google.com/d/msgid/puppet-users/b21e2e16-c077-4c87-897c-3d550e9fcf85%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Join us at **PuppetConf 2015, October 5-9 in Portland, OR - *www.
<http://www.google.com/url?q=http%3A%2F%2Fwww.&sa=D&sntz=1&usg=AFQjCNEnS7itqgvQV3E4Se1fu4Um_UapSw>
2015.puppetconf.com
<http://www.google.com/url?q=http%3A%2F%2F2015.puppetconf.com&sa=D&sntz=1&usg=AFQjCNE1uQL4Sh23Vr-XkPLa4xfNcoXSog>

*Register early to save 40%!*

-- 
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/CACZQQfMBdN1oOBwxxYPp4_jTgWmgxpvYLRdzjhUdUQcFovL21Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to