Hi,
I searching for a way to check grains['hostname'] with a like comparator by *-wildcard
{% if grains['host'] == 'vm-www-server-101' %}
apache2:
pkg:
- installed
{% endif %}
Works. But I want something like
{% if grains['host'] like|contains '*-www-server-*' %}
apache2:
pkg:
- installed
{% endif %}
I think it's so easy that I've lost it during reading the how to's..
-- Tom