summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-11-03 17:05:28 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-11-03 17:05:28 -0200
commit33183230a42c1e03a551fa543eb7f80e9cc82d72 (patch)
treed0d890950a47d0d4020e59b20e05df2002279d73
parent494241a212d7db9cf576adf9b06c01458e65ecb5 (diff)
downloadpuppet-mysql-33183230a42c1e03a551fa543eb7f80e9cc82d72.tar.gz
puppet-mysql-33183230a42c1e03a551fa543eb7f80e9cc82d72.tar.bz2
Fix template deprecations
-rw-r--r--templates/setmysqlpass.sh.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/setmysqlpass.sh.erb b/templates/setmysqlpass.sh.erb
index 372b513..d2894db 100644
--- a/templates/setmysqlpass.sh.erb
+++ b/templates/setmysqlpass.sh.erb
@@ -10,7 +10,7 @@ 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='<%= @fqdn %>';
UPDATE mysql.user SET Password=PASSWORD('$PASSWORD') WHERE User='root' AND Host='127.0.0.1';
FLUSH PRIVILEGES;
EOF