From b892e171b8e257a4a25ece88b8744e5f4435f0cc Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Thu, 25 Apr 2019 12:05:48 +0200 Subject: [PATCH] add python3-mysqldb for netdata --- wo/cli/plugins/stack.py | 4 ++++ wo/core/variables.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/wo/cli/plugins/stack.py b/wo/cli/plugins/stack.py index 1f2b330..5b29844 100644 --- a/wo/cli/plugins/stack.py +++ b/wo/cli/plugins/stack.py @@ -1522,6 +1522,10 @@ class WOStackController(CementBaseController): 'kickstart-static64.sh', '/tmp/kickstart.sh', 'Netdata']] + if not WOAptGet.is_installed(self, 'python3-mysqldb'): + Log.debug( + self, "Setting apt_packages variable for Fail2ban") + apt_packages = apt_packages + WOVariables.wo_netdata # WordOps Dashboard if self.app.pargs.dashboard: diff --git a/wo/core/variables.py b/wo/core/variables.py index 68fab32..6b2556f 100644 --- a/wo/core/variables.py +++ b/wo/core/variables.py @@ -162,6 +162,8 @@ class WOVariables(): wo_fail2ban = "fail2ban" + wo_netdata = "python3-mysqldb" + # Redis repo details if wo_platform_distro == 'ubuntu': wo_redis_repo = ("ppa:chris-lea/redis-server")