Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- version: '2.0'
- name: backup_workflows
- workflows:
- snapshot:
- output:
- snapshots_id: <% $.volumes_list %>
- tasks:
- list_volumes:
- action: cinder.volumes_list
- publish:
- volumes_list: <% task(list_volumes).result.where($.metadata.get("snapshot") = True).select($.id) %>
- on-success:
- - snapshot_volume
- snapshot_volume:
- with-items: volume_id in <% $.volumes_list %>
- action: cinder.volume_snapshots_create volume_id=<% $.volume_id %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement