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/9fc4d8b4-eed6-4507-baf4-afe8b8d51fa5%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to