Skip to content

Instantly share code, notes, and snippets.

@rajeshapt
Created August 2, 2018 20:47
Show Gist options
  • Save rajeshapt/31dbbe9eded1796c530f961baa7936a4 to your computer and use it in GitHub Desktop.
Save rajeshapt/31dbbe9eded1796c530f961baa7936a4 to your computer and use it in GitHub Desktop.
Chef 12 dns recipe error on line no. 4
Chef::Log.info("****** DNS reconfig ******")
execute 'Configure hostname2' do
command "echo #{node["opsworks"]["instance"]["hostname"]}.#{node["opsworks"]["stack"]["name"]}.domain_name > /etc/hostname"
ignore_failure true
end
template '/etc/sysconfig/network' do
source 'network.erb'
mode '0644'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment