Hi,
I'd say that Ansible scripts run from the manager are the way to go.
We're doing export / import of OVAs from one local storage to another that way
Exemple to export OVAs :
- hosts: localhost
connection: local
become: yes
become_method: sudo
gather_facts: no
vars:
olvm: localhost
olvm_user: admin@internal
cluster: cluster-xxxxxxxx-local
host: yyyyyyyyyy
exportDirectory: '/mnt/ova'
vms:
- VM1
- VM2
- VM3
vars_files:
- password.yml
tasks:
- name: Login to OLVM manager
ovirt_auth:
hostname: "{{ olvm }}"
username: "{{ olvm_user }}"
password: "{{ olvm_password }}"
ca_file: "{{ olvm_cafile | default(omit) }}"
insecure: "{{ olvm_insecure | default(true) }}"
tags:
- always
- name: Export VM as OVA
ovirt_vm:
auth: "{{ ovirt_auth }}"
name: "{{ item }}"
state: exported
cluster: "{{ cluster }}"
export_ova:
host: "{{ host }}"
filename: "{{ item }}.ova"
directory: "{{ exportDirectory }}"
wait: true
loop: "{{ vms }}"
- name: Cleanup OLVM auth token
ovirt_auth:
ovirt_auth: "{{ ovirt_auth }}"
state: absent