mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-27 02:04:01 -04:00
* move alicloud examples from common example directory to alicloud builder * move amazon examples to amazon builder dir * move examples into ansible provisioner directory * move azure examples to builder dir * move hyperone examples into builder directory * move jdcloud builder examples into builder directory * move tencent cloud examples into the builder directory * move ucloud examples into ucloud builder directory
7 lines
227 B
Bash
7 lines
227 B
Bash
HOSTNAME=`ifconfig eth1|grep 'inet addr'|cut -d ":" -f2|cut -d " " -f1`
|
|
if [ not $HOSTNAME ] ; then
|
|
HOSTNAME=`ifconfig eth0|grep 'inet addr'|cut -d ":" -f2|cut -d " " -f1`
|
|
fi
|
|
hostname $HOSTNAME
|
|
chef-server-ctl reconfigure
|