Skip to content

Commit

Permalink
Only config role when non-default value
Browse files Browse the repository at this point in the history
  • Loading branch information
albinsun authored and bk201 committed Mar 4, 2024
1 parent 044f587 commit acf0333
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ os:
{% endfor %}
install:
mode: create
{% if settings['harvester_network_config']['cluster'][0]['role'] != 'default' %}
role: {{ settings['harvester_network_config']['cluster'][0]['role'] }}
{% endif %}
networks:
harvester-mgmt:
interfaces:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ os:
{% endfor %}
install:
mode: join
{% if settings['harvester_network_config']['cluster'][node_number |int]['etcd_only'] %}
role: etcd
{% if settings['harvester_network_config']['cluster'][node_number |int]['role'] != 'default' %}
role: {{ settings['harvester_network_config']['cluster'][node_number |int]['role'] }}
{% endif %}
networks:
harvester-mgmt:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ os:
{% endfor %}
install:
mode: create
{% if settings['harvester_network_config']['cluster'][0]['role'] != 'default' %}
role: {{ settings['harvester_network_config']['cluster'][0]['role'] }}
{% endif %}
management_interface:
interfaces:
- name: {{ settings['harvester_network_config']['cluster'][0]['mgmt_interface'] }} # The management interface name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ os:
{% endfor %}
install:
mode: join
{% if settings['harvester_network_config']['cluster'][node_number |int]['role'] != 'default' %}
role: {{ settings['harvester_network_config']['cluster'][node_number |int]['role'] }}
{% endif %}
management_interface:
interfaces:
- name: {{ settings['harvester_network_config']['cluster'][node_number | int]['mgmt_interface'] }} # The management interface name
Expand Down

0 comments on commit acf0333

Please sign in to comment.