Merge "Update mariadb confs and ports"
This commit is contained in:
commit
b36abefd8f
@ -3,6 +3,7 @@
|
||||
command: docker exec -t kolla_ansible /usr/bin/ansible localhost
|
||||
-m mysql_db
|
||||
-a "login_host='{{ database_address }}'
|
||||
login_port='{{ mariadb_port }}'
|
||||
login_user='{{ database_user }}'
|
||||
login_password='{{ database_password }}'
|
||||
name='{{ service_database_name }}'"
|
||||
@ -15,6 +16,7 @@
|
||||
command: docker exec -t kolla_ansible /usr/bin/ansible localhost
|
||||
-m mysql_user
|
||||
-a "login_host='{{ database_address }}'
|
||||
login_port='{{ mariadb_port }}'
|
||||
login_user='{{ database_user }}'
|
||||
login_password='{{ database_password }}'
|
||||
name='{{ service_database_name }}'
|
||||
|
@ -16,13 +16,11 @@ defaults
|
||||
|
||||
listen mariadb
|
||||
mode tcp
|
||||
option mysql-check user haproxy
|
||||
option tcpka
|
||||
|
||||
# TODO(SamYaple): Make DB port configurable throughout Ansible
|
||||
bind {{ kolla_internal_address }}:3306
|
||||
option mysql-check user haproxy
|
||||
bind {{ kolla_internal_address }}:{{ mariadb_port }}
|
||||
{% for host in groups['mariadb'] %}
|
||||
server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:3306 check inter 2000 rise 2 fall 5 {% if not loop.first %}backup{% endif %}
|
||||
server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_port }} check inter 2000 rise 2 fall 5 {% if not loop.first %}backup{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
command: docker exec -t kolla_ansible /usr/bin/ansible localhost
|
||||
-m mysql_db
|
||||
-a "login_host='{{ database_address }}'
|
||||
login_port='{{ mariadb_port }}'
|
||||
login_user='{{ database_user }}'
|
||||
login_password='{{ database_password }}'
|
||||
name='{{ keystone_database_name }}'"
|
||||
@ -15,6 +16,7 @@
|
||||
command: docker exec -t kolla_ansible /usr/bin/ansible localhost
|
||||
-m mysql_user
|
||||
-a "login_host='{{ database_address }}'
|
||||
login_port='{{ mariadb_port }}'
|
||||
login_user='{{ database_user }}'
|
||||
login_password='{{ database_password }}'
|
||||
name='{{ keystone_database_name }}'
|
||||
|
@ -4,7 +4,7 @@ project_name: "mariadb"
|
||||
####################
|
||||
# Database
|
||||
####################
|
||||
database_cluster_name: "kolla"
|
||||
database_cluster_name: "openstack"
|
||||
|
||||
|
||||
####################
|
||||
|
@ -3,6 +3,7 @@
|
||||
command: docker exec -t kolla_ansible /usr/bin/ansible localhost
|
||||
-m mysql_user
|
||||
-a "login_host='{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}'
|
||||
login_port='{{ mariadb_port }}'
|
||||
login_user='{{ database_user }}'
|
||||
login_password='{{ database_password }}'
|
||||
name='haproxy'
|
||||
|
@ -1,17 +1,20 @@
|
||||
[mysqld]
|
||||
bind-address={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
|
||||
port={{ mariadb_port }}
|
||||
|
||||
binlog_format=ROW
|
||||
default-storage-engine=innodb
|
||||
innodb_autoinc_lock_mode=2
|
||||
query_cache_size=0
|
||||
query_cache_type=0
|
||||
innodb_log_file_size=48M
|
||||
|
||||
wsrep_cluster_address=gcomm://{% if (groups['mariadb'] | length) > 1 %}{% for host in groups['mariadb'] %}{{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_wsrep_port }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}
|
||||
|
||||
wsrep_provider_options="gmcast.listen_addr=tcp://{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_wsrep_port }};ist.recv_addr={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_ist_port }}"
|
||||
|
||||
wsrep_node_address={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_wsrep_port }}
|
||||
wsrep_sst_receive_address={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ mariadb_sst_port }}
|
||||
|
||||
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
|
||||
wsrep_cluster_address=gcomm://{% if (groups['mariadb'] | length) > 1 %}{% for host in groups['mariadb'] %}{{ hostvars[host]['ansible_hostname'] }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}
|
||||
|
||||
wsrep_cluster_name="{{ database_cluster_name }}"
|
||||
wsrep_node_address={{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
|
||||
wsrep_node_name={{ ansible_hostname }}
|
||||
wsrep_sst_method=xtrabackup-v2
|
||||
wsrep_sst_auth={{ database_user }}:{{ database_password }}
|
||||
|
@ -23,6 +23,11 @@ node_config_directory: "/opt/kolla/config"
|
||||
# the different services. This prevents setting the ports in the defaults for
|
||||
# each role.
|
||||
|
||||
mariadb_port: "3306"
|
||||
mariadb_wsrep_port: "4567"
|
||||
mariadb_ist_port: "4568"
|
||||
mariadb_sst_port: "4444"
|
||||
|
||||
rabbitmq_port: "5672"
|
||||
rabbitmq_management_port: "15672"
|
||||
rabbitmq_cluster_port: "25672"
|
||||
|
Loading…
Reference in New Issue
Block a user