Re: [openstack-dev] [puppet] Match type checking from oslo.config.

2015-11-05 Thread Sofer Athlan-Guyot
Hunter Haugen writes: >> Ouha! I didn't know that property could have parent class defined. >> This is nice. Does it work also for parameter ? > > I haven't tried, but property is just a subclass of parameter so > truthy could probably be made a parameter then become a

Re: [openstack-dev] [puppet] Match type checking from oslo.config.

2015-11-04 Thread Hunter Haugen
> Ouha! I didn't know that property could have parent class defined. > This is nice. Does it work also for parameter ? I haven't tried, but property is just a subclass of parameter so truthy could probably be made a parameter then become a parent of either a property or a parameter. > > The

Re: [openstack-dev] [puppet] Match type checking from oslo.config.

2015-11-04 Thread Sofer Athlan-Guyot
Hunter Haugen writes: > I have some code that is similar to this in the F5 and Netscaler > modules. I make a generic "truthy" property that accepts various > truthy/falsy values >

Re: [openstack-dev] [puppet] Match type checking from oslo.config.

2015-11-03 Thread Hunter Haugen
I have some code that is similar to this in the F5 and Netscaler modules. I make a generic "truthy" property that accepts various truthy/falsy values ( https://github.com/puppetlabs/puppetlabs-netscaler/blob/master/lib/puppet/property/netscaler_truthy.rb) then just define that as the parent of the

Re: [openstack-dev] [puppet] Match type checking from oslo.config.

2015-11-02 Thread Cody Herriges
Sofer Athlan-Guyot wrote: > Hi, > > The idea would be to have some of the types defined oslo config > http://git.openstack.org/cgit/openstack/oslo.config/tree/oslo_config/types.py > ported to puppet type. Those that looks like good candidates are: > - Boolean; > - IPAddress; > and in a lesser

[openstack-dev] [puppet] Match type checking from oslo.config.

2015-10-20 Thread Sofer Athlan-Guyot
Hi, The idea would be to have some of the types defined oslo config http://git.openstack.org/cgit/openstack/oslo.config/tree/oslo_config/types.py ported to puppet type. Those that looks like good candidates are: - Boolean; - IPAddress; and in a lesser extend: - Integer; - Float; For