I’m a little bit stuck with this…
{% set node_name = salt['grains.get']('nodename', '') %}
local_hosts:
host-present:
- ip: 127.0.1.1
- names:
- {{ node_name }}.f.q.d.n
- {{ node_name }}
I get no function declared….
What am I doing wrong?
Regards,
Dirk
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/049a01d86619%244c78cb70%24e56a6250%24%40laurenz.ws.
Thanks, i was so into jinja, that I missed that….
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/CAOafOFKyv3VOCnEKxOHc5TfJAvOsYRQxrL26z5%3D2LtR8fqvX8Q%40mail.gmail.com.