I have a puppet custom type in /etc/puppet/modules/tipo/lib/puppet/type/customtipo.rb which contents are:
require 'logger'
Puppet::Type.newtype(:customtipo) do
newproperty(:parametro) do
log.info("ES UN PARAMETRO")
end
end
I know that is a dummy custom type but I'm starting with this sort of things, the resource is placed in /etc/puppet/modules/tipo/manifests/init.pp which contents are:
class tipo {
customtipo {
"ejemplo":
parametro => "uno",
}
}
The case is whether is a "parametro" or not it doesn't show the message "ES UN PARAMETRO" as I could expect. Is there some other way to achieve this using a custom type? Thanks!