aboutsummaryrefslogtreecommitdiffstats
path: root/environments
diff options
context:
space:
mode:
authormarios <marios@redhat.com>2017-07-03 19:20:30 +0300
committerEmilien Macchi <emilien@redhat.com>2017-10-09 11:06:26 -0700
commit6d150b03cff457bf43e8c2b55ba03ace20d6c244 (patch)
tree8489116731b0f053970c02af600e8f796152c2a9 /environments
parentc4bd0a3468af429abfbbcea634ee1023f95778c9 (diff)
Remove package if service stopped and disabled
Adds a UpgradeRemoveUnusedPackages param to use in the ansible when conditional for the removal Adds package removal to step2 right after a service is stopped and disabled on step2. Package updates happen in step3 so ideally remove before that. The package removal task has ignore_errors true so dependencies or other issue removing packages will not fail the upgrade workflow. Also adds this to the upgrade environment files for visibility and defaulting false Change-Id: Ie4e4a2d41f7752c5a13507a7c15c6f68e203cfca Related-Bug: 1701501 (cherry picked from commit ce0ef2fa207698c1ae61c1620fe3c5e8d1c7bfca)
Diffstat (limited to 'environments')
-rw-r--r--environments/major-upgrade-composable-steps-docker.yaml1
-rw-r--r--environments/major-upgrade-composable-steps.yaml1
2 files changed, 2 insertions, 0 deletions
diff --git a/environments/major-upgrade-composable-steps-docker.yaml b/environments/major-upgrade-composable-steps-docker.yaml
index 1b7f17e0..1f45d025 100644
--- a/environments/major-upgrade-composable-steps-docker.yaml
+++ b/environments/major-upgrade-composable-steps-docker.yaml
@@ -10,3 +10,4 @@ parameter_defaults:
# Ocata to Pike, put any needed host-level workarounds here
yum install -y ansible-pacemaker
MigrationSshPort: 22
+ UpgradeRemoveUnusedPackages: false \ No newline at end of file
diff --git a/environments/major-upgrade-composable-steps.yaml b/environments/major-upgrade-composable-steps.yaml
index 5433572c..e8a00740 100644
--- a/environments/major-upgrade-composable-steps.yaml
+++ b/environments/major-upgrade-composable-steps.yaml
@@ -15,3 +15,4 @@ parameter_defaults:
rm -f /usr/libexec/os-refresh-config/configure.d/40-hiera-datafiles
rm -f /etc/puppet/hieradata/*.yaml
MigrationSshPort: 22
+ UpgradeRemoveUnusedPackages: false \ No newline at end of file