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
↧