64c40e20a5
- This change extends kolla-ansible with a deploy-server command to enroll and deploy physical servers with bifrost. Change-Id: Iaa9f34b00e676569f6e3df679b7454b1ec0b8e34 Implements: blueprint bifrost-support
22 lines
951 B
YAML
22 lines
951 B
YAML
---
|
|
- name: Enrolling physical servers with ironic
|
|
command: >
|
|
docker exec bifrost_deploy
|
|
bash -c 'source /bifrost/env-vars
|
|
&& source /opt/stack/ansible/hacking/env-setup &&
|
|
export BIFROST_INVENTORY_SOURCE=/etc/bifrost/servers.yml &&
|
|
ansible-playbook -vvvv -i /bifrost/playbooks/inventory/bifrost_inventory.py
|
|
/bifrost/playbooks/enroll-dynamic.yaml -e "ansible_python_interpreter=/var/lib/kolla/venv/bin/python"
|
|
-e @/etc/bifrost/bifrost.yml'
|
|
|
|
- name: deploy physical servers with ironic
|
|
command: >
|
|
docker exec bifrost_deploy
|
|
bash -c 'source /bifrost/env-vars
|
|
&& source /opt/stack/ansible/hacking/env-setup &&
|
|
export BIFROST_INVENTORY_SOURCE=/etc/bifrost/servers.yml &&
|
|
ansible-playbook -vvvv -i /bifrost/playbooks/inventory/bifrost_inventory.py
|
|
/bifrost/playbooks/deploy-dynamic.yaml -e "ansible_python_interpreter=/var/lib/kolla/venv/bin/python"
|
|
-e @/etc/bifrost/bifrost.yml'
|
|
|