Last active
June 29, 2018 13:36
-
-
Save riton/60465618dc174f4816352bc40c6f72c3 to your computer and use it in GitHub Desktop.
Upgrading types and introducing new parameters
This file contains 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
class mymodule { | |
mytype { "title": | |
param1 => "FOO" | |
} | |
} |
This file contains 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
Puppet::Type.newtype(:mytype) do | |
newparam(:param1) do | |
end | |
end |
This file contains 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
class mymodule { | |
mytype { "title": | |
param1 => "FOO", | |
param2 => "BAR" | |
} | |
} |
This file contains 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
Puppet::Type.newtype(:mytype) do | |
newparam(:param1) do | |
end | |
newparam(:param2) do | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment