Skip to content

Instantly share code, notes, and snippets.

@dodizzle
Created December 8, 2011 00:05
Show Gist options
  • Save dodizzle/1445419 to your computer and use it in GitHub Desktop.
Save dodizzle/1445419 to your computer and use it in GitHub Desktop.
cookbook_file "/etc/init.d/set_hostname" do
if node['dmi']['system']['manufacturer'] == "Dell Inc."
source_file = "set_hostname-physical"
else
source_file = "set_hostname"
end
source = source_file
owner "root"
group "root"
mode "0755"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment