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

Trigger hostnames

$
0
0
Hello all, I did currently setup a full puppet architecture with a master and some nodes... (classic...) My site.pp looks like that : node default { include plop_infra_common include plop_common_user include plop_common_user::lse ### sudo (make me a sandwich) include plop_common_sudo } ########### Server1 ########### node /^plop-distr3-dev/ { include plop_infra_common include plop_common_user include plop_common_user::lse ### sudo (make me a sandwich) include plop_common_sudo } ########### Server1 ########### node /^plop-distr3-dev/ { include plop_infra_installer ... ... My question is very simple, how can i simplify that ?... since the hostnames are mostly the same except the digit in the middle. I do not know how to organize that when there is a digit in the mid of the hostname. I know how to deal with the digit in the end of it : I can trigger them in that way (it works for me) : node /^plop-distr-dev\d+$/ { if these hostnames were would be like plop-distr-dev1-2-3 and so on.... but it is not the case... Any advice ? Cheers and thank you in advance !

Viewing all articles
Browse latest Browse all 6104

Trending Articles