puppet/modules/rhizo_base/templates/get_ip.sh.erb
2021-06-01 01:28:29 +02:00

7 lines
176 B
Text
Executable file

#!/bin/bash
_IP=`curl -s api.ipify.org`
echo $_IP > /tmp/my_ip
if [ "$_IP" == "<%= @protokol_pub_ip %>" ] ;then
_IP=`curl -s 10.0.200.100/ip.sh`
echo $_IP >> /tmp/my_ip
fi