Use full IPv4 address to generate MariaDB server_id.

The old method skiped the scond octet resulting in possible
server_id clashes between eqiad and codfw. Eventually it would
hurt in some surprising way.

Change-Id: I28e87927d072a93caefe0d4fe7c3b4a585b017e8