Feature #21813
closedPuppet import of parameter types in classes
Description
it would be really helpful when importing classes from a smart proxy environment that not only the classes but also the attribute/parameter types would imported with it.
e.g chrony module. when setting the paramter values for a host group for example you get this error
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Class[Chrony]:
parameter 'client_allow' expects a Boolean value, got String
parameter 'client_sources' expects a value of type Undef or Array, got String
parameter 'package_manage' expects a Boolean value, got String
parameter 'pool_use' expects a Boolean value, got String
parameter 'pool_maxservers' expects an Integer value, got String
parameter 'pool_iburst' expects a Boolean value, got String
parameter 'servers' expects an Array value, got String
parameter 'service_enable' expects a Boolean value, got String
parameter 'service_manage' expects a Boolean value, got String on node
you have then to manually set the types in smart parameters to boolean or other types.
if a module has type specifications then please import them with it.