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 != ""
45 - name: Copy extra vars to releng and bifrost
47 src: "{{ XCI_EXTRA_VARS_PATH }}"
50 - "{{ OPNFV_RELENG_PATH }}/prototypes/xci/playbooks"
51 - "{{ OPENSTACK_BIFROST_PATH }}/playbooks/inventory"
53 - XCI_EXTRA_VARS_PATH != ""
59 - ../var/{{ ansible_os_family }}.yml
62 - name: combine opnfv/releng and openstack/bifrost scripts/playbooks
64 src: "{{ OPNFV_RELENG_PATH }}/prototypes/bifrost/"
65 dest: "{{ OPENSTACK_BIFROST_PATH }}"
71 - ../var/{{ ansible_os_family }}.yml
74 - name: destroy VM nodes created by previous deployment
75 command: "/bin/bash ./scripts/destroy-env.sh"
77 chdir: "{{ OPENSTACK_BIFROST_PATH }}"
82 - ../var/{{ ansible_os_family }}.yml
85 - name: create and provision VM nodes for the flavor {{ XCI_FLAVOR }}
86 command: "/bin/bash ./scripts/bifrost-provision.sh"
88 chdir: "{{ OPENSTACK_BIFROST_PATH }}"