summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-07 15:32:49 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-07 15:32:49 -0200
commitdebde9c11b55b92b9712802f7abc7916ef6dc24b (patch)
tree022cff30b3420938f16d6da7b92706541f4d0008 /templates
parent8eb9e4305af20ff73ea4838a6a675d9a1a742b28 (diff)
downloadpuppet-mysql-debde9c11b55b92b9712802f7abc7916ef6dc24b.tar.gz
puppet-mysql-debde9c11b55b92b9712802f7abc7916ef6dc24b.tar.bz2
Password field rename to authentication_string in some implementations
Diffstat (limited to 'templates')
-rw-r--r--templates/setmysqlpass.sh.erb8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/setmysqlpass.sh.erb b/templates/setmysqlpass.sh.erb
index 3205e94..6e700f6 100644
--- a/templates/setmysqlpass.sh.erb
+++ b/templates/setmysqlpass.sh.erb
@@ -9,9 +9,9 @@ DEFAULTS="/etc/mysql/debian.cnf"
# Run
/usr/bin/mysql --defaults-file=$DEFAULTS <<EOF
-UPDATE mysql.user SET Password=PASSWORD('$PASSWORD') WHERE User='root' AND Host='localhost';
-UPDATE mysql.user SET Password=PASSWORD('$PASSWORD') WHERE User='root' AND Host='<%= @fqdn %>';
-UPDATE mysql.user SET Password=PASSWORD('$PASSWORD') WHERE User='root' AND Host='127.0.0.1';
-UPDATE mysql.user SET Password=PASSWORD('$PASSWORD') WHERE User='root' AND Host='::1';
+UPDATE mysql.user SET <%= @password_string %>('$PASSWORD') WHERE User='root' AND Host='localhost';
+UPDATE mysql.user SET <%= @password_string %>('$PASSWORD') WHERE User='root' AND Host='<%= @fqdn %>';
+UPDATE mysql.user SET <%= @password_string %>('$PASSWORD') WHERE User='root' AND Host='127.0.0.1';
+UPDATE mysql.user SET <%= @password_string %>('$PASSWORD') WHERE User='root' AND Host='::1';
FLUSH PRIVILEGES;
EOF