The learning process
#cloud-config runcmd: - addr=$(ip -4 -o addr|grep -v '127.0.0.1'|awk '{print $4}'|cut -d '/' -f 1) - echo $addr `hostname` >> /etc/hosts
No comments:
Post a Comment