Skip to content

Commit 9f88a96

Browse files
committed
feat: add support for TNF agent based install
Signed-off-by: ehila <[email protected]>
1 parent a699e12 commit 9f88a96

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

agent/roles/manifests/templates/install-config_baremetal_yaml.j2

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ controlPlane:
2121
hyperthreading: Enabled
2222
name: master
2323
replicas: {{ num_masters }}
24+
{% if num_arbiters == "0" and num_masters == "2" %}
25+
{% set hostnames = agent_nodes_hostnames.split(',') %}
26+
{% set bmc_addresses = agent_nodes_bmc_addresses.split(',') %}
27+
{% set bmc_passwords = agent_nodes_bmc_passwords.split(',') %}
28+
{% set bmc_usernames = agent_nodes_bmc_usernames.split(',') %}
29+
fencing:
30+
credentials:
31+
{% for hostname in hostnames %}
32+
- hostname: {{hostname}}
33+
address: {{ bmc_addresses[loop.index0] }}
34+
username: {{ bmc_usernames[loop.index0] }}
35+
password: {{ bmc_passwords[loop.index0] }}
36+
{% endfor %}
37+
{% endif %}
2438
fips: {{ fips_mode }}
2539
metadata:
2640
name: {{ cluster_name }}

common.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,13 @@ if [[ ! -z ${AGENT_E2E_TEST_SCENARIO} ]]; then
479479
export ARBITER_DISK=50
480480
export NUM_WORKERS=0
481481
;;
482+
"TNF" )
483+
export NUM_MASTERS=2
484+
export MASTER_VCPU=8
485+
export MASTER_DISK=100
486+
export MASTER_MEMORY=32768
487+
export NUM_WORKERS=0
488+
;;
482489
"HA" )
483490
export NUM_MASTERS=3
484491
export MASTER_VCPU=4

config_example.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,10 @@ set -x
812812
# - TNA_IPV6
813813
# - TNA_IPV4_DHCP
814814
# - TNA_IPV6_DHCP
815+
# - TNF_IPV4
816+
# - TNF_IPV6
817+
# - TNF_IPV4_DHCP
818+
# - TNA_IPV6_DHCP
815819
# - HA_IPV4
816820
# - HA_IPV6
817821
# - HA_IPV4_DHCP

0 commit comments

Comments
 (0)