Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhos-infra/tripleo-config-changes
Infrared plugin for validating configuration changes applied to a TripleO deployment
https://github.com/rhos-infra/tripleo-config-changes
ansible infrared infrared-plugin
Last synced: 12 days ago
JSON representation
Infrared plugin for validating configuration changes applied to a TripleO deployment
- Host: GitHub
- URL: https://github.com/rhos-infra/tripleo-config-changes
- Owner: rhos-infra
- License: apache-2.0
- Created: 2018-09-26T06:47:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-10T10:29:20.000Z (over 1 year ago)
- Last Synced: 2023-07-10T11:31:34.398Z (over 1 year ago)
- Topics: ansible, infrared, infrared-plugin
- Language: Shell
- Size: 175 KB
- Stars: 1
- Watchers: 11
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
tripleo-config-changes
=========A collection of Ansible playbooks used for applying and validating configuration changes in a TripleO environment.
Requirements
------------The tests require an undercloud or overcloud to be available for testing the configuration changes against.
Contributing new tests
-----------------------------
Code changes can be submitted via [review.gerrithub.io](https://review.gerrithub.io/admin/projects/rhos-infra/tripleo-config-changes)We'll take the noop test as example and detail the steps required for adding it.
The noop test only re-runs
the existing overcloud_deploy.sh script without making any configurationg changes.Tests usually consist of 3 stages:
- pre: tasks that run before re-running the overcloud deploy (generate new templates,change existing parameters, etc)
- deploy: re-run the overcloud_deploy.sh script
- post: validate the changes prepared in the pre step were successfully appliedFor adding the noop example test we had to:
- Create a new directory for your test(noop) under the tasks/ dir:
mkdir tasks/noop
- Create the {pre,deploy,post} yml files under tasks/noop directory. These can include either playbooks or tasks. After creating them we can glue them together under tasks/noop/main.yml
tasks/noop/
├── deploy.yml
├── main.yml
├── post.yml
└── pre.yml- Add a new option for the noop test in plugin.spec
- title: Apply noop changes
options:
noop:
type: Bool
help: |
Re-run overcloud deploy with no changes
default: False- Import the tasks/noop/main.yml in the root main.yml based on the conditional option added in the previous step
- name: Apply noop changes
import_playbook: tasks/noop/main.yml
when: test.noop|default(False)Usage with InfraRed
-----------------------------tripleo-config-changes comes preinstalled as an InfraRed plugin.
For manual installation:
# Install plugin
infrared plugin add https://github.com/rhos-infra/tripleo-config-changes# Trigger noop test
infrared tripleo-config-changes --noop yesLicense
-------Apache 2.0