Skip to content

Commit

Permalink
Fence agent firewall port is restricted to x86_64 architecture. (#106)
Browse files Browse the repository at this point in the history
Add the condition to tests/tasks/check_firewall_selinux.yml and
tasks/selinux.yml.

Signed-off-by: Noriko Hosoi <[email protected]>
  • Loading branch information
nhosoi authored Feb 2, 2023
1 parent e6c8f3c commit ba6e411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tasks/selinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- {'ports': '1229', 'proto': 'tcp', 'setype': 'cluster_port_t',
'state': 'present', 'local': true}
when:
- ansible_facts['architecture'] == 'x86_64'
- (
'fence-virt' in ha_cluster_fence_agent_packages
or
Expand Down
1 change: 1 addition & 0 deletions tests/tasks/check_firewall_selinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
changed_when: false

- name: Check firewall port status
when: ansible_facts['architecture'] == 'x86_64'
command: firewall-cmd --list-ports
register: _result
failed_when: "'1229/tcp' not in _result.stdout"
Expand Down

0 comments on commit ba6e411

Please sign in to comment.