You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
797 B
31 lines
797 B
[%-
|
|
# Hardcode the list of hosts, so that we can ignore any issue in major
|
|
# network.yml due to missing entries.
|
|
IF general.ngcp_type == 'carrier';
|
|
# On a CARRIER we assume at least these host must be present.
|
|
hostlist = [
|
|
'web01a', 'web01b', 'db01a', 'db01b',
|
|
'prx01a', 'prx01b', 'lb01a', 'lb01b',
|
|
];
|
|
ELSIF general.ngcp_type == 'sppro';
|
|
hostlist = [ 'sp1', 'sp2' ];
|
|
END;
|
|
-%]
|
|
dns:
|
|
[% FOR hostname IN hostlist -%]
|
|
[% hostname %]:
|
|
resolvable: true
|
|
addrs:
|
|
[%-
|
|
# If this library function is broken, we will get at worst an empty value
|
|
# which should also make the check fail.
|
|
argv.host = hostname;
|
|
argv.type = 'ha_int';
|
|
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
|
|
ha_ip = out;
|
|
%]
|
|
- [% ha_ip.0 %]
|
|
timeout: 500
|
|
|
|
[% END -%]
|