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

How do you pass a parameter to a class when including it in a node definition?

$
0
0
Hi, I'm trying to do something like: \#\#site.pp node /^srv-es-master-(\d+)$/ { $node_type = 'master' include es_node($node_type) } node /^srv-es-client-(\d+)$/ { $node_type = 'client' include es_node($node_type) } \#\#es_node.pp class es_node (String $node_type) { ... } But I have no idea what the syntax is and can't seem to find it in the docs. Thanks

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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