...
add_colocation
: Adds a colocation constraints between resourcesclone
: Creates a copy of the VMcreate
: Generates a new resource from a VMcreate_snapshot
: Creates a snapshot of a resourcedisable
: Stops and removes the resource on the clusterenable
: Adds and starts the resource on the clusterget_metadata
: Gets a metadata of a resourcelist
: Lists all resourceslist_metadata
: Lists all keys of a resourcelist_snapshots
: Lists all created snapshotspurge
: Deletes all snapshots of a resourceremove
: Removes the resourceremove_snapshot
: Removes a snapshot of a resourcerollback
: Rollbacks to a snapshot for a resourceset_metadata
: Sets a metadata of a resourcestart
: Start a resourcestatus
: Gets the status of a resourcestop
: Stops a resource
Ansible library
In the seapath-ansible project, there is a ansible library (ansible/library/cluster_vm.py
) to wrap the vm_manager.
Deployment of VM with Ansible
The playbook ansible/playbooks/cluster_setup_deploy_vms.yaml
is used to deploy a virtual machine. There is an ansible library (ansible/library/cluster_vm.py
) to wrap vm_manager.
Configuration
The inventory must define these hosts to run this step:
...