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.
ngcpcfg/lib/get_dbnode

11 lines
250 B

[%
# Returns the dbnode of a given host
#
# @param argv.host The hostname to get the dbnode for.
# @return out The dbnode.
-%]
[% IF !hosts.${argv.host}.defined -%]
[% argv.host = 'self' -%]
[% END -%]
[% out = hosts.${argv.host}.dbnode -%]