Skip to content

Instantly share code, notes, and snippets.

@riton
Last active June 29, 2018 13:36
Show Gist options
  • Save riton/60465618dc174f4816352bc40c6f72c3 to your computer and use it in GitHub Desktop.
Save riton/60465618dc174f4816352bc40c6f72c3 to your computer and use it in GitHub Desktop.
Upgrading types and introducing new parameters
class mymodule {
mytype { "title":
param1 => "FOO"
}
}
Puppet::Type.newtype(:mytype) do
newparam(:param1) do
end
end
class mymodule {
mytype { "title":
param1 => "FOO",
param2 => "BAR"
}
}
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