Skip to content

Instantly share code, notes, and snippets.

@damm
Created October 22, 2009 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damm/216399 to your computer and use it in GitHub Desktop.
Save damm/216399 to your computer and use it in GitHub Desktop.
#
# Cookbook Name:: scaffold
# Recipe:: network
#
# Copyright 2009, IGN Entertainment
#
# All rights reserved - Do Not Redistribute
#
execute "set_hostname" do
command "/bin/hostname #{scaffold[:hostname]}.#{scaffold[:fqdn]}"
end
template "/etc/hosts" do
source "network/hosts.rb.erb"
owner "root"
group "root"
mode "644"
# this here could be a remote_file to save processing time... unless you really need it that way...
end
template "/etc/sysconfig/network-scripts/ifcfg-#{scaffold[:network_device]}" do
source "network/ifcfg-dev.rb.erb"
owner "root"
group "root"
mode "644"
end
template "/etc/sysconfig/network" do
source "network/network.rb.erb"
owner "root"
group "root"
mode "644"
end
template "/etc/sysctl.conf" do
source "network/sysctl.conf.rb.erb"
owner "root"
group "root"
mode "644"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment