aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/playbooks/04-disk-image.yaml
diff options
context:
space:
mode:
authorCarsten Koester <ckoester@cisco.com>2016-05-08 01:27:47 -0400
committerDave Wallace <dwallacelf@gmail.com>2016-06-02 17:20:05 +0000
commitbca7bcede75d4fa3713a2317b87820d4d3439b7b (patch)
treebb122fd8298b30cefb79798706cfa4788054d5aa /resources/tools/testbed-setup/playbooks/04-disk-image.yaml
parent55b4465a5c7ab8d8b340d67f1e11ba06a3ce39ea (diff)
Add documentation and files related to initial host setup
Change-Id: I73deeb79e57ac7eca208faa49d04be37c7034163 Signed-off-by: Carsten Koester <ckoester@cisco.com>
Diffstat (limited to 'resources/tools/testbed-setup/playbooks/04-disk-image.yaml')
-rw-r--r--resources/tools/testbed-setup/playbooks/04-disk-image.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/playbooks/04-disk-image.yaml b/resources/tools/testbed-setup/playbooks/04-disk-image.yaml
new file mode 100644
index 0000000000..884a8db65b
--- /dev/null
+++ b/resources/tools/testbed-setup/playbooks/04-disk-image.yaml
@@ -0,0 +1,11 @@
+---
+- hosts: virl
+ remote_user: virl
+ tasks:
+ - name: Create server image directory
+ file: path=/home/virl/virl-server-image state=directory mode=0755
+ - name: Copy server image
+ copy: src=files/virl-server-image/server.qcow2 dest=/home/virl/virl-server-image/server.qcow2 mode=644
+# TODO: Need to make this conditional, and find a good source for the image.
+ - name: Import server image into glance
+ shell: virl_uwm_client image-create --subtype server --version java-nested --release 14.04.03 --image-on-server /home/virl/virl-server-image/server.qcow2