bicep: enable mysql

This commit is contained in:
Oystein Kristoffer Tveit 2023-07-09 23:45:32 +02:00
parent 699569249a
commit 998e66db65
3 changed files with 15 additions and 0 deletions

View File

@ -9,6 +9,7 @@
./services/mysql.nix
./services/postgres.nix
./services/mysql.nix
./services/matrix
];

View File

@ -10,10 +10,21 @@
max_connect_errors = 10000;
};
};
# Note: This user also has MAX_USER_CONNECTIONS set to 3, and
# a password which can be found in /secrets/ildkule/ildkule.yaml
ensureUsers = [{
name = "prometheus_mysqld_exporter";
ensurePermissions = {
"*.*" = "PROCESS, REPLICATION CLIENT, SELECT";
};
}];
};
services.mysqlBackup = {
enable = true;
location = "/var/lib/mysql/backups";
};
networking.firewall.allowedTCPPorts = [ 3306 ];
}

View File

@ -10,6 +10,9 @@ in rec {
postgres = {
inherit (hosts.bicep) ipv4 ipv6;
};
mysql = {
inherit (hosts.bicep) ipv4 ipv6;
};
# Also on bicep
turn = {
ipv4 = pvv-ipv4 213;