From 5ae434a933a1da6a9f1011780eb6668d3bb3e5a9 Mon Sep 17 00:00:00 2001 From: Keith Whyte Date: Tue, 22 Jun 2021 20:25:58 +0200 Subject: [PATCH] Monitoring: Show all Interface IP addresses --- modules/rhizo_base/templates/get_ip.sh.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/rhizo_base/templates/get_ip.sh.erb b/modules/rhizo_base/templates/get_ip.sh.erb index c8a131b..955cf02 100755 --- a/modules/rhizo_base/templates/get_ip.sh.erb +++ b/modules/rhizo_base/templates/get_ip.sh.erb @@ -5,3 +5,4 @@ if [ "$_IP" == "<%= @protokol_pub_ip %>" ] ;then _IP=`curl -s 10.0.200.100/ip.sh` echo $_IP >> /tmp/my_ip fi +hostname -I | tr " " "\n" >> /tmp/my_ip