CPERF: Upload cirros image for CSIT
[releng.git] / jjb / cperf / cirros-upload.yaml.ansible
1 ---
2 - hosts: all
3   tasks:
4     - copy:
5         src: "{{ item }}"
6         dest: "/home/heat-admin/{{ item }}"
7         owner: heat-admin
8         group: heat-admin
9         mode: 0775
10       with_items:
11         - cirros-0.3.5-x86_64-disk.img
12         - overcloudrc
13     - name: Upload cirros glance image
14       shell: >
15         source /home/heat-admin/overcloudrc && openstack image create cirros
16         --public --file /home/heat-admin/cirros-0.3.5-x86_64-disk.img
17         --disk-format qcow2 --container-format bare