Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set ip = salt['network.interfaces']()['eth0']['inet'][0]['address'] %}
- {% set mac = salt['network.interfaces']()['eth0']['hwaddr'] %}
- {% set gateway = salt['cmd.run']("ifconfig eth0 |grep 'inet addr'| awk '{print $2}'|sed 's/addr://' | cut -d '.' -f1-3") + '.254' %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement