Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* change ipwrap to ansible.utils.ipwrap #185

Merged
merged 2 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ansible-compat==2.2.6 ; python_full_version >= "3.8.1" and python_version < "4.0"
ansible-core==2.13.7 ; python_version < "4.0" and python_full_version >= "3.8.1"
ansible-core==2.13.9 ; python_version < "4.0" and python_full_version >= "3.8.1"
ansible-lint==6.8.7 ; python_full_version >= "3.8.1" and python_version < "4.0"
ansible==6.6.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
arrow==1.2.3 ; python_full_version >= "3.8.1" and python_version < "4.0"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ansible-core==2.13.7 ; python_full_version >= "3.8.1" and python_version < "4.0"
ansible-core==2.13.9 ; python_full_version >= "3.8.1" and python_version < "4.0"
ansible==6.6.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
cffi==1.15.1 ; python_full_version >= "3.8.1" and python_version < "4.0"
cryptography==38.0.4 ; python_full_version >= "3.8.1" and python_version < "4.0"
Expand Down
3 changes: 3 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
collections:
- name: ansible.utils
version: ">=2.12.0"
- name: ansible.netcommon
- name: community.docker
version: "*" # Need to ensure that the latest version is installed or Molecule fails
roles: []
2 changes: 1 addition & 1 deletion templates/etc/my.cnf.d/server.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ wsrep_cluster_name="{{ galera_cluster_name }}"
{% for node in galera_cluster_nodes %}
{% set _ = _galera_cluster_node_addresses.append( hostvars[node]['galera_cluster_bind_address'] | default(hostvars[node]['ansible_' ~ galera_cluster_bind_interface]['ipv4']['address']) | mandatory ) %}
{% endfor %}
wsrep_cluster_address="{{ 'gcomm://' ~ _galera_cluster_node_addresses | map('ipwrap') | list | join(',') }}"
wsrep_cluster_address="{{ 'gcomm://' ~ _galera_cluster_node_addresses | map('ansible.utils.ipwrap') | list | join(',') }}"
# To start failed cluster comment out above and uncomment below...Once cluster is started revert changes and restart mysql on main node where change was made
#wsrep_cluster_address="gcomm://"

Expand Down
2 changes: 1 addition & 1 deletion templates/etc/my.cnf.d/server.cnf.temp.j2
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ wsrep_cluster_name="{{ galera_cluster_name }}"
{% for node in galera_cluster_nodes %}
{% set _ = _galera_cluster_node_addresses.append( hostvars[node]['galera_cluster_bind_address'] | default(hostvars[node]['ansible_' ~ galera_cluster_bind_interface]['ipv4']['address']) | mandatory ) %}
{% endfor %}
#wsrep_cluster_address="{{ 'gcomm://' ~ _galera_cluster_node_addresses | map('ipwrap') | list | join(',') }}"
#wsrep_cluster_address="{{ 'gcomm://' ~ _galera_cluster_node_addresses | map('ansible.utils.ipwrap') | list | join(',') }}"
# To start failed cluster comment out above and uncomment below...Once cluster is started revert changes and restart mysql on main node where change was made
wsrep_cluster_address="gcomm://"

Expand Down
2 changes: 1 addition & 1 deletion templates/etc/mysql/conf.d/galera.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ wsrep_cluster_name="{{ galera_cluster_name }}"
{% for node in galera_cluster_nodes %}
{% set _ = _galera_cluster_node_addresses.append( hostvars[node]['galera_cluster_bind_address'] | default(hostvars[node]['ansible_' ~ galera_cluster_bind_interface]['ipv4']['address']) | mandatory ) %}
{% endfor %}
wsrep_cluster_address="{{ 'gcomm://' ~ _galera_cluster_node_addresses | map('ipwrap') | list | join(',') }}"
wsrep_cluster_address="{{ 'gcomm://' ~ _galera_cluster_node_addresses | map('ansible.utils.ipwrap') | list | join(',') }}"
# To start failed cluster comment out above and uncomment below...Once cluster is started revert changes and restart mysql on main node where change was made
#wsrep_cluster_address="gcomm://"

Expand Down
2 changes: 1 addition & 1 deletion templates/etc/mysql/conf.d/galera.cnf.temp.j2
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ wsrep_cluster_name="{{ galera_cluster_name }}"
{% for node in galera_cluster_nodes %}
{% set _ = _galera_cluster_node_addresses.append( hostvars[node]['galera_cluster_bind_address'] | default(hostvars[node]['ansible_' ~ galera_cluster_bind_interface]['ipv4']['address']) | mandatory ) %}
{% endfor %}
#wsrep_cluster_address="{{ 'gcomm://' ~ _galera_cluster_node_addresses | map('ipwrap') | list | join(',') }}"
#wsrep_cluster_address="{{ 'gcomm://' ~ _galera_cluster_node_addresses | map('ansible.utils.ipwrap') | list | join(',') }}"
# To start failed cluster comment out above and uncomment below...Once cluster is started revert changes and restart mysql on main node where change was made
wsrep_cluster_address="gcomm://"

Expand Down
Loading