22 May
2020
22 May
'20
06:01
Hello Tobias, Am 20.05.20 um 19:37 schrieb Tobias Crefeld:
I have the vague idea that this happens because this grain-item-matching is only allowed at top.sls but as there is no access to top.sls using Uyuni's WebUI I wonder how this could be done with the WebUI?
you are right, matching in the way you are using it will only work in top.sls You can use jinja within states to achieve that: {% if salt.grains.get('host') == 'server01' %} ...your state data... {% endif %} Cheers Stefan -- Stefan Bogner Linux / Unix Consultant & Trainer Tel: +491608463534 Mail: bogner@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537