FFU: add fast forward upgrade support for sensu client
bp fast-forward-upgrades Change-Id: I5b09f20aa273904cf7a0949e10ca9137827a4957
This commit is contained in:
parent
3004c31d72
commit
c5a08fdc24
@ -169,3 +169,23 @@ outputs:
|
||||
- step|int == 2
|
||||
- sensu_enabled.rc == 0
|
||||
service: name=sensu-client state=stopped enabled=no
|
||||
fast_forward_upgrade_tasks:
|
||||
- name: Check if sensu client is deployed
|
||||
command: systemctl is-enabled --quiet sensu-client
|
||||
ignore_errors: True
|
||||
register: sensu_enabled_result
|
||||
when:
|
||||
- step|int == 0
|
||||
- release == 'ocata'
|
||||
- name: Set fact sensu_enabled
|
||||
set_fact:
|
||||
sensu_enabled: "{{ sensu_enabled_result.rc == 0 }}"
|
||||
when:
|
||||
- step|int == 0
|
||||
- release == 'ocata'
|
||||
- name: Stop and disable sensu-client service
|
||||
when:
|
||||
- step|int == 1
|
||||
- release == 'ocata'
|
||||
- sensu_enabled|bool
|
||||
service: name=sensu-client state=stopped enabled=no
|
||||
|
Loading…
Reference in New Issue
Block a user