add hostname_method as a attribute

Expose hostname_method as an attribute and in diamond.conf.erb