Open philpoore opened 10 years ago
Recipe fails when "HOSTNAME" is not found in "/etc/sysconfig/network" Due to this line file.search_file_replace_line('^HOSTNAME', "HOSTNAME=#{fqdn}") https://github.com/3ofcoins/chef-cookbook-hostname/blob/develop/recipes/default.rb#L64
file.search_file_replace_line('^HOSTNAME', "HOSTNAME=#{fqdn}")
is it possible to "search + replace" or "insert" if that fails...?
Recipe fails when "HOSTNAME" is not found in "/etc/sysconfig/network" Due to this line
file.search_file_replace_line('^HOSTNAME', "HOSTNAME=#{fqdn}")
https://github.com/3ofcoins/chef-cookbook-hostname/blob/develop/recipes/default.rb#L64is it possible to "search + replace" or "insert" if that fails...?