Your code doesn't actually set the password attribute on the user in the 
defined resource, so it won't be set.

On Wednesday, 29 January 2014 06:33:45 UTC, jyotir bhandari wrote:
>
> Hi 
>
> I have been trying to set password on ubuntu 12.04 which is client. All 
> the neccessary packages of ruby already exists.
>
> Password is not setting up in /etc/shadow. User creation is working just 
> fine.
>
> *init.pp*
>
> class accounts {
>         
>         package {'ruby-shadow': 
>                  name => 'libshadow-ruby1.8', 
>                  ensure => installed,
>                 }
>  
>    @accounts::system { 'demo':
>        comment      => 'demo users',
>        password     => 
> '$6$salt$gUxP.t8.YpGkzSXlD5XOUBFAI7Jeat2pRraF7S2ycm36qprk76ihcTCqtgS3YS/dMk9j0EXIK..ZnVqi5YBKs1',
>        require => Package['ruby-shadow'],
>    }
> }
>
> *system.pp*
>
> define accounts::system ($comment,$password) {
> user { $title:
>        ensure => 'present',
>        shell => '/bin/bash',
>        managehome => true,
>      }
> }
>
>
> Jyotir
>

-- 
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/bb9c2985-27e8-4327-9a7c-2daa252b2650%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to