summaryrefslogtreecommitdiffstats
path: root/jjb/cperf/cirros-upload.yaml.ansible
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/cperf/cirros-upload.yaml.ansible')
-rw-r--r--jjb/cperf/cirros-upload.yaml.ansible11
1 files changed, 8 insertions, 3 deletions
diff --git a/jjb/cperf/cirros-upload.yaml.ansible b/jjb/cperf/cirros-upload.yaml.ansible
index bdf5c55c0..bd7d78974 100644
--- a/jjb/cperf/cirros-upload.yaml.ansible
+++ b/jjb/cperf/cirros-upload.yaml.ansible
@@ -2,7 +2,7 @@
- hosts: all
tasks:
- copy:
- src: "{{ item }}"
+ src: "{{ lookup('env', 'WORKSPACE') }}/{{ item }}"
dest: "/home/heat-admin/{{ item }}"
owner: heat-admin
group: heat-admin
@@ -12,6 +12,11 @@
- overcloudrc
- name: Upload cirros glance image
shell: >
- source /home/heat-admin/overcloudrc && openstack image create cirros
- --public --file /home/heat-admin/cirros-0.3.5-x86_64-disk.img
+ source /home/heat-admin/overcloudrc && openstack image create
+ cirros-0.3.5-x86_64-disk --public
+ --file /home/heat-admin/cirros-0.3.5-x86_64-disk.img
--disk-format qcow2 --container-format bare
+ - name: Create nano flavor
+ shell: >
+ source /home/heat-admin/overcloudrc && openstack flavor create
+ --id 42 --ram 64 --disk 0 --vcpus 1 m1.nano