I'm creating a custom type something like xyz and I want to make some attributes mandatory. its attributes are name, ipaddress and store. if ipaddress and store are not specified puppet should raise exception.
for example : if given puppet apply -e 'xyz { "name":}' then puppet should raise exception saying ipaddress and store not specified.
I have done research but no use, I didnt find solution this anywhere. please understand me and help me out
Thank you
↧