-
Notifications
You must be signed in to change notification settings - Fork 24.1k
Make backup file names configurable #83536
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
base: devel
Are you sure you want to change the base?
Conversation
|
notes: core convo, try to make the setting template 'jinja' so we can do most processing on controller side and allow for more flexible naming, reserve the current set of variables as tags as the final expression should still be a 'python format' template' to be resolved at target. |
22ed94c to
088ad6d
Compare
lib/ansible/module_utils/powershell/Ansible.ModuleUtils.Backup.psm1
Outdated
Show resolved
Hide resolved
|
Would love to use configurable backup name as well. What's the state for this PR? |
|
it is 'paused', i need to have the time to fix it up and pass tests to make it ready for review |
|
I haven't had a chance to review this, or think through the impact of the changes, so I can't comment on the implementation yet. However, there should be full test coverage for changes like this, but there are currently no tests in the PR. |
6b8a71f to
d72385d
Compare
|
The test The test |
| - Available variables are basename (includes extension), extension, stripname (no extension), timestamp and pid (process ID) | ||
| - This only affects modules that implement the Ansible provided backup functions in Python or duplicate such functions. | ||
| Powershell module_utils does not currently support this. | ||
| version_added: '2.19' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| version_added: '2.19' | |
| version_added: '2.21' |
| { "tmpdir", "tmpdir" }, | ||
| { "verbosity", "Verbosity" }, | ||
| { "version", "AnsibleVersion" }, | ||
| { "backup_file_name_template", null }, // here for parity, but not implemented |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| { "backup_file_name_template", null }, // here for parity, but not implemented | |
| { "backup_file_name_template", null }, // here for parity, but not implemented |
|
#86187 will fix RHEL 10 |
fixes ansible#82408 let windows/powershell modules know about backup, but not implemented Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
- testing orig feature - new backup template - bad template detection
d72385d to
6204324
Compare
Introduces a new config to allow user to modify the file name template
TODO:
fixes #82408
ISSUE TYPE