From 055c2d8adafd2f06ad49e86dba320fad4b72505c Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 18 Jan 2017 16:09:56 +0000 Subject: [PATCH] ciao-cli: Update examples to use explicit source image Rather that rely on the implicit creation of a storage resource derived from the image_id update the examples to make it explicit how to specify an image source. Signed-off-by: Rob Bradford --- ciao-cli/examples/fedora_cloud.yaml | 7 ++++++- ciao-cli/examples/fedora_cloud_disk.yaml | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ciao-cli/examples/fedora_cloud.yaml b/ciao-cli/examples/fedora_cloud.yaml index 66f1bccf7..9f5711e04 100644 --- a/ciao-cli/examples/fedora_cloud.yaml +++ b/ciao-cli/examples/fedora_cloud.yaml @@ -1,9 +1,14 @@ description: "Fedora VM no storage" vm_type: qemu fw_type: legacy -image_id: "73a86d7e-93c0-480e-9c41-ab42f69b7799" defaults: vcpus: 2 mem_mb: 512 disk_mb: 1024 cloud_init: fedora_vm.yaml +disks: + - source: + service: image + id: "73a86d7e-93c0-480e-9c41-ab42f69b7799" + ephemeral: true + bootable: true diff --git a/ciao-cli/examples/fedora_cloud_disk.yaml b/ciao-cli/examples/fedora_cloud_disk.yaml index 22ec3e227..6fce9370b 100644 --- a/ciao-cli/examples/fedora_cloud_disk.yaml +++ b/ciao-cli/examples/fedora_cloud_disk.yaml @@ -1,12 +1,16 @@ description: "Fedora VM with attached empty storage" vm_type: qemu fw_type: legacy -image_id: "73a86d7e-93c0-480e-9c41-ab42f69b7799" defaults: vcpus: 2 mem_mb: 512 disk_mb: 1024 cloud_init: "fedora_vm.yaml" disks: +- source: + service: image + id: "73a86d7e-93c0-480e-9c41-ab42f69b7799" + bootable: true + ephemeral: true - size: 20 ephemeral: true