Skip to content

Commit f1d6262

Browse files
committed
Fix for OpsCode mysql tag v3.0.13
Needed to restart mysql after creating databases.
1 parent 99f35c9 commit f1d6262

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

recipes/mysql-cinder.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
mysql -uroot -p#{node['mysql']['server_root_password']} -e "GRANT ALL PRIVILEGES ON #{node['cinder']['db']['name']}.* TO '#{node['cinder']['db']['username']}'@'localhost' IDENTIFIED BY '#{node['cinder']['db']['password']}';"
99
mysql -uroot -p#{node['mysql']['server_root_password']} -e "GRANT ALL PRIVILEGES ON #{node['cinder']['db']['name']}.* TO '#{node['cinder']['db']['username']}'@'#{node[:cinder][:private_ip]}' IDENTIFIED BY '#{node['cinder']['db']['password']}';"
1010
CODE
11+
notifies :restart, resources(:service => 'mysql'), :immediately
1112
end

recipes/mysql-glance.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
mysql -uroot -p#{node['mysql']['server_root_password']} -e "GRANT ALL PRIVILEGES ON #{node['glance']['db']['name']}.* TO '#{node['glance']['db']['username']}'@'localhost' IDENTIFIED BY '#{node['glance']['db']['password']}';"
99
mysql -uroot -p#{node['mysql']['server_root_password']} -e "GRANT ALL PRIVILEGES ON #{node['glance']['db']['name']}.* TO '#{node['glance']['db']['username']}'@'#{node[:glance][:private_ip]}' IDENTIFIED BY '#{node['glance']['db']['password']}';"
1010
CODE
11+
notifies :restart, resources(:service => 'mysql'), :immediately
1112
end

recipes/mysql-keystone.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
mysql -uroot -p#{node['mysql']['server_root_password']} -e "GRANT ALL PRIVILEGES ON #{node['keystone']['db']['name']}.* TO '#{node['keystone']['db']['username']}'@'localhost' IDENTIFIED BY '#{node['keystone']['db']['password']}';"
99
mysql -uroot -p#{node['mysql']['server_root_password']} -e "GRANT ALL PRIVILEGES ON #{node['keystone']['db']['name']}.* TO '#{node['keystone']['db']['username']}'@'#{node[:keystone][:private_ip]}' IDENTIFIED BY '#{node['keystone']['db']['password']}';"
1010
CODE
11+
notifies :restart, resources(:service => 'mysql'), :immediately
1112
end

recipes/mysql-neutron.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
mysql -uroot -p#{node['mysql']['server_root_password']} -e "GRANT ALL PRIVILEGES ON #{node['neutron']['db']['name']}.* TO '#{node['neutron']['db']['username']}'@'localhost' IDENTIFIED BY '#{node['neutron']['db']['password']}';"
99
mysql -uroot -p#{node['mysql']['server_root_password']} -e "GRANT ALL PRIVILEGES ON #{node['neutron']['db']['name']}.* TO '#{node['neutron']['db']['username']}'@'#{node[:controller][:private_ip]}' IDENTIFIED BY '#{node['neutron']['db']['password']}';"
1010
CODE
11+
notifies :restart, resources(:service => 'mysql'), :immediately
1112
end

recipes/mysql-nova.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
mysql -uroot -p#{node['mysql']['server_root_password']} -e "GRANT ALL PRIVILEGES ON #{node['nova']['db']['name']}.* TO '#{node['nova']['db']['username']}'@'localhost' IDENTIFIED BY '#{node['nova']['db']['password']}';"
99
mysql -uroot -p#{node['mysql']['server_root_password']} -e "GRANT ALL PRIVILEGES ON #{node['nova']['db']['name']}.* TO '#{node['nova']['db']['username']}'@'#{node[:controller][:private_ip]}' IDENTIFIED BY '#{node['nova']['db']['password']}';"
1010
CODE
11+
notifies :restart, resources(:service => 'mysql'), :immediately
1112
end

0 commit comments

Comments
 (0)