Safe Haskell | None |
---|
These are the function and data types that are used to define the Puppet native types.
- module Puppet.PP
- ipaddr :: Text -> PuppetTypeValidate
- paramname :: Text -> Doc
- rarray :: Text -> PuppetTypeValidate
- string :: Text -> PuppetTypeValidate
- strings :: Text -> PuppetTypeValidate
- noTrailingSlash :: Text -> PuppetTypeValidate
- fullyQualified :: Text -> PuppetTypeValidate
- fullyQualifieds :: Text -> PuppetTypeValidate
- values :: [Text] -> Text -> PuppetTypeValidate
- defaultvalue :: Text -> Text -> PuppetTypeValidate
- nameval :: Text -> PuppetTypeValidate
- defaultValidate :: HashSet Text -> PuppetTypeValidate
- type PuppetTypeName = Text
- parameterFunctions :: [(Text, [Text -> PuppetTypeValidate])] -> PuppetTypeValidate
- integer :: Text -> PuppetTypeValidate
- integers :: Text -> PuppetTypeValidate
- mandatory :: Text -> PuppetTypeValidate
- mandatoryIfNotAbsent :: Text -> PuppetTypeValidate
- inrange :: Integer -> Integer -> Text -> PuppetTypeValidate
- faketype :: PuppetTypeName -> (PuppetTypeName, PuppetTypeMethods)
- defaulttype :: PuppetTypeName -> (PuppetTypeName, PuppetTypeMethods)
- runarray :: Text -> (Text -> PValue -> PuppetTypeValidate) -> PuppetTypeValidate
Documentation
module Puppet.PP
ipaddr :: Text -> PuppetTypeValidate
rarray :: Text -> PuppetTypeValidate
string :: Text -> PuppetTypeValidate
This checks that a given parameter is a string. If it is a ResolvedInt
or
ResolvedBool
it will convert them to strings.
strings :: Text -> PuppetTypeValidate
values :: [Text] -> Text -> PuppetTypeValidate
Makes sure that the parameter, if defined, has a value among this list.
defaultvalue :: Text -> Text -> PuppetTypeValidate
This fills the default values of unset parameters.
nameval :: Text -> PuppetTypeValidate
defaultValidate :: HashSet Text -> PuppetTypeValidate
This helper will validate resources given a list of fields. It will run
checkParameterList
and then addDefaults
.
type PuppetTypeName = Text
parameterFunctions :: [(Text, [Text -> PuppetTypeValidate])] -> PuppetTypeValidate
Helper that takes a list of stuff and will generate a validator.
integer :: Text -> PuppetTypeValidate
Checks that a given parameter, if set, is a ResolvedInt
. If it is a
PString
it will attempt to parse it.
integers :: Text -> PuppetTypeValidate
mandatory :: Text -> PuppetTypeValidate
Checks that a given parameter is set.
mandatoryIfNotAbsent :: Text -> PuppetTypeValidate
Checks that a given parameter is set unless the resources ensure is set to absent
inrange :: Integer -> Integer -> Text -> PuppetTypeValidate
runarray :: Text -> (Text -> PValue -> PuppetTypeValidate) -> PuppetTypeValidate
Helper function that runs a validor on a PArray