From 25e62400d3d51207f74319a637887a8dfee22036 Mon Sep 17 00:00:00 2001 From: Johan Guldmyr Date: Tue, 30 Jul 2019 07:50:34 +0300 Subject: [PATCH 1/2] Clone in rally-openstack Because it has a nice https://github.com/openstack/rally-openstack/tree/master/samples directory which doesn't come in with "pip install rally-openstack" Before they used to be in rally but in https://github.com/openstack/rally/commit/7addc521c1523f343b7bc15773a9a5d3a413cbf8 they were moved to rally-openstack --- defaults/main.yml | 4 ++++ tasks/main.yml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 4ef87c3..5634b5c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -103,3 +103,7 @@ concurrency: 1 # - "[section1]" # - "setting2 = True" +# Git clone rally-openstack because the sample scenarios are there and they are nice to have +rally_openstack_gitrepo_source: https://github.com/openstack/rally-openstack +rally_openstack_gitrepo_dest: /opt/rally/rally-openstack +#rally_openstack_gitrepo_version: "master" diff --git a/tasks/main.yml b/tasks/main.yml index 4e3198f..24624dd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -44,3 +44,9 @@ - import_tasks: tempest.yml when: configure_tempest + +- name: Create directories for deployments + file: path={{rally_openstack_gitrepo_dest|dirname}} owner=rally group=rally mode=0750 state=directory + +- name: clone openstack/rally-openstack to get the samples directory - useful for tasks + git: repo="{{ rally_openstack_gitrepo_source }}" dest="{{ rally_openstack_gitrepo_dest }}" version="{{ rally_openstack_gitrepo_version|default(omit) }}" From c90ce198cfce0028766fe08152f1555d90fdc1fe Mon Sep 17 00:00:00 2001 From: Johan Guldmyr Date: Tue, 30 Jul 2019 10:13:30 +0300 Subject: [PATCH 2/2] While testing install newer rally: 1.6.0 --- tests/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.yml b/tests/test.yml index ff1762e..3f0c8de 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -13,7 +13,7 @@ - "mysetting = False" - "[section1]" - "setting2 = True" - - rally_install_version: 'stable/0.12' + - rally_install_version: '1.6.0' - tempest_manual_forloop_cleanup: True - clouds: testcloud: