Hi Danny,

You should 'include' your main class (zabbix) before, or even inside your 
sub-classes, else nothing tells you in which order they will be declared, 
and apparently classes like zabbix::client::service DO require the 
parameters set in your main class.

Something like that should work:
       
class zabbix::client::service inherits zabbix::params {   # ensure the main 
class is declared
  include ::zabix

  if ($client_startagents != '0' and $client_server == '') {    fail("Your 
StartAgents cannot be greater than 0 or null when Server is also null. Set 
StartAgents to 0 or set Server.")  }
...


Toni

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5cae315d-d735-4a64-af43-8e8f56915a2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to