Hi!
Running grains['os'] in a target returns always "Fedora" and grains['id'] returns
"dom0". For this reason I cannot branch in my state files for different os templates.
Executing this test in such a targeted state.sls:
test-grains-for-choosing-the-right-template:
test.configurable_test_state:
- name: "grains test"
- changes: True
- result: True
- comment: {{ grains['os'] ~ ", " ~ grains['id'] ~ ", " ~ grains['osfullname'] ~
", " ~ grains['os_family'] }}
returns
grains['os']=Fedora, grains['os']=dom0, grains['osfullname']=Qubes,
grains['osfamily']=RedHat
Any ideas why this happens? How to branch correctly in a state file depending
on the os of the template?
Best, P!
--
You received this message because you are subscribed to the Google Groups
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qubes-users/af4cc3e7-e405-7079-0980-7c6c5c482e00%40gmx.de.