Merge "Add scale out TCs with availability zone support"
[yardstick.git] / ansible / roles / infra_deploy_openstack / tasks / rampup_openstack.yml
1 # Copyright (c) 2018 Intel Corporation.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 ---
15 - name: Generate passwords
16   shell: kolla-genpwd
17
18 - name: Generate the kolla-build.conf
19   shell: tox -e genconfig
20   args:
21     chdir: "{{ git_repos_path + kolla_path }}"
22
23 - set_fact:
24     target: "{{ git_repos_path + 'all-in-one' }}"
25
26 - set_fact:
27     target: "{{ git_repos_path + 'multinode' }}"
28   when: "groups['ostack'] | length > 1"
29
30 - name: Run kolla-ansible precheck
31   shell: kolla-ansible prechecks -i "{{ target }}"
32
33 - name: Build kolla-ansible
34   shell: kolla-build -b ubuntu -t source --profile default --tag pike --registry {{ ansible_host }}:4000 --push
35
36 - name: Pull images from registry
37   shell: kolla-ansible pull -i "{{ target }}"
38
39 - name: Run kolla-ansible deploy
40   shell: kolla-ansible deploy -i "{{ target }}"
41
42 - name: Create an openrc file
43   shell: kolla-ansible post-deploy