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

Add playbooks to manage configuration files #784

Merged
merged 7 commits into from
Mar 25, 2024

Conversation

ivarmu
Copy link
Contributor

@ivarmu ivarmu commented Mar 18, 2024

What does this PR do?

Adds two playbooks to ease the management of the configuration files:

  • rename_objects.yaml: If there's a need of renaming one credential (for example), this playbook can be used to rename the credential itself and update all the Job Templates / Workflows / Organizations... that are using the old credential name to the new one.
  • set_organization.yaml: If you need to set the organization name for all the objects contained in a path, this playbook will do the job easy.

How should this be tested?

This can be applied to any path populated with CasC content. Each playbook has an execution example in the last line of the file.

Is there a relevant Issue open for this?

N/A

Other Relevant info, PRs, etc

N/A

Copy link
Contributor

@silvinux silvinux left a comment

Choose a reason for hiding this comment

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

LGTM!

@silvinux silvinux enabled auto-merge (squash) March 25, 2024 10:54
@silvinux silvinux merged commit 4da6ba6 into redhat-cop:devel Mar 25, 2024
13 checks passed
@ivarmu ivarmu deleted the new_usefull_playbooks branch March 27, 2024 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants