Skip to content

Commit

Permalink
add optional variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SK1Y101 committed Aug 17, 2023
1 parent 9ab80c8 commit 0350a92
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions group_vars/all/01-maas
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Standard MAAS Variables
enable_tls: false # Use TLS for MAAS communication

enable_firewall: true # Run the firewall setup tasks.

# Installation variables
maas_install_deb: "{{ maas_installation_type == 'deb' }}"
maas_snap_channel: "stable" # if using snap, then the channel. ie: stable, beta, edge
Expand Down
1 change: 1 addition & 0 deletions roles/maas_pacemaker/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,4 @@
- "{{ maas_pgsql_check_port|default(23267) }}"
maas_pg_udp_ports:
- 5405
when: enable_firewall | bool

Check failure on line 116 in roles/maas_pacemaker/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / build

yaml[new-line-at-end-of-file]

No new line character at the end of file
2 changes: 1 addition & 1 deletion roles/maas_postgres/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
ansible.builtin.include_role:
name: maas_firewall
tasks_from: setup_firewall_rules
when: ('maas_region_controller' not in group_names) and ('maas_pacemaker' not in group_names)
when: ('maas_region_controller' not in group_names) and ('maas_pacemaker' not in group_names) and ( enable_firewall | bool )
2 changes: 1 addition & 1 deletion roles/maas_postgres_proxy/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
ansible.builtin.include_role:
name: maas_firewall
tasks_from: setup_firewall_rules
when: ('maas_region_controller' not in group_names and 'maas_rack_controller' not in group_names)
when: ('maas_region_controller' not in group_names and 'maas_rack_controller' not in group_names) and ( enable_firewall | bool )
2 changes: 1 addition & 1 deletion roles/maas_proxy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
ansible.builtin.include_role:
name: maas_firewall
tasks_from: setup_firewall_rules
when: ('maas_region_controller' not in group_names and 'maas_rack_controller' not in group_names)
when: ('maas_region_controller' not in group_names and 'maas_rack_controller' not in group_names) and (enable_firewall | bool)
1 change: 1 addition & 0 deletions roles/maas_rack_controller/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@
ansible.builtin.include_role:
name: maas_firewall
tasks_from: setup_firewall_rules
when: enable_firewall | bool
1 change: 1 addition & 0 deletions roles/maas_region_controller/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@
ansible.builtin.include_role:
name: maas_firewall
tasks_from: setup_firewall_rules
when: enable_firewall | bool

Check failure on line 68 in roles/maas_region_controller/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / build

yaml[new-line-at-end-of-file]

No new line character at the end of file

0 comments on commit 0350a92

Please sign in to comment.