UCLOUDNG-349 add ruby_block for editing /etc/hosts

To deal with issue mentioned in UCLOUDNG-349, /etc/hosts file needs to be edited. 
For this task, chef template resource can't be used, so I just used FileEdit util.