Hello All
I could successfully declare and realize virtual users in PE 3.2.3. I am now testing the same with PE 3.7.0. Unfortunately the user is not being realized and I am getting no warnings/errors.
I am pasting a snippet of my module manifests :
/etc/puppetlabs/puppet/modules/users/manifests/init.pp
<snip>
class users {
@users::virtual { 'varun':
uid => 1002,
pass => '$1$Qrt51$JpQOHlU9lMpthG9U5dWiG.',
name => 'admin',
}
}
</snip>
/etc/puppetlabs/puppet/modules/users/manifests/virtual.pp
<snip>
define users::virtual ($uid,$name,$pass) {
user { $title:
ensure => 'present',
uid => $uid,
gid => $title,
shell => '/bin/bash',
home => "/home/${title}",
comment => $name,
password => $pass,
managehome => true,
}
}
</snip>
/etc/puppetlabs/puppet/manifests/nodes/hdpnamenode1.pp
<snip>
node default {
}
###########################################
include users
realize (Users::Virtual ['varun'])
}
</snip>
Help would be apprciated.
Thanks in Advance
Varun