Hi.

I have 3 custom types, for example A, B, and C.

A and B are build blocks for C. So if there is no A or B, C will fail to
be added. For example:


typeA { 'A':
 ...
 ...
}


typeB { 'B':
 ...
 ...
}

typeC { 'C':
  optionA => 'A',
  optionB => 'B',
}

So, I would have to write the require in this case:

typeC { 'C':
  optionA => 'A',
  optionB => 'B',
  require => [ typeA['A'], typeB['B'] ],
}

But, if the user of my module doesn't specify correct require, typeC
will fail. Should I also write checks for this in the provider of the C
type, or just leave it to fail running extern shell command for managing C?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to