[openstack-dev] [puppet] Match type checking from oslo.config.
sathlang at redhat.com
Tue Oct 20 11:17:22 UTC 2015
The idea would be to have some of the types defined oslo config
ported to puppet type. Those that looks like good candidates are:
and in a lesser extend:
For instance in puppet type requiring a Boolean, we may test
"/[tT]rue|[fF]alse/", but the real thing is :
TRUE_VALUES = ['true', '1', 'on', 'yes']
FALSE_VALUES = ['false', '0', 'off', 'no']
all this being case insensitive.
This can lead to discrepancies when checking if the resource is in_sync
for instance, as it could be saved as "1" and we would check for "true".
IPAddress could/should be use in puppet-neutron for instance to catch
Eventually, this would be a library of types that could be included,
using a mixin in any type/provider and that would define the:
Float and Integer are very easy to make and I put them for completeness.
Any other types could be included there as well.
This point was raised during the last meeting
More information about the OpenStack-dev