Skip to content

(SUP-2677) Deprecate backup functionality #91

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

Closed
wants to merge 2 commits into from
Closed

(SUP-2677) Deprecate backup functionality #91

wants to merge 2 commits into from

Conversation

elainemccloskey
Copy link
Contributor

Added a warning if the parameter manage_database_backups is defined to output a deprecated message.

This only outputs to puppetserver.log and not during agent runs:

2021-09-23T11:33:26.289Z WARN [qtp351210790-526] [puppetserver] Scope(Class[Pe_databases]) The backup functionality in the pe_databases module has been deprecated and will be removed in a future release.

A notify resource works to output in a Puppet run but results in a change on every Puppet run.

Also added 'warning' note to the readme about the deprecation.

@elainemccloskey elainemccloskey requested a review from a team as a code owner September 23, 2021 15:50
@CLAassistant
Copy link

CLAassistant commented Sep 23, 2021

CLA assistant check
All committers have signed the CLA.

@puppet-community-rangefinder
Copy link

pe_databases is a class

that may have no external impact to Forge modules.

This module is declared in 0 of 578 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.

Copy link
Contributor

@MartyEwings MartyEwings left a comment

Choose a reason for hiding this comment

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

The thinking on this is that we change it to a notify at the warning level so the client side will see it

@@ -47,6 +47,10 @@
class { 'pe_databases::backup':
disable_maintenance => ! $manage_database_backups,
}
notify { 'pe_databases_backup_deprecate_warn':
message => 'The backup functionality in the pe_databases module has been deprecated and will be removed in a future release.',
Copy link
Contributor

Choose a reason for hiding this comment

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

This and the line below need to be indented

@elainemccloskey
Copy link
Contributor Author

closing to reopen using new logic that has been merged rather than rebasing

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.

4 participants