#cloud-config
hostname: apachevdu
password: osm2021
chpasswd: { expire: False }
ssh_pwauth: True

runcmd:
 - ip=$(ifconfig | grep -A 1 "ens3" | tail -1 | cut -d ":" -f 2 | cut -d " " -f 1)
 - sudo -S sed -i "/Active web server VDUs in this VNF/d" /var/www/html/index.php
 - sudo -S sed -i "/OSM!/a\   echo \'<p> Data Serving From ${ip} <\/p>\';" /var/www/html/index.php
