diff --git a/README.markdown b/README.markdown index 95549ecb..74d128ff 100644 --- a/README.markdown +++ b/README.markdown @@ -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. diff --git a/lib/puppet/type/proxy_mysql_server.rb b/lib/puppet/type/proxy_mysql_server.rb index d30ece52..c7be5d0f 100644 --- a/lib/puppet/type/proxy_mysql_server.rb +++ b/lib/puppet/type/proxy_mysql_server.rb @@ -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