summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-04-19 12:03:51 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-04-19 12:03:51 -0300
commitfd3b09e8a0732b7683f2658af656f9ad410065f7 (patch)
treecd7653c4aa13dbbeccb7339dab07b86ade3d97a8 /templates
parent33183230a42c1e03a551fa543eb7f80e9cc82d72 (diff)
downloadpuppet-mysql-fd3b09e8a0732b7683f2658af656f9ad410065f7.tar.gz
puppet-mysql-fd3b09e8a0732b7683f2658af656f9ad410065f7.tar.bz2
Set root password for ::1
Diffstat (limited to 'templates')
-rw-r--r--templates/setmysqlpass.sh.erb1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/setmysqlpass.sh.erb b/templates/setmysqlpass.sh.erb
index d2894db..3205e94 100644
--- a/templates/setmysqlpass.sh.erb
+++ b/templates/setmysqlpass.sh.erb
@@ -12,5 +12,6 @@ DEFAULTS="/etc/mysql/debian.cnf"
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';
FLUSH PRIVILEGES;
EOF