I am so sorry Felix I was experimenting with different methods My manifest is as below (ignore ::localuser)
/etc/puppetlabs/puppet/modules/users/manifests/init.pp <snip> class users { notify { 'Adding User varun' : } @users::virtual { 'varun': uid => 1002, pass => '$1$Qrt51$JpQOHlU9lMpthG9U5dWiG.', name => 'admin', } } </snip> o/p snip <snip> Debug: Executing '/sbin/chkconfig pe-mcollective' Notice: Adding User varun Notice: /Stage[main]/Users/Notify[Adding User varun]/message: defined 'message' as 'Adding User varun' Debug: /Stage[main]/Users/Notify[Adding User varun]: The container Class[Users] will propagate my refresh event Debug: Class[Users]: The container Stage[main] will propagate my refresh event Debug: Finishing transaction 42629900 </snip> Am sorry for the goof up :( On Friday, 19 December 2014 15:17:40 UTC+5:30, Felix.Frank wrote: > > On 12/19/2014 05:08 AM, Varun Utagikar wrote: > > > > Any idea to what mistake am I doing ? > > Well, kind of. > > The code you posted originally was not accurate, apparently, for you are > actually declaring a virtual resource of type users::virtual::localuser > - this cannot ever be realized by a users::virtual collector. > -- 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/c4b59ec2-d452-4560-80d6-060aca28a658%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.