diff options
author | Joel Diaz <jdiaz@redhat.com> | 2017-12-20 01:22:23 +0000 |
---|---|---|
committer | Joel Diaz <jdiaz@redhat.com> | 2018-01-22 16:38:12 +0000 |
commit | a0015f7ead6a89dbb602bc245b51e82cfad66902 (patch) | |
tree | 663ad43e1d81b2a3b6b5a41914184edeeabc28de /playbooks/aws/README.md | |
parent | c933a61030a882e3d33834390e82a9e196e0f654 (diff) | |
download | openshift-a0015f7ead6a89dbb602bc245b51e82cfad66902.tar.gz openshift-a0015f7ead6a89dbb602bc245b51e82cfad66902.tar.bz2 openshift-a0015f7ead6a89dbb602bc245b51e82cfad66902.tar.xz openshift-a0015f7ead6a89dbb602bc245b51e82cfad66902.zip |
allow uninstalling AWS objects created by prerequisite playbook
add deprovisioners/uninstallers for objects created via playbooks/aws/openshift-cluster/prerequisites.yml
specifically: security groups, vpcs, and any ssh keys
introduce openshift_aws_enable_uninstall_shared_objects to protect AWS objects that would be shared in the case of multiple clusters co-existing in one AWS account. right now it protects the ssh keys, but it can/should be used to protect against deleting the shared IAM instance profile as well. default this variable to False to be on the safe side when uninstalling/deprovisioning.
add some documentation on using deprovisioning playbooks
Diffstat (limited to 'playbooks/aws/README.md')
-rw-r--r-- | playbooks/aws/README.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/playbooks/aws/README.md b/playbooks/aws/README.md index d203b9cda..bdc98d1e0 100644 --- a/playbooks/aws/README.md +++ b/playbooks/aws/README.md @@ -198,3 +198,17 @@ At this point your cluster should be ready for workloads. Proceed to deploy app ### Still to come There are more enhancements that are arriving for provisioning. These will include more playbooks that enhance the provisioning capabilities. + +## Uninstall / Deprovisioning + +At this time, only deprovisioning of the output of the prerequisites step is provided. You can/must manually remove things like ELBs and scale groups before attempting to undo the work by the preprovisiong step. + +To undo the work done by the prerequisites playbook, simply call the uninstall_prerequisites.yml playbook. You should use the same inventory file and provisioning_vars.yml file that was used during provisioning. + +``` +ansible-playbook -i <previous inventory file> -e @<previous provisioning_vars file> uninstall_prerequisites.yml +``` + +This should result in removal of the security groups and VPC that were created. + +NOTE: If you want to also remove the ssh keys that were uploaded (**these ssh keys would be shared if you are running multiple clusters in the same AWS account** so we don't remove these by default) then you should add 'openshift_aws_enable_uninstall_shared_objects: True' to your provisioning_vars.yml file. |