Hi,
Following votdev 's advice from thread RE: Request: OMV only partially rewrite /etc/hosts , I created a custom SLS file /srv/salt/omv/deploy/hosts/20perso_hosts2.sls with this content:
Code
{% set hosts = salt['cmd.shell']('cat /etc/hosts2') %}
append_custom_hosts:
file.append:
- name: "/etc/hosts"
- text: {{ hosts }}
Yes, when I run omv-salt stage run deploy hosts (or simply omv-salt stage run all ), I get the error message:
Data failed to compile:----------Rendering SLS 'base:omv.deploy.hosts.20perso_hosts2' failed: could not find expected ':'
What am I doing wrong? Can anybody help?