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