[go: nahoru, domu]

Skip to content
New issue

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 state only addresses RedHat and Debian, not Ubuntu (or anyone else) #17

Open
techhat opened this issue Sep 28, 2012 · 1 comment
Open

Comments

@techhat
Copy link
Contributor
techhat commented Sep 28, 2012

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 state "vim" in sls vim is not formed as a list
@ljluestc
Copy link
vim_installed:
  pkg.installed:
    - name: {% if grains['os_family'] == 'RedHat' %}
             vim-enhanced
           {% elif grains['os_family'] == 'Debian' %}
             vim-rt
           {% else %}
             vim
           {% endif %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants