From 27cc08281df661ea06de7ef9990deb5133a2e0e8 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Mon, 12 Nov 2018 10:06:36 +0000 Subject: [PATCH] Fix name of libvirt_vm_image_cache_path variable This was renamed to libvirt_image_cache_path in the defaults and README, but the name referenced in the task files was still libvirt_vm_image_cache_path. This change reverts to the original name, libvirt_vm_image_cache_path. Temporarily support the use of libvirt_image_cache_path until the next major release. --- README.md | 2 +- defaults/main.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ed2c3c..ec24f5b 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Role Variables VM console logs, if a VM-specific log file path is not given. Default is "/var/log/libvirt/qemu/". -- `libvirt_image_cache_path`: The directory in which to cache downloaded +- `libvirt_vm_image_cache_path`: The directory in which to cache downloaded images. Default is "/tmp/". - `libvirt_vm_engine`: virtualisation engine. If not set, the role will attempt diff --git a/defaults/main.yml b/defaults/main.yml index 027618d..9f22427 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -11,6 +11,11 @@ libvirt_volume_default_format: qcow2 libvirt_volume_default_device: disk # Path to cache downloaded images. +libvirt_vm_image_cache_path: "{{ libvirt_image_cache_path }}" + +# NOTE(mgoddard): Temporarily support this name in addition to +# 'libvirt_vm_image_cache_path'. +# TODO(mgoddard): Remove this for the next major release. libvirt_image_cache_path: "/tmp/" # CPU architecture.