Template out extra NRPE commands, allowing full file paths

This commit is contained in:
Salt 2021-08-18 18:12:30 -05:00
parent f9ec6f0758
commit 2421fab739

View File

@ -9,3 +9,9 @@ allowed_hosts={{ nrpe_server_allowed_hosts | join(',') }}
command[{{ command }}]={{ nrpe_server_plugins_dir }}/{{ nrpe_command[command]["script"] }} {{ nrpe_command[command]["option"] }}
{% endfor %}
{% endif %}
{% if nrpe_command_extra is defined %}
# Extra Commands
{% for command in nrpe_command_extra %}
command[{{ command }}]={{ nrpe_command_extra[command]["script"] }} {{ nrpe_command_extra[command]["option"] }}
{% endfor %}
{% endif %}