Morning Kai,
> If I do that, I get:
> Rendering SLS 'base:mystate' failed: Jinja variable dict object has no
> element 0
>
> This is in my statefile:
> {% set dev_data_uuid = salt['disk.blkid'](dev_data) [0]['UUID'] %}
This below works fine for me - blkid wasn't available on my system but
the following example should
shed some light on how to approach your issue.
{% set dev_data = "/" %}
{% set dev_data_percent = salt['disk.inodeusage']('') %}
/tmp/donkeyballs:
file.append:
- text: |
{{dev_data_percent[dev_data]['free']}}
Give me a shout if you still having problems.
Also check out
http://jinja.pocoo.org/docs/dev/templates/#variables
Cheers,
J.