aboutsummaryrefslogtreecommitdiffstats
path: root/extraconfig/post_deploy/rhel-registration/scripts/rhel-unregistration
diff options
context:
space:
mode:
Diffstat (limited to 'extraconfig/post_deploy/rhel-registration/scripts/rhel-unregistration')
-rw-r--r--extraconfig/post_deploy/rhel-registration/scripts/rhel-unregistration19
1 files changed, 0 insertions, 19 deletions
diff --git a/extraconfig/post_deploy/rhel-registration/scripts/rhel-unregistration b/extraconfig/post_deploy/rhel-registration/scripts/rhel-unregistration
deleted file mode 100644
index 1e72e0a..0000000
--- a/extraconfig/post_deploy/rhel-registration/scripts/rhel-unregistration
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-set -eux
-set -o pipefail
-
-case "${REG_METHOD:-}" in
- portal|satellite)
- # Allow unregistration to fail.
- # We don't want to fail stack deletes if unregistration fails.
- subscription-manager unregister || true
- subscription-manager clean || true
- ;;
- disable)
- echo "Disabling RHEL unregistration"
- ;;
- *)
- echo "WARNING: only 'portal', 'satellite', and 'disable' are valid values for REG_METHOD."
- exit 0
-esac