X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=puppet%2Fservices%2Ftripleo-packages.yaml;h=bfdac3e359e8bc4d86dda4d39a8f9ef361c966ee;hb=8da5e1f7006d8128e83fe151da930dc5a670180d;hp=0dbdbf898859dd6af09457e92b2b8516ea30ee7a;hpb=d76998fcbb43684f1464b1feabfe0fc1f5ac7569;p=apex-tripleo-heat-templates.git 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"