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
vim: pkg.installed: {% if grains['os_family'] == 'RedHat' %} - name: vim-enhanced {% elif grains['os'] == 'Debian' %} - name: vim-rt {% endif %}
Because there is no fallback default for anything else, other distros will get an error that looks like:
local:
The state "vim" in sls vim is not formed as a list
The text was updated successfully, but these errors were encountered:
vim_installed: pkg.installed: - name: {% if grains['os_family'] == 'RedHat' %} vim-enhanced {% elif grains['os_family'] == 'Debian' %} vim-rt {% else %} vim {% endif %}
Sorry, something went wrong.
No branches or pull requests
vim:
pkg.installed:
{% if grains['os_family'] == 'RedHat' %}
- name: vim-enhanced
{% elif grains['os'] == 'Debian' %}
- name: vim-rt
{% endif %}
Because there is no fallback default for anything else, other distros will get an error that looks like:
local:
Data failed to compile:
The text was updated successfully, but these errors were encountered: