2 # SPDX-license-identifier: Apache-2.0
3 ##############################################################################
4 # Copyright (c) 2017 Ericsson AB and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
13 - ../var/{{ ansible_os_family }}.yml
16 # using these roles here ensures that we can reuse this playbook in different context
17 - role: remove-folders
18 - { role: clone-repository, project: "opnfv/releng", repo: "{{ OPNFV_RELENG_GIT_URL }}", dest: "{{ OPNFV_RELENG_PATH }}", version: "{{ OPNFV_RELENG_VERSION }}" }
19 - { role: clone-repository, project: "opnfv/bifrost", repo: "{{ OPENSTACK_BIFROST_GIT_URL }}", dest: "{{ OPENSTACK_BIFROST_PATH }}", version: "{{ OPENSTACK_BIFROST_VERSION }}" }
25 - ../var/{{ ansible_os_family }}.yml
28 - name: Synchronize local development bifrost repository to XCI paths
29 # command module is much faster than the copy module
31 src: "{{ OPENSTACK_BIFROST_DEV_PATH }}"
32 dest: "{{ OPENSTACK_BIFROST_PATH }}"
36 - OPENSTACK_BIFROST_DEV_PATH != ""
37 - name: Synchronize local development releng repository to XCI paths
39 src: "{{ OPNFV_RELENG_DEV_PATH }}"
40 dest: "{{ OPNFV_RELENG_PATH }}"
44 - OPNFV_RELENG_DEV_PATH != ""
50 - ../var/{{ ansible_os_family }}.yml
53 - name: combine opnfv/releng and openstack/bifrost scripts/playbooks
55 src: "{{ OPNFV_RELENG_PATH }}/prototypes/bifrost/"
56 dest: "{{ OPENSTACK_BIFROST_PATH }}"
62 - ../var/{{ ansible_os_family }}.yml
65 - name: destroy VM nodes created by previous deployment
66 command: "/bin/bash ./scripts/destroy-env.sh"
68 chdir: "{{ OPENSTACK_BIFROST_PATH }}"
73 - ../var/{{ ansible_os_family }}.yml
76 - name: create and provision VM nodes for the flavor {{ XCI_FLAVOR }}
77 command: "/bin/bash ./scripts/bifrost-provision.sh"
79 chdir: "{{ OPENSTACK_BIFROST_PATH }}"