Module - tripleo_nova_image_cache

This module provides for the following ansible plugin:

  • tripleo_nova_image_cache

Module Documentation

Manage Nova image cache on TripleO OpenStack deployment

Options

id

ID of the image to cache

ttl

Ensure the image remains cached for at least ttl days

state

Whether the image be present in cache or expired (nova should delete it later if it is no longer used)

scp_source

Attempt to scp the image from this nova-compute host

scp_continue_on_error

Fallback to image download if scp fails

Authors

Oliver Walsh (@owalsh)

Example Tasks

- name: Cache image for at least 2 weeks
  tripleo_nova_image_cache:
    id: ec151bd1-aab4-413c-b577-ced089e7d3f8
    ttl: 14
- name: Allow nova to cleanup this image from cache
  tripleo_nova_image_cache:
    id: ec151bd1-aab4-413c-b577-ced089e7d3f8
    state: expired
- name: Cache image, try to copy from existing host
  tripleo_nova_image_cache:
    id: ec151bd1-aab4-413c-b577-ced089e7d3f8
    ttl: 14
    scp_source: nova-compute-0
    scp_continue_on_error: true