Fixed haproxy and my.cnf config files. Also tried to fix mysql password variables
This commit is contained in:
@@ -12,9 +12,9 @@
|
|||||||
action: shell mysql -e "CREATE USER 'haproxy_check'@'%'; FLUSH PRIVILEGES;"
|
action: shell mysql -e "CREATE USER 'haproxy_check'@'%'; FLUSH PRIVILEGES;"
|
||||||
|
|
||||||
- name: Set up user for wrestlingtourney
|
- name: Set up user for wrestlingtourney
|
||||||
action: shell mysql -e "CREATE USER 'heroku_jcw'@'%' IDENTIFIED BY '$heroku_jcw_password';GRANT ALL PRIVILEGES ON wrestlingtourney.* TO 'heroku_jcw'@'%'; FLUSH PRIVILEGES;"
|
action: shell mysql -e "CREATE USER 'heroku_jcw'@'%' IDENTIFIED BY '{{ heroku_jcw_password }}';GRANT ALL PRIVILEGES ON wrestlingtourney.* TO 'heroku_jcw'@'%'; FLUSH PRIVILEGES;"
|
||||||
|
|
||||||
- name: set mysql root password
|
- name: set mysql root password
|
||||||
action: shell mysql -e "UPDATE mysql.user SET password=PASSWORD('$root_mysql_password') where user='root'; FLUSH PRIVILEGES;"
|
action: shell mysql -e "UPDATE mysql.user SET password=PASSWORD('{{ root_mysql_password }}') where user='root'; FLUSH PRIVILEGES;"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ max_binlog_size = 100M
|
|||||||
|
|
||||||
# Galera settings
|
# Galera settings
|
||||||
wsrep_cluster_name=wrestlingdev
|
wsrep_cluster_name=wrestlingdev
|
||||||
wsrep_cluster_address=gcomm://{% for host in groups['db'] %}{{ hostvars[host]['ansible_eth1']['ipv4']['address'] }},{% endfor %}
|
wsrep_cluster_address=gcomm://{% for host in groups['db'] %}{{ hostvars[host]['ansible_eth1']['ipv4']['address'] }}{% endfor %}
|
||||||
wsrep_sst_method=rsync
|
wsrep_sst_method=rsync
|
||||||
wsrep_node_address={{ ansible_eth1["ipv4"]["address"] }}
|
wsrep_node_address={{ ansible_eth1["ipv4"]["address"] }}
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ listen mysql-cluster
|
|||||||
frontend www-http
|
frontend www-http
|
||||||
bind 0.0.0.0:80
|
bind 0.0.0.0:80
|
||||||
reqadd X-Forwarded-Proto:\ http
|
reqadd X-Forwarded-Proto:\ http
|
||||||
default_backend www-backend
|
default_backend wrestlingdev
|
||||||
|
|
||||||
frontend www-https
|
frontend www-https
|
||||||
bind 0.0.0.0:443 ssl crt /root/server.pem
|
bind 0.0.0.0:443 ssl crt /root/server.pem
|
||||||
|
|||||||
Reference in New Issue
Block a user