[Puppet Users] custom type/provider how to validate parameters are configured together

2015-03-13 Thread Stanley Karunditu
building a custom type/provider and it has a set of parameters that need to be configured together. so if you set param A, you need to set param B,C,D. Validation should produce an error if this condition is not met. anyone know of a puppet module that does this so I can learn how to do this?

Re: [Puppet Users] Re: custom type/provider how to validate parameters are configured together

2015-03-13 Thread Stanley Karunditu
://github.com/fatmcgav/fatmcgav-glassfish/blob/develop/lib/puppet/type/authrealm.rb#L96-L99 for an example of a seperate validate block... HTH Gav On Friday, 13 March 2015 13:25:14 UTC, Stanley Karunditu wrote: building a custom type/provider and it has a set of parameters that need

[Puppet Users] question about using custom types and defined types together

2015-03-05 Thread Stanley Karunditu
Hello, I'm new to puppet and puppet module writing and kindly request your help. My understanding of proper puppet module practices is still young. Being tasked to write a puppet module for a utility that configures interfaces on a cumulus switch. there are 3 main types of interfaces -