Created
October 22, 2009 22:25
-
-
Save damm/216399 to your computer and use it in GitHub Desktop.
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
# | |
# 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