diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-10-10 04:38:12 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-10-10 04:38:12 +0000 |
commit | 43062a1eae30a7a0ade11ee2a1841def93fdc0c8 (patch) | |
tree | 952f1d3e572ea326c54a248bad02ab9faaf1bebd /puppet/services/tripleo-packages.yaml | |
parent | 0f0da45d9a5f4c13cbca45e9083ef3af5b748803 (diff) | |
parent | 911edab71e435736dc094c9633520315d310f60c (diff) |
Merge "Adds pacemaker update_tasks for Pike minor update workflow" into stable/pike
Diffstat (limited to 'puppet/services/tripleo-packages.yaml')
-rw-r--r-- | puppet/services/tripleo-packages.yaml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/puppet/services/tripleo-packages.yaml b/puppet/services/tripleo-packages.yaml index 0dbdbf89..bfdac3e3 100644 --- a/puppet/services/tripleo-packages.yaml +++ b/puppet/services/tripleo-packages.yaml @@ -66,6 +66,13 @@ outputs: tags: step3 yum: name=* state=latest update_tasks: + - name: Check for existing yum.pid + stat: path=/var/run/yum.pid + register: yum_pid_file + when: step == "0" or step == "3" + - name: Exit if existing yum process + fail: msg="ERROR existing yum.pid detected - can't continue! Please ensure there is no other package update process for the duration of the minor update worfklow. Exiting." + when: (step == "0" or step == "3") and yum_pid_file.stat.exists - name: Update all packages - yum: name=* state=latest + yum: name=* state=latest update_cache=yes # cache for tripleo/+bug/1703830 when: step == "3" |