Change-Id: I36a01632299fe2fa38a6e328ae5cad9eeb3b06ae
This commit is contained in:
pkomarov 2019-06-24 09:44:32 +03:00
parent 1c56bb1832
commit 52e9f80a19
3 changed files with 5 additions and 5 deletions

View File

@ -12,8 +12,8 @@
- name: Set up Overcloud resources create cirros img - name: Set up Overcloud resources create cirros img
shell: | shell: |
source "{{ test.overcloudrc }}" source "{{ test.overcloudrc }}"
openstack image list --status active --limit 1 -f value -c Name| \ openstack image list --name cirros --status active --limit 1 \
grep -q -w cirros || \ -f value -c Name| grep -q -w cirros || \
openstack image create cirros \ openstack image create cirros \
--file cirros-0.4.0-x86_64-disk.img \ --file cirros-0.4.0-x86_64-disk.img \
--disk-format qcow2 \ --disk-format qcow2 \

View File

@ -7,4 +7,4 @@ image = cirros
flavor = m1.tiny flavor = m1.tiny
key_file = ~/.ssh/id_rsa key_file = ~/.ssh/id_rsa
[neutron] [neutron]
floating_network = "{{ test.external_net }}" floating_network = "{{ test.floating_network }}"

View File

@ -31,11 +31,11 @@ subparsers:
default: "{{ ansible_env.HOME }}/tobiko_venv" default: "{{ ansible_env.HOME }}/tobiko_venv"
help: | help: |
path of existing virtual environment path of existing virtual environment
external_net: floating_network:
type: Value type: Value
default: "public" default: "public"
help: | help: |
Name of overcloud's external-net Name of overcloud's floating_network
tests: tests:
type: Value type: Value
help: | help: |