Created
January 29, 2017 14:18
-
-
Save roidelapluie/da65edcb23419eca203e67cad746a23f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From what I understand, munging is taking user input and transforming it. | |
Let's say Yum repos. | |
yum { | |
'puppetlabs': | |
enable => true, | |
} | |
But then, the yumrepo accepts true, false, 0, 1. | |
The provider says that it has: | |
yum { | |
'puppetlabs': | |
enable => 1, | |
} | |
How would Puppet know that this is the same, without trying to change the resource? | |
What am I missing? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The data type for enable is
Variant[Integer[0,1], Enum[true, false]]
implementation: