On 9/15/15 12:59 PM, Tim Dunphy wrote:
Hey guys,

  Is there any other way to automate this setting in my.cnf:

server-id=1

So that if the host is db1 it'll get a value of 1, for db2 a value of 2,
for db3 a value of 3 and db4 a value of 4?

Don't bother. Assigning the number manually and incrementally while satisfying to our collective sense of order providers no value whatsoever.

What I would recommend is making it a unique 32 bit number which is all the is necessary via one of these methods.

server_id = <% require 'ipaddr'%><%= IPAddr.new(@ipaddress).to_i %>
server_id = fqdn_rand(2147483647).

Ramin

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/55F87C54.4070404%40badapple.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to