Created
January 10, 2014 14:41
-
-
Save thomascate/8355358 to your computer and use it in GitHub Desktop.
undo dedicated
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_file "/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6" do | |
source "RPM-GPG-KEY-CentOS-6" | |
owner "root" | |
group "root" | |
mode "0644" | |
end | |
template "/etc/yum.repos.d/CentOS-Base.repo" do | |
source "CentOS-Base.repo.erb" | |
owner "root" | |
group "root" | |
mode "0644" | |
end | |
execute "reset_clock" do | |
command "(/sbin/hwclock --systohc; /etc/init.d/syslog restart; /etc/init.d/crond restart)" | |
action :nothing | |
end | |
cookbook_file "/etc/localtime" do | |
source "localtime" | |
owner "root" | |
group "root" | |
mode "0644" | |
action :create | |
end | |
template "/etc/sysconfig/clock" do | |
source "clock.erb" | |
owner "root" | |
group "root" | |
mode "0644" | |
notifies :run, "execute[reset_clock]", :immediately | |
end | |
#cleanup packages that dedicated kick brings in | |
cleanup_packages = [ | |
"httpd", | |
"mysql", | |
"vsftpd", | |
"sles-release", | |
"rhncfg", | |
"dovecot" | |
] | |
cleanup_packages.each do | package_name | | |
package package_name do | |
action :remove | |
end | |
end | |
package "centos-release" do | |
action :install | |
end | |
directory "/etc/sysconfig/rhn" do | |
action :delete | |
recursive true | |
end | |
execute "remount-devshm" do | |
command "mount -o remount,exec /dev/shm" | |
action :run | |
end | |
execute "remount-tmp" do | |
command "mount -o remount,exec /tmp" | |
action :run | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment