Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

how to make attributes mandatory i.e if not specified puppet should raise exception?

$
0
0
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

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>