The Linode cloud module is used to control access to the Linode VPS system
Use of this module only requires the apikey
parameter.
depends: | linode-python >= 1.1.1 |
---|
OR :depends: apache-libcloud >= 0.13.2
Note
The linode-python driver will work with earlier versions of linode-python, but it is highly recommended to use a minimum version of 1.1.1. Earlier versions leak sensitive information into the debug logs.
Set up the cloud configuration at /etc/salt/cloud.providers
or
/etc/salt/cloud.providers.d/linode.conf
:
When used with linode-python, this provider supports cloning existing Linodes.
To clone, add a profile with a clonefrom
key, and a script_args: -C
.
Clonefrom
should be the name of the that is the source for the clone.
script_args: -C
passes a -C to the bootstrap script, which only configures
the minion and doesn't try to install a new copy of salt-minion. This way the
minion gets new keys and the keys get pre-seeded on the master, and the
/etc/salt/minion file has the right 'id:' declaration.
Cloning requires a post 2015-02-01 salt-bootstrap.
salt.cloud.clouds.linode.
avail_images
(conn=None, call=None)Return a dict of all available VM images on the cloud provider with relevant data
salt.cloud.clouds.linode.
avail_locations
(conn=None, call=None)Return a dict of all available VM locations on the cloud provider with relevant data
salt.cloud.clouds.linode.
avail_sizes
(conn=None, call=None)Return a dict of all available VM images on the cloud provider with relevant data
salt.cloud.clouds.linode.
create_config
(vm_, LinodeID=None, root_disk_id=None, swap_disk_id=None)Create a Linode Config
salt.cloud.clouds.linode.
create_disk_from_distro
(vm_=None, LinodeID=None, swapsize=None)Create the disk for the linode
salt.cloud.clouds.linode.
create_swap_disk
(vm_=None, LinodeID=None, swapsize=None)Create the disk for the linode
salt.cloud.clouds.linode.
get_auth
(vm_)Return either NodeAuthSSHKey or NodeAuthPassword, preferring NodeAuthSSHKey if both are provided.
salt.cloud.clouds.linode.
get_one_kernel
(conn=None, name=None)Return data on one kernel name=None returns latest kernel
salt.cloud.clouds.linode.
get_ssh_key_filename
(vm_)Return path to filename if get_auth() returns a NodeAuthSSHKey.
salt.cloud.clouds.linode.
list_nodes
(conn=None, call=None)Return a list of the VMs that are on the provider
salt.cloud.clouds.linode.
list_nodes_full
(conn=None, call=None)Return a list of the VMs that are on the provider, with all fields
salt.cloud.clouds.linode.
list_nodes_select
(conn=None, call=None)Return a list of the VMs that are on the provider, with select fields
salt.cloud.clouds.linode.
remove_complex_types
(dictionary)Linode-python is now returning some complex types that are not serializable by msgpack. Kill those.