Hey Felix

I tried realizing the user via :

Users::Virtual<| title == 'varun' |> and also with
realize Users::Virtual['varun']

but to no avail.

I put a notify in my manifest but it gives no significant o/p help just :

/etc/puppetlabs/puppet/modules/users/manifests/init.pp
<snip>
class users {
        notify { 'Adding User varun' : }
        @users::virtual::localuser { '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>

Any idea to what mistake am I doing ?

Thanks
Varun

On Thursday, 18 December 2014 14:52:17 UTC+5:30, Felix.Frank wrote:
>
> On 12/18/2014 10:18 AM, Felix Frank wrote: 
> >>         realize (Users::Virtual ['varun']) 
>
> Oh I just noticed - are you using parser=future now? 
>
> I seem to recall a comment from Erik that the space in the resource 
> reference is a problem now, i.e. 
>
> Users::Virtual ['varun'] # wrong 
>
> vs 
>
> Users::Virtual['varun']  # right 
>
> ...but I might have that wrong altogether. 
>
> HTH, 
> Felix 
>

-- 
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/5c04d787-1a19-4681-b124-15aa605608b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to