From 5855a07212d8f1daba20ab297d9b4f3089d53a39 Mon Sep 17 00:00:00 2001 From: Andrey Shestakov Date: Tue, 26 Jan 2016 16:56:26 +0200 Subject: Add bootstrap task for ironic-pxe PXE files should be copied after volume mount to avoid overwrite. Change-Id: I023cc316e6873abd658478dfa05be839e44a80c7 Closes-bug: #1538164 --- ansible/roles/ironic/tasks/bootstrap.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'ansible') diff --git a/ansible/roles/ironic/tasks/bootstrap.yml b/ansible/roles/ironic/tasks/bootstrap.yml index d33859fae..7217c4f29 100644 --- a/ansible/roles/ironic/tasks/bootstrap.yml +++ b/ansible/roles/ironic/tasks/bootstrap.yml @@ -52,3 +52,20 @@ run_once: True delegate_to: "{{ groups['ironic-api'][0] }}" when: database_created + +- name: Running Ironic-PXE bootstrap container + kolla_docker: + action: "start_container" + common_options: "{{ docker_common_options }}" + detach: False + environment: + KOLLA_BOOTSTRAP: + KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" + image: "{{ ironic_pxe_image_full }}" + name: "bootstrap_ironic_pxe" + restart_policy: "never" + volumes: + - "{{ node_config_directory }}/ironic-pxe/:{{ container_config_directory }}/:ro" + - "ironic-pxe:/tftpboot/" + run_once: True + delegate_to: "{{ groups['ironic-pxe'][0] }}" -- cgit v1.2.3