Skip to content

Commit

Permalink
fix #28, default weight should be 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Crauwels committed May 24, 2017
1 parent dbf5f46 commit 6e71a8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ Port of the server. Required. Defaults to 3306.
Status of the server. Should be one of the following values: 'ONLINE', 'OFFLINE_SOFT', 'OFFLINE_HARD', 'SHUNNED'. Defaults to 'ONLINE'.

##### `weight`
Weight value of the server. The higher the value, the higher the probability this server will be chosen from the hostgroup. Integer, defaults to 0.
Weight value of the server. The higher the value, the higher the probability this server will be chosen from the hostgroup. Integer, defaults to 1.

##### `compression`
Compression value of the serer. If the value is greater than 0, new connections to that server will use compression. Integer, defaults to 0.
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/type/proxy_mysql_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

newproperty(:weight) do
desc 'the bigger the weight of a server relative to other weights, the higher the probability of the server to be chosen from a hostgroup'
defaultto 0
defaultto 1
newvalue(%r{\d+})
end

Expand Down

0 comments on commit 6e71a8f

Please sign in to comment.