Skip to content

Instantly share code, notes, and snippets.

@dcampano
Created February 18, 2011 19:45
Show Gist options
  • Save dcampano/834281 to your computer and use it in GitHub Desktop.
Save dcampano/834281 to your computer and use it in GitHub Desktop.
template "/etc/my.cnf" do
innodb_buffer_pool_size = "256M"
if node.attributes?("ec2")
case node[:ec2][:instance_type]
when "t1.micro"
innodb_buffer_pool_size = "256M"
when "m1.large"
innodb_buffer_pool_size = "5G"
end
end
source "my.cnf.erb"
mode 0644
variables(
:server_id => IO.readlines('/etc/mysql-server-id','').to_s
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment