This repository has been archived on 2025-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
Files
salt-pillar/base/hostconfig/init.sls

8 lines
322 B
Plaintext

{% if salt['grains.get']('host') | regex_match('.*[0-9][0-9]') %}
{% set canonical_name = salt['grains.get']('host') | regex_replace('[0-9]', '', ignorecase=True) %}
{% include './' + canonical_name + '.sls' ignore missing %}
{% endif %}
{% include './' + salt['grains.get']('host') + '.sls' ignore missing %}