Ensure mysql root can only connect from localhost
authorYanis Guenane <yguenane@redhat.com>
Tue, 4 Aug 2015 11:05:38 +0000 (13:05 +0200)
committerYanis Guenane <yguenane@redhat.com>
Tue, 4 Aug 2015 11:05:38 +0000 (13:05 +0200)
Currently mysql root user can connect in a passwordless way from :

  * localhost
  * 127.0.0.1
  * ::1
  * <HOSTNAME>

This patch ensures that the mysql root user can connect only from localhost.

Change-Id: If64fd383737c2fbeed4adbe8d98b1f92610956b2

puppet/hieradata/controller.yaml

index 1ae076d..fdbaf71 100644 (file)
@@ -98,6 +98,7 @@ horizon::django_session_engine: 'django.contrib.sessions.backends.cache'
 
 # mysql
 mysql::server::manage_config_file: true
+mysql::server::remove_default_accounts: true
 
 
 tripleo::loadbalancer::keystone_admin: true