aboutsummaryrefslogtreecommitdiff
path: root/modules/private/databases/mariadb_replication.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-12-07 15:40:15 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-12-07 15:40:15 +0100
commit6015a3b52c3b155ac444aeb39950c38a5e653101 (patch)
tree47ab7a69ddeaedab40a20b0c5cb8a7cc98b0f1f1 /modules/private/databases/mariadb_replication.nix
parentdded66995529a0419cc56778f4ebb4247c2ab765 (diff)
downloadNix-6015a3b52c3b155ac444aeb39950c38a5e653101.tar.gz
Nix-6015a3b52c3b155ac444aeb39950c38a5e653101.tar.zst
Nix-6015a3b52c3b155ac444aeb39950c38a5e653101.zip
Add mysql and redis monitoring
Diffstat (limited to 'modules/private/databases/mariadb_replication.nix')
-rw-r--r--modules/private/databases/mariadb_replication.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/private/databases/mariadb_replication.nix b/modules/private/databases/mariadb_replication.nix
index 5f97e84..52a34d3 100644
--- a/modules/private/databases/mariadb_replication.nix
+++ b/modules/private/databases/mariadb_replication.nix
@@ -114,6 +114,17 @@ in
114 password = ${hcfg.dumpPassword} 114 password = ${hcfg.dumpPassword}
115 ''; 115 '';
116 } 116 }
117 {
118 dest = "mysql_replication/${name}/client";
119 permissions = "0400";
120 user = "mysql";
121 group = "mysql";
122 text = ''
123 [client]
124 user = ${hcfg.dumpUser}
125 password = ${hcfg.dumpPassword}
126 '';
127 }
117 ]) cfg.hosts); 128 ]) cfg.hosts);
118 129
119 services.cron = { 130 services.cron = {