aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/virl/tasks/04-disk-image.yaml
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2018-05-19 15:15:29 +0200
committerPeter Mikus <pmikus@cisco.com>2018-05-30 09:49:59 +0000
commit3a14297dca576dd7e2c9f09d84bf0f5cf58c1938 (patch)
tree56de2207a8260d2204f6ce3bc7dbadcfb6e96417 /resources/tools/testbed-setup/ansible/roles/virl/tasks/04-disk-image.yaml
parent8bb12f5b902cf42c623172c562b4f2752489bc13 (diff)
CSIT-1070 Update Ansible structure
Change-Id: I9adab174f0c15f4c05a93f61b17714fa6542ea5d Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/virl/tasks/04-disk-image.yaml')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/virl/tasks/04-disk-image.yaml27
1 files changed, 27 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/virl/tasks/04-disk-image.yaml b/resources/tools/testbed-setup/ansible/roles/virl/tasks/04-disk-image.yaml
new file mode 100644
index 0000000000..254c05e709
--- /dev/null
+++ b/resources/tools/testbed-setup/ansible/roles/virl/tasks/04-disk-image.yaml
@@ -0,0 +1,27 @@
+---
+ - name: Create server image directory
+ file: path=/home/virl/virl-server-image state=directory mode=0755
+ become: virl
+ - name: Copy UBUNTU server image
+ copy: src=/home/virl/virl-server-image/packer-csit-ubuntu-16.04.1_2017-10-21_2.0-qemu dest=/home/virl/virl-server-image/packer-csit-ubuntu-16.04.1_2017-10-21_2.0-qemu owner=virl group=virl mode=644
+ become: virl
+ - name: Copy CENTOS server image
+ copy: src=/home/virl/virl-server-image/packer-csit-centos-7.3-1611_2017-02-23_1.4-qemu dest=/home/virl/virl-server-image/packer-csit-centos-7.3-1611_2017-02-23_1.4-qemu owner=virl group=virl mode=644
+ become: virl
+ - name: Import UBUNTU server image into glance
+ shell: virl_uwm_client image-create --subtype server --version csit-ubuntu-16.04.1_2017-10-21_2.0 --image-on-server /home/virl/virl-server-image/packer-csit-ubuntu-16.04.1_2017-10-21_2.0-qemu
+ become: virl
+ - name: Import CENTOS server image into glance
+ shell: virl_uwm_client image-create --subtype server --version csit-centos-7.3-1611_2017-02-23_1.4 --image-on-server /home/virl/virl-server-image/packer-csit-centos-7.3-1611_2017-02-23_1.4-qemu
+ become: virl
+ - name: Create common directory
+ file: path=/nfs/common state=directory mode=0755
+ - name: Create Nested VM directory
+ file: path=/nfs/common/nested-vm state=directory mode=0755
+ - name: Copy Nested VM image
+ copy: src=/home/virl/virl-server-image/csit-nested-1.6.img dest=/nfs/common/nested-vm/csit-nested-1.6.img owner=virl group=virl mode=644
+ - name: NFS symlink
+ file:
+ src: /nfs/common/nested-vm-current.img.disabled
+ dest: /nfs/common/nested-vm/csit-nested-1.6.img
+ state: link