Bug ID | 964445 |
---|---|
Summary | salt grains : os_family and osrelease_info |
Classification | openSUSE |
Product | openSUSE Distribution |
Version | Leap 42.1 |
Hardware | Other |
OS | Other |
Status | NEW |
Severity | Major |
Priority | P5 - None |
Component | Other |
Assignee | bnc-team-screening@forge.provo.novell.com |
Reporter | osynge@suse.com |
QA Contact | qa-bugs@suse.de |
Found By | --- |
Blocker | --- |
If you make an SLS file as such: {% if grains['os_family'] == 'Suse' %} {% if grains['osrelease_info'].0 == '42' %} /etc/zypp/repos.d/home_osynge_vmcatcher.repo: file: - managed - source: - salt://jenkins-swarm/home:osynge:vmcatcher.repo - user: root - group: root - mode: 600 - makedirs: False {% endif %} {% endif %} {% if grains['os'] == 'openSUSE Leap' %} {% if grains['osrelease_info'].0 == '42' %} /etc/zypp/repos.d/home_osynge_vmcatcher.repo: file: - managed - source: - salt://jenkins-swarm/home:osynge:vmcatcher.repo - user: root - group: root - mode: 600 - makedirs: False {% endif %} {% endif %} {% if grains['os'] == 'openSUSE Leap' %} /etc/zypp/repos.d/home_osynge_vmcatcher.repo: file: - managed - source: - salt://jenkins-swarm/home:osynge:vmcatcher.repo - user: root - group: root - mode: 600 - makedirs: False {% endif %} It should error as duplicate states as all these filters match on LEAP. SO the bugs are that {% if grains['os_family'] == 'Suse' %} Does not work on LEAP. and that {% if grains['osrelease_info'].0 == '42' %} Does not work on LEAP. Corresponding solutions work for redhat closes such as Scientific Linux.