We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We have salt 2019.2.0:
# salt --version salt 2019.2.0 (Fluorine)
/srv/pillar/stack/httpd.yml has:
/srv/pillar/stack/httpd.yml
# cat /srv/pillar/stack/httpd.yml {% load_yaml as httpd_definitions %} web_servers: enable: true default: enable: false {% endload %} {% set httpdnew = __salt__['pillar.filter_by'](httpd_definitions, pillar='roles') %} httpdold: {% if (pillar.get('roles') and ('web_servers' in pillar.get('roles'))) %} enable: true {% endif %} httpdnew: {{ httpdnew | json() }} # salt <id> pillar.items httpdnew: ---------- enable: False httpdold: ---------- enable: True roles: - web_servers - dev_web_servers
Why isn't __salt__['pillar.filter_by'] working? I would expect httpdnew.enable=True, the same as httpdold.enable.
__salt__['pillar.filter_by']
httpdnew.enable=True
httpdold.enable
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We have salt 2019.2.0:
/srv/pillar/stack/httpd.yml
has:Why isn't
__salt__['pillar.filter_by']
working? I would expecthttpdnew.enable=True
, the same ashttpdold.enable
.The text was updated successfully, but these errors were encountered: