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")