I added the script file of setting a hostname from ipaddress for chef-client.