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

Do not set resource defaults on ssl_cert/ssl_key resources #1449

Merged
merged 1 commit into from
May 25, 2021

Conversation

saz
Copy link
Contributor

@saz saz commented Mar 31, 2021

Pull Request (PR) description

With the merge of #1446 a change has been introduced, which changes permissions on the ssl_key and ssl_cert files.
This is due to resource defaults set in

File {
ensure => $ensure ? {
'absent' => absent,
default => 'file',
},
notify => Class['nginx::service'],
owner => $owner,
group => $group,
mode => $mode,
}
and the way, resource dependency is set up in e.g.
File <| title == $key or path == $key |> {
before => Concat::Fragment["${name_sanitized}-ssl-header"],
}

If you're managing certificates and setting different owner and group, they will be changed to the user and group defined within this module, which isn't something expected.

This Pull Request (PR) fixes the following issues

None

@puppet-community-rangefinder
Copy link

nginx::resource::server is a type

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

This module is declared in 9 of 576 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 bastelfreak added the bug Something isn't working label May 25, 2021
@bastelfreak bastelfreak merged commit 8818862 into voxpupuli:master May 25, 2021
@alexjfisher alexjfisher changed the title do not set resource defaults on ssl_cert/ssl_key resources Do not set resource defaults on ssl_cert/ssl_key resources May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants