Warning
This module will be removed from Salt in version 3009 in favor of the proxmox Salt Extension.
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
Warning
This cloud provider will be removed from Salt in version 3009.0 in favor of the saltext.proxmox Salt Extension
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 True if we are to ignore the specified IP.
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
Return either an 'ipv4' (default) or 'ipv6' address depending on 'protocol' option. The list of 'ipv4' IPs is filtered by ignore_cidr() to remove any unreachable private addresses.
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