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

Validate named.conf and zones.conf using named-checkconf #144

Merged
merged 1 commit into from Jul 16, 2019

Conversation

antaflos
Copy link
Contributor

@antaflos antaflos commented May 8, 2019

Make use of the validate_cmd parameter in concat to run
named-checkconf on the target file. This way the validity of to-be-updated
configuration files named.conf or zones.conf is checked before actually
writing the new configuration and restarting the named service. This
prevents named from loading invalid configuration settings that would
result in named failing to start.

The file named.conf.options itself cannot be checked with
named-checkconf because its content is only valid inside the
"options { };" directive.

@antaflos
Copy link
Contributor Author

antaflos commented May 8, 2019

This needs more work to appease the acceptance tests.

@antaflos antaflos force-pushed the validate_named_conf_files branch 2 times, most recently from 2f7c522 to c88f5ec Compare May 8, 2019 17:31
@antaflos
Copy link
Contributor Author

I have rebased the branch on the current master and force-pushed.

manifests/config.pp Outdated Show resolved Hide resolved
manifests/config.pp Outdated Show resolved Hide resolved
Make use of the `validate_cmd` parameter in concat to run
named-checkconf on the target file. This way the validity of to-be-updated
configuration files named.conf or zones.conf is checked before actually
writing the new configuration and restarting the named service. This
prevents named from loading invalid configuration settings that would
result in named failing to start.

The file named.conf.options itself cannot be checked with
named-checkconf because its content is only valid inside the
"options { };" directive.
@antaflos
Copy link
Contributor Author

antaflos commented Jul 5, 2019

Bumping gently :)

@ekohl ekohl merged commit 526d4db into theforeman:master Jul 16, 2019
@ekohl
Copy link
Member

ekohl commented Jul 16, 2019

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants