Hi,

IMHO the best way will be to develop a small fact that indicates whether
it's a prod or non-prod environment and use it in the ressource to select
the right password :

user {"my-user":
  ensure => present,
  password => $yourfact ? {
    'prod' => 'production-password',
    'non-prod' => 'non-production-password',
  },
  ...
}

Note that the fact used for the selection could be also the hostname of the
server or anything other that can determine if it's a prod or non-prod
environment.

Cheers,
Mathieu

On Fri, Jun 18, 2010 at 5:50 AM, Marek Dohojda <[email protected]> wrote:

> Hello
>
> Is there any way to have a user with two different passwords.
>
> I have a user that is present in our prod and non prod environments.
> However the password for non-prod is different than prod.  Anyway I can
> arrange that in puppet?
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<puppet-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to