aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-08-31 16:26:08 +0000
committerGerrit Code Review <review@openstack.org>2016-08-31 16:26:08 +0000
commitf3fedb8befba64020b35543531415db752338211 (patch)
tree303f43d8fc4c2439942655703e72469d21763133 /ansible
parent983b26e8358a6b059f6c53175b0f66b2ff479362 (diff)
parent96b3f0ae3e547f586eb1b1e003e015a664639d16 (diff)
downloadkolla-f3fedb8befba64020b35543531415db752338211.tar.gz
kolla-f3fedb8befba64020b35543531415db752338211.zip
Merge "add bifrost deploy ansible support"
Diffstat (limited to 'ansible')
-rw-r--r--ansible/bifrost.yml5
-rw-r--r--ansible/roles/bifrost/tasks/bootstrap.yml9
-rw-r--r--ansible/roles/bifrost/tasks/deploy.yml2
-rw-r--r--ansible/roles/bifrost/tasks/start.yml13
4 files changed, 29 insertions, 0 deletions
diff --git a/ansible/bifrost.yml b/ansible/bifrost.yml
new file mode 100644
index 000000000..bf29352b6
--- /dev/null
+++ b/ansible/bifrost.yml
@@ -0,0 +1,5 @@
+---
+- hosts: localhost
+ roles:
+ - { role: bifrost,
+ tags: bifrost}
diff --git a/ansible/roles/bifrost/tasks/bootstrap.yml b/ansible/roles/bifrost/tasks/bootstrap.yml
new file mode 100644
index 000000000..d4cb0fa79
--- /dev/null
+++ b/ansible/roles/bifrost/tasks/bootstrap.yml
@@ -0,0 +1,9 @@
+---
+- name: Bootstrap bifrost (this may take several minutes)
+ command: >
+ docker exec bifrost_deploy
+ bash -c '/bifrost/scripts/env-setup.sh && source /bifrost/env-vars
+ && source /opt/stack/ansible/hacking/env-setup &&
+ ansible-playbook -vvvv -i /bifrost/playbooks/inventory/localhost
+ /bifrost/playbooks/install.yaml -e @/etc/bifrost/bifrost.yml
+ -e @/etc/bifrost/dib.yml -e skip_package_install=true'
diff --git a/ansible/roles/bifrost/tasks/deploy.yml b/ansible/roles/bifrost/tasks/deploy.yml
index d8717127f..c1a47564f 100644
--- a/ansible/roles/bifrost/tasks/deploy.yml
+++ b/ansible/roles/bifrost/tasks/deploy.yml
@@ -1,3 +1,5 @@
---
- include: config.yml
+- include: start.yml
+- include: bootstrap.yml
diff --git a/ansible/roles/bifrost/tasks/start.yml b/ansible/roles/bifrost/tasks/start.yml
new file mode 100644
index 000000000..251ceb94c
--- /dev/null
+++ b/ansible/roles/bifrost/tasks/start.yml
@@ -0,0 +1,13 @@
+---
+- name: Starting bifrost deploy container
+ kolla_docker:
+ action: "start_container"
+ common_options: "{{ docker_common_options }}"
+ image: "{{ bifrost_deploy_image_full }}"
+ name: "bifrost_deploy"
+ privileged: True
+ volumes:
+ - "{{ node_config_directory }}/bifrost/:/etc/bifrost:ro"
+ - "/etc/localtime:/etc/localtime:ro"
+ - "/dev:/dev"
+