Open robert-cam opened 1 year ago
When ntp::keys_controlkey and ntp::keys_requestkey are null the generated ntp.conf contains: requestkey controlkey
ntpd complains about these lines as syntax errors.
Don't output these lines if the variables are null.
Steps to reproduce the behavior: Generate a config file with these variables left on the default null from common.yaml in the module.
Testing for null with "unless $ntp::keys_controlkey.empty" in the template seems to fix this.
Describe the Bug
When ntp::keys_controlkey and ntp::keys_requestkey are null the generated ntp.conf contains: requestkey controlkey
ntpd complains about these lines as syntax errors.
Expected Behavior
Don't output these lines if the variables are null.
Steps to Reproduce
Steps to reproduce the behavior: Generate a config file with these variables left on the default null from common.yaml in the module.
Environment
Additional Context
Testing for null with "unless $ntp::keys_controlkey.empty" in the template seems to fix this.