Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I get hostname from grains :
- {% set host_server = salt['grains.get']('host') %}
- I have some IP in pillar with this model :
- vm_eth0:
- redis1: 192.168.1.215
- I want to match Pillar like this using hostname from $host_server:
- eth0:
- network.managed:
- - enabled: True
- - type: eth
- - proto: none
- - ipaddr: {{ salt['pillar.get']['vm_eth0'](host_server) }}
- Thanks for helping
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement