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

Commit

Permalink
Disable pxe_tftp systemd services during upgrade
Browse files Browse the repository at this point in the history
Change-Id: I7a697c662c611c1319bb2b78a4a12045ffba73f3
  • Loading branch information
matbu committed Nov 27, 2019
1 parent 164b022 commit 89ecaeb
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 89ecaeb

Please sign in to comment.