Set hostname_method from pillar