I am using CentOS 6.6 x86_64 
uname -a
Linux puppet.xor.in 2.6.32-504.1.3.el6.x86_64 #1 SMP Tue Nov 11 17:57:25 
UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

On Thursday, 18 December 2014 13:16:44 UTC+5:30, Varun Utagikar wrote:
>
> 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 {
> }
> ###########################################
> node    'hdpnamenode1.xor.in' {
>         include users
>         realize (Users::Virtual ['varun'])
> }
> </snip>
>
> All hostnames can be resolved . I also referenced 
> https://docs.puppetlabs.com/puppet/latest/reference/lang_virtual.html 
>
> Help would be apprciated.
>
> Thanks in Advance
>
> Varun
>

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/43ffce4f-39b9-4b88-b8f8-cad4491ce057%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to