rhtconsulting / rhc-ose

OpenShift Automation and Utilities by Red Hat Consulting
42 stars 34 forks source link

OpenShift Management role #234

Closed sabre1041 closed 7 years ago

sabre1041 commented 7 years ago

What does this PR do?

Adds an Ansible role for performing ongoing management and ensuring stability of the OpenShift environment

How should this be manually tested?

Create an inventory file with an openshift group containing an OpenShift master similar to the following:

[openshift]
<openshift-host>

Obtain the OAuth token of a user with cluster-admin rights

Execute the role from the root of the rhc-ose-ansible folder to prune builds, deployments and images:

ansible-playbook -i inventory/openshift-management -e "openshift_token=<token> openshift_prune_images=True openshift_prune_builds=True openshift_prune_deployments=True"  playbooks/openshift-management.yml

Is there a relevant Issue open for this?

No

Who would you like to review this?

/cc @etsauer @oybed

etsauer commented 7 years ago

@sabre1041 shouldn't this PR move over to https://github.com/redhat-cop/casl-ansible

oybed commented 7 years ago

@sabre1041 @etsauer yes, it should be moved. Do we want to finish the review here, or move it first, then finalize the review? I'm good with this change and would like to see it merged sooner than later as we can benefit from this in many places.

sabre1041 commented 7 years ago

@oybed. Yep it should be moved for sure. Since @JayKayy suggested some enhancements that could be made, why dont we move now and create a PR in casl-ansible and migrate the comments from this PR so that they and the work are tracked for the long term

oybed commented 7 years ago

@sabre1041 sounds like a good plan - can you please open the PR in the redhat-cop repo?

sabre1041 commented 7 years ago

@oybed @JayKayy @etsauer

PR created in casl-ansible

https://github.com/redhat-cop/casl-ansible/pull/4

Closing this PR as work will be handled there