From 6ce973827642b628834c044f457b4f37deea8ad1 Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Tue, 17 Feb 2015 15:06:53 +0530 Subject: [PATCH] hide mysql password --- ee/cli/plugins/stack.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index 68e7f36c..01da2512 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -94,14 +94,24 @@ class EEStackController(CementBaseController): keyserver="keyserver.ubuntu.com") chars = ''.join(random.sample(string.ascii_letters, 8)) Log.debug(self, "Pre-seeding MySQL") + Log.debug(self, "echo \"percona-server-server-5.6 " + "percona-server-server/root_password " + "password \" | " + "debconf-set-selections") EEShellExec.cmd_exec(self, "echo \"percona-server-server-5.6 " "percona-server-server/root_password " "password {chars}\" | " - "debconf-set-selections".format(chars=chars)) + "debconf-set-selections".format(chars=chars), + log=False) + Log.debug(self, "echo \"percona-server-server-5.6 " + "percona-server-server/root_password_again " + "password \" | " + "debconf-set-selections") EEShellExec.cmd_exec(self, "echo \"percona-server-server-5.6 " "percona-server-server/root_password_again " "password {chars}\" | " - "debconf-set-selections".format(chars=chars)) + "debconf-set-selections".format(chars=chars), + log=False) mysql_config = """ [client] user = root