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

puppet wildcard case $hostname

$
0
0
Hi, I would like create a class that says if your hostname includes the letters 'rob', it will assign a class to it. For example: class it_default { case $hostname { '*rob*': { include robikun_base } } } I have servers that called: SRV-Roben-01 Roben-02 IT-Roben10 I want to create a case for them and make the class file clean and simple and not putting all hostnames on the module file. 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>