Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Disable pxe_tftp systemd services during upgrade"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Dec 3, 2019
2 parents d85e4ad + 89ecaeb commit d0b6fa9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions deployment/ironic/ironic-pxe-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,19 @@ outputs:
name: xinetd
state: restarted
when: xinetd_active_result.rc == 0
- name: Check if ironic_pxe_tftp is enabled
command: systemctl is-enabled --quiet ironic_pxe_tftp
ignore_errors: True
register: ironic_pxe_tftp_enabled_result
- name: Set fact ironic_pxe_tftp_enabled
set_fact:
ironic_pxe_tftp_enabled: "{{ ironic_pxe_tftp_enabled_result.rc == 0 }}"
- name: Stop ironic_pxe_tftp service
when:
- step|int == 1
- ironic_pxe_tftp_enabled_result|bool
service: name=ironic_pxe_tftp state=stopped enabled=no

docker_config:
step_4:
ironic_pxe_tftp:
Expand Down

0 comments on commit d0b6fa9

Please sign in to comment.