Skip to content

Commit

Permalink
mysql: Do not start SSL connection when bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuchome committed Oct 2, 2017
1 parent cd2652e commit bfc9344
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions chef/cookbooks/mysql/recipes/ha_galera.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
db_connection[:host] = "localhost"
db_connection[:username] = "root"
db_connection[:password] = ""
db_connection[:ssl] = {}

service "mysql-temp start" do
service_name mysql_service_name
Expand Down
3 changes: 2 additions & 1 deletion chef/cookbooks/mysql/recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
db_connection[:host] = "localhost"
db_connection[:username] = "root"
db_connection[:password] = node[:database][:mysql][:server_root_password]
db_connection[:ssl] = {}

unless node[:database][:database_bootstrapped]
database_user "create db_maker database user" do
Expand Down Expand Up @@ -206,7 +207,7 @@
"TRIGGER"
]
provider db_settings[:user_provider]
require_ssl db_connection[:ssl][:enabled]
require_ssl node[:mysql][:ssl][:enabled]
action :grant
only_if { !ha_enabled || CrowbarPacemakerHelper.is_cluster_founder?(node) }
end
Expand Down

0 comments on commit bfc9344

Please sign in to comment.