Created
August 2, 2018 20:47
-
-
Save rajeshapt/31dbbe9eded1796c530f961baa7936a4 to your computer and use it in GitHub Desktop.
Chef 12 dns recipe error on line no. 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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