bifrost/playbooks/cleanup-deployment-images.yaml
Olivier Bourdon d2fff1abe2 Add configurable option for Ironic master tftp images path
By design, Ironic will be making hardlinks from /var/lib/ironic/master_images
into /httpboot. On a machine where /var is on a separate partition, deployment
will succeed but operation will fail with some errors like:

OSError: [Errno 18] Invalid cross-device link

in ironic conductor logs. This patch adds an extra configuration
variable which allows the user to configure the path location
properly and to overcome this issue.

Change-Id: If90b49c75ff1a224d8d539036b89c1c7ee030bd0
2018-06-25 09:44:36 +02:00

11 lines
351 B
YAML

---
- hosts: localhost
connection: local
name: "Remove the master_images folder and deployment kernel/ramdisk for clean redeployments when testing."
become: yes
gather_facts: yes
tasks:
- file: path="{{ironic_tftp_master_path}}" state=absent
- file: path="{{ipa_kernel}}" state=absent
- file: path="{{ipa_ramdisk}}" state=absent