New in version 2014.7.0.
The Proxmox cloud module is used to control access to cloud providers using the Proxmox system (KVM / OpenVZ / LXC).
/etc/salt/cloud.providers
or/etc/salt/cloud.providers.d/proxmox.conf
:
my-proxmox-config:
# Proxmox account information
user: myuser@pam or myuser@pve
password: mypassword
url: hypervisor.domain.tld
port: 8006
driver: proxmox
verify_ssl: True
Frank Klaassen <frank@cloudright.nl>
requests >= 2.2.1
IPy >= 0.81
Return a list of the images that are on the provider
CLI Example:
salt-cloud --list-images my-proxmox-config
Return a list of the hypervisors (nodes) which this Proxmox PVE machine manages
CLI Example:
salt-cloud --list-locations my-proxmox-config
Create a single VM from a data dict
CLI Example:
salt-cloud -p proxmox-ubuntu vmhostname
Build and submit the requestdata to create a new node
Destroy a node.
CLI Example:
salt-cloud --destroy mymachine
Return the first configured instance.
Warn if dependencies aren't met.
Retrieve all hypervisors (nodes) available on this environment
CLI Example:
salt-cloud -f get_resources_nodes my-proxmox-config
Retrieve all VMs available on this environment
CLI Example:
salt-cloud -f get_resources_vms my-proxmox-config
Get the status for a VM, either via the ID or the hostname
Get VM configuration
Return a list of the VMs that are managed by the provider
CLI Example:
salt-cloud -Q my-proxmox-config
Return a list of the VMs that are on the provider
CLI Example:
salt-cloud -F my-proxmox-config
Return a list of the VMs that are on the provider, with select fields
CLI Example:
salt-cloud -S my-proxmox-config
Execute the HTTP request to the API
Return the script deployment object
Convenience function for setting VM status
Show the details from Proxmox concerning an instance
Shutdown a node via ACPI.
CLI Example:
salt-cloud -a shutdown mymachine
Start a node.
CLI Example:
salt-cloud -a start mymachine
Stop a node ("pulling the plug").
CLI Example:
salt-cloud -a stop mymachine
Wait until a the vm has been created successfully
Wait until a specific state has been reached on a node
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 3004
salt.cloud.clouds.profitbricks