1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Longer explanation restored, injected by lineinfile into mariadb.service each time, re: MariaDB's 180s timeout for slow boots

This commit is contained in:
A Holt 2019-07-03 14:36:42 -04:00 committed by GitHub
parent fe629f7b4b
commit ef4622bf8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,11 +106,13 @@
path: /etc/systemd/system/mariadb.service path: /etc/systemd/system/mariadb.service
insertafter: '^\[Service\]$' insertafter: '^\[Service\]$'
regexp: "^TimeoutStartSec=" regexp: "^TimeoutStartSec="
line: "TimeoutStartSec=180" line: "\n# 2019-07-03: @jvonau @holta doubled MariaDB's default boot timeout 90s to 180s\n# for slow machines like this Ubuntu 18.04.2 VM:\n# https://github.com/iiab/iiab/issues/1802\n# https://mariadb.com/kb/en/library/what-to-do-if-mariadb-doesnt-start/#systemd\nTimeoutStartSec=180\n"
# LINE BELOW WOULD BE NICE...BUT ANSIBLE POLLUTES EACH TIME :( # If the line above were to be run repeatedly (never happens here!) Ansible
# Hence Ansible's 'blockinfile', but this pollutes config files in its own # would pollute MariaDB's systemd unit file. As multi-line regexp's are
# way. Still, it might be nec in future, so config files are *READABLE* ! # not allowed (both regexp's should match, for idempotency). If nec, use
#line: "\n# 2019-07-03: @jvonau @holta doubled the default boot timeout from 90s to 180s\n# for slow machines like this Ubuntu 18.04.2 VM:\n# https://github.com/iiab/iiab/issues/1802\n# https://mariadb.com/kb/en/library/what-to-do-if-mariadb-doesnt-start/#systemd\nTimeoutStartSec=180" # the 1-liner below, or Ansible's 'blockinfile' which pollutes config files
# in its own way...surrounding blocks with marker lines.
# line: "TimeoutStartSec=180"
when: mariadb_unit_file.stat.exists when: mariadb_unit_file.stat.exists