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

[3006.x] Fix install of logrotate config for debian pkg #65318

Merged
merged 7 commits into from Nov 3, 2023

Conversation

barneysowood
Copy link
Contributor

@barneysowood barneysowood commented Sep 29, 2023

What does this PR do?

Fixes the install of logrotate config for the debian pkg by moving file to pkg/common/logrotate/salt-common. File is installed via salt-common.install file, which can't rename files, only copy them to a directory, so we need to rename the file and put it in a subdir of pkg/common.

If the incorrect /etc/logrotate.d/salt directory created by original 3006.3 packages is present, it is removed as part of preinst.

Adds /etc/logrotate.d/salt-common to salt.common.conffiles to ensure that dpkg will not overwrite configs modified by users.

Also updates RPM spec file for new location of logrotate config.

Config needs to be /etc/logrotate.d/salt-common as that is what is used by 3005.x packages - if we don't use the same name, we'll end up with duplicate/conflicting configs.

What issues does this PR fix or reference?

Fixes: #65231

Previous Behavior

Logrotate config was incorrectly copied to /etc/logrotated.d/salt/salt-common.logrotate

New Behavior

Config is copied to /etc/logrotate.d/salt-common and marked as a config file so dpkg will not overwrite modified configs.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Fix install of logrotate config for debian pkg [3006.x] Fix install of logrotate config for debian pkg Sep 29, 2023
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 17:15 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 17:15 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 17:15 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 17:15 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 17:15 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 17:15 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 18:04 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 18:04 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 18:04 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 18:04 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 18:04 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 18:04 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 20:15 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 20:15 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 20:15 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 20:15 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 20:15 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci September 29, 2023 20:15 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci October 12, 2023 18:47 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci October 12, 2023 18:47 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci October 12, 2023 20:42 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci October 12, 2023 20:42 — with GitHub Actions Inactive
@barneysowood barneysowood temporarily deployed to ci October 12, 2023 20:42 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 13:12 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 13:12 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 16:03 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 16:03 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 16:03 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 16:03 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 16:03 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 16:03 — with GitHub Actions Inactive
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 16:57 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 16:57 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 16:57 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 16:57 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 16:57 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 16:57 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 23:55 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 23:56 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 23:56 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 23:56 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 23:56 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 2, 2023 23:56 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 3, 2023 02:20 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 3, 2023 02:20 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 3, 2023 02:21 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 3, 2023 02:21 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 3, 2023 02:21 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci November 3, 2023 02:21 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch merged commit 2ba6543 into saltstack:3006.x Nov 3, 2023
396 of 406 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test:pkg Run the package tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants