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

implement config check on config change before service restart #1419

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

crazymind1337
Copy link
Member

Pull Request (PR) description

This implements a switch to enable the nginx config check via nginx -t on all config file changes. If the config check is enabled (disabled by default) and fails, the service refresh of nginx will be unscheduled b puppet.

This Pull Request (PR) fixes the following issues

No issue created, started directly with the feature.

@puppet-community-rangefinder
Copy link

nginx::config is a class

Breaking changes to this file MAY impact these 2 modules (near match):

nginx is a class

Breaking changes to this file WILL impact these 13 modules (exact match):
Breaking changes to this file MAY impact these 33 modules (near match):

nginx::resource::geo is a type

that may have no external impact to Forge modules.

nginx::resource::location is a type

Breaking changes to this file WILL impact these 8 modules (exact match):
Breaking changes to this file MAY impact these 15 modules (near match):

nginx::resource::mailhost is a type

that may have no external impact to Forge modules.

nginx::resource::map is a type

that may have no external impact to Forge modules.

nginx::resource::server is a type

Breaking changes to this file WILL impact these 11 modules (exact match):
Breaking changes to this file MAY impact these 3 modules (near match):

nginx::resource::snippet is a type

that may have no external impact to Forge modules.

nginx::resource::streamhost is a type

that may have no external impact to Forge modules.

nginx::resource::upstream is a type

Breaking changes to this file WILL impact these 2 modules (exact match):
Breaking changes to this file MAY impact these 14 modules (near match):

nginx::service is a class

Breaking changes to this file MAY impact these 1 modules (near match):

This module is declared in 9 of 575 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

@bastelfreak
Copy link
Member

hey @crazymind1337, thanks for the PR! can you add an acceptance test that sets this and also fix the puppet-lint warning?

Copy link
Member

@bastelfreak bastelfreak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me. We can merge this when the tests pass

@crazymind1337
Copy link
Member Author

Tests passed.

@bastelfreak bastelfreak merged commit 7eed900 into voxpupuli:master Nov 2, 2020
@bastelfreak bastelfreak added the enhancement New feature or request label Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants