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

sit.cephfs: Enable clustering for mgr variant #122

Merged
merged 2 commits into from
Sep 26, 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
9 changes: 0 additions & 9 deletions playbooks/ansible/cluster-cephfs.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
---
node_network_public_interfaces: >-
{{
config.nodes |
dict2items |
selectattr('value.groups', 'contains', 'cluster') |
map(attribute='value.networks.public') |
list
}}

ctdb_network_private_interfaces: >-
{{
config.nodes |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,9 @@ resources:
- source_type: resource
ref: siteacct
placement:
hosts: [ {{ inventory_hostname }} ]
count: {{ config.groups['cluster'] | length }}
clustering: always
public_addrs:
{%- for addr in ctdb_network_public_interfaces +%}
- address: {{ addr }}/{{ ctdb_network_public_interface_subnet_mask }}
{%- endfor +%}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
src: test-info.yml.j2
dest: /root/test-info.yml
vars:
public_interfaces: "{{ (config.be.variant == 'mgr') | ternary(node_network_public_interfaces, ctdb_network_public_interfaces) }}"
public_interfaces: "{{ ctdb_network_public_interfaces }}"

- name: Create a symlink for test-info.yml file
file:
Expand Down
Loading