Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated ntp.conf has controlkey and requestkey lines with no values #677

Open
robert-cam opened this issue Apr 28, 2023 · 0 comments
Open

Comments

@robert-cam
Copy link

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

  • Version 10.0.0
  • Platform CentOS 7.9

Additional Context

Testing for null with "unless $ntp::keys_controlkey.empty" in the template seems to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants