
We extend the configuration of the Bifrost dnsmasq server on the seed to support Bare Metal Provisioning of Dell switches.
29 lines
1.0 KiB
YAML
29 lines
1.0 KiB
YAML
---
|
|
- name: Copy dnsmasq configuration
|
|
command: >
|
|
docker exec bifrost_deploy
|
|
bash -c 'source /bifrost/env-vars &&
|
|
ansible -vvvv target -i /bifrost/playbooks/inventory/target
|
|
-m copy
|
|
-a "src=/etc/bifrost/dell-switch-bmp.conf dest=/etc/dnsmasq.d/dell-switch-bmp.conf"
|
|
-e "ansible_python_interpreter=/var/lib/kolla/venv/bin/python"'
|
|
|
|
- name: Restart bifrost dnsmasq
|
|
command: >
|
|
docker exec bifrost_deploy
|
|
bash -c 'source /bifrost/env-vars &&
|
|
ansible -vvvv target -i /bifrost/playbooks/inventory/target
|
|
-m service
|
|
-a "name=dnsmasq state=restarted"
|
|
-e "ansible_python_interpreter=/var/lib/kolla/venv/bin/python"'
|
|
|
|
- name: Copy Dell switch BMP images
|
|
command: >
|
|
docker exec bifrost_deploy
|
|
bash -c 'source /bifrost/env-vars &&
|
|
ansible -vvvv target -i /bifrost/playbooks/inventory/target
|
|
-m copy
|
|
-a "src=/etc/bifrost/{{ item.dest }} dest={{ dell_switch_bmp_httpboot_path }}/{{ item.dest }}"
|
|
-e "ansible_python_interpreter=/var/lib/kolla/venv/bin/python"'
|
|
with_items: "{{ dell_switch_bmp_images }}"
|