diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2025-03-28 22:04:58 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2025-03-28 22:04:58 -0400 |
commit | 0bc898160b57b69bb766c97f25a5b9545eb91ee3 (patch) | |
tree | de0c5a537f2696c09257666268cd5b02d9ce87b1 /scripts/hostclass/mysql_server | |
parent | 45f11dbe7efc2d6d4661b3a21d83fd0e0a5deb06 (diff) | |
download | infrastructure-0bc898160b57b69bb766c97f25a5b9545eb91ee3.tar.gz |
Diffstat (limited to 'scripts/hostclass/mysql_server')
-rw-r--r-- | scripts/hostclass/mysql_server | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/hostclass/mysql_server b/scripts/hostclass/mysql_server index d8edad6..33edded 100644 --- a/scripts/hostclass/mysql_server +++ b/scripts/hostclass/mysql_server @@ -61,7 +61,13 @@ install_template -m 0644 "${mysql_conf_dir}/conf.d/server.cnf" sysrc -v mysql_enable=YES service mysql-server restart +# Create the boxconf superuser. cat <<EOF | mysql --batch CREATE USER IF NOT EXISTS '${boxconf_username}' IDENTIFIED VIA pam; GRANT ALL PRIVILEGES ON *.* to '${boxconf_username}' WITH GRANT OPTION; EOF + +# Create icinga user. +cat <<EOF | mysql --batch +CREATE USER IF NOT EXISTS '${icinga_username}' IDENTIFIED VIA pam; +EOF |