On Tuesday, March 11, 2014 7:08:45 AM UTC-5, Mark deJong wrote:
>
>
>  I'm having the issue with the passwd::user accepting the schedule 
> metaparameter. I have tried it both with and without define the variable 
> 'schedule.'
>
>

The thing that jumps out at me right away is that you are declaring your 
own $schedule parameter to your class and defined type.  All Puppet classes 
and resource types, including defined types, have that [meta]parameter 
automatically, without you declaring it.  It may be that by declaring it 
explicitly you are shadowing the metaparameter with an ordinary parameter 
of the same name.

Additionally,

   - class passwd::schedule should not inherit from class passwd.  It 
   yields no benefit whatsoever for the code presented, and it creates a 
   circular evaluation dependency involving those two classes (which Puppet 
   nevertheless seems to handle successfully).
   - a schedule has no effect of its own on catalog application, therefore 
   it is useless (but also harmless) to include class passwd::schedule in your 
   relationship chain.  It would be sufficient to just declare it without 
   chaining.


John

-- 
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/ce17151e-8eec-4b11-872b-0d68868199b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to