Trying to get the grain info into a file on the disk of the target system (good IMO for the repetetive style of debugging runs):
[CRITICAL] Rendering SLS 'base:cassandra.raid' failed: Unknown yaml render error; line 7
---
[...]
# as an option, too.
/tmp/disks:
file.append:
- text: |
{'ami': 'sda1', 'root': '/dev/sda1', 'ephemeral0': 'sdb'}
<======================
---
peter.norton-generic-vagrant:
- Rendering SLS 'base:cassandra.raid' failed: Unknown yaml render error; line 7
-
- ---
- [...]
- # as an option, too.
- /tmp/disks:
- file.append:
- - text: |
- {'ami': 'sda1', 'root': '/dev/sda1', 'ephemeral0': 'sdb'}
- <======================
- ---
The state that's causing this is really simple:
# This recipe could be invoked selecively via targeting at the top
# as an option, too.
{% set ec2 = salt['grains.get']('ec2') -%}
/tmp/disks:
file.append:
- text: |
{{ ec2.block_device_mapping }}
The run is invoked via salt-ssh:
salt-ssh -l info host -i --roster-file host-roster --priv key state.sls cassandra.raid