Skip to content

Commit 11f5b34

Browse files
Strip all three first digits of IP address for server ID, regardless of value.
1 parent 1d9cfe5 commit 11f5b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

icpc-wf/ansible/files/mysql.replication.cnf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ log-bin = /var/log/mysql/mysql-bin.log
88
binlog_do_db = domjudge
99

1010
# Host specific replication configuration
11-
server_id = {{ ansible_default_ipv4.address | regex_replace('^10\.3\.3\.', '') }}
11+
server_id = {{ ansible_default_ipv4.address | regex_replace('^10\.\d+\.\d+\.', '') }}

0 commit comments

Comments
 (0)