User Tools

Site Tools


network_stuff:juniper:vqfx:genhost
#!/bin/bash
vagrant ssh-config > ssh-config
echo -e "
[VQFX]
vqfx-re-01 ansible_host=`egrep -A 1 "Host vqfx-re-01" ssh-config | egrep HostName | cut -d' ' -f 4`
vqfx-re-02 ansible_host=`egrep -A 1 "Host vqfx-re-02" ssh-config | egrep HostName | cut -d' ' -f 4`
" > ini/hosts
echo -e "
[VQFX]
vqfx-re-01 ansible_host=`egrep -A 1 "Host vqfx-re-01" ssh-config | egrep HostName | cut -d' ' -f 4`
vqfx-re-02 ansible_host=`egrep -A 1 "Host vqfx-re-02" ssh-config | egrep HostName | cut -d' ' -f 4`
"
network_stuff/juniper/vqfx/genhost.txt · Last modified: by 127.0.0.1