Skip to content

Commit

Permalink
Merge pull request sous-chefs#52 from sciurus/read_only
Browse files Browse the repository at this point in the history
Add read_only tunable useful for replication slave servers
  • Loading branch information
Joshua Timberman committed Dec 14, 2012
2 parents 38b3db4 + da21009 commit 3c24adf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions attributes/server.rb
Expand Up @@ -178,6 +178,7 @@

default['mysql']['tunable']['sync_binlog'] = 0
default['mysql']['tunable']['skip_slave_start'] = false
default['mysql']['tunable']['read_only'] = false

default['mysql']['tunable']['log_error'] = nil
default['mysql']['tunable']['log_warnings'] = false
Expand Down
3 changes: 3 additions & 0 deletions templates/default/my.cnf.erb
Expand Up @@ -185,6 +185,9 @@ sync_binlog = <%= node['mysql']['tunable']['sync_binlog'] %>
<%- if node['mysql']['tunable']['skip_slave_start'] %>
skip_slave_start
<%- end %>
<%- if node['mysql']['tunable']['read_only'] %>
read_only = 1
<%- end %>
<%- if node['mysql']['tunable']['transaction-isolation'] %>
transaction-isolation = <%= node['mysql']['tunable']['transaction-isolation'] %>
Expand Down

0 comments on commit 3c24adf

Please sign in to comment.