Manage LXD images.
New in version 2019.2.0.
René Jochum <rene@jochums.at>
new
python-pylxd
Linux
An alias or fingerprint of the image to check and delete.
An URL to a remote Server, you also have to give cert and key if you provide remote_addr!
https://myserver.lan:8443 /var/lib/mysocket.sock
PEM Formatted SSL Zertifikate.
~/.config/lxc/client.crt
PEM Formatted SSL Key.
~/.config/lxc/client.key
Wherever to verify the cert, this is by default True but in the most cases you want to set it off as LXD normally uses self-signed certificates.
Ensure an image exists, copy it else from source
An alias of the image, this is used to check if the image exists and it will be added as alias to the image on copy/create.
Source dict.
For an LXD to LXD copy:
source:
type: lxd
name: ubuntu/xenial/amd64 # This can also be a fingerprint.
remote_addr: https://images.linuxcontainers.org:8443
cert: ~/.config/lxd/client.crt
key: ~/.config/lxd/client.key
verify_cert: False
From file:
source:
type: file
filename: salt://lxd/files/busybox.tar.xz
saltenv: base
From simplestreams:
source:
type: simplestreams
server: https://cloud-images.ubuntu.com/releases
name: xenial/amd64
From an URL:
source:
type: url
url: https://dl.stgraber.org/lxd
List of aliases to append, can be empty.
None on source_type LXD means copy source None on source_type file means False
None on source_type LXD means copy source source_type file does not have auto-update.
An URL to a remote Server, you also have to give cert and key if you provide remote_addr!
https://myserver.lan:8443 /var/lib/mysocket.sock
PEM Formatted SSL Zertifikate.
~/.config/lxc/client.crt
PEM Formatted SSL Key.
~/.config/lxc/client.key
Wherever to verify the cert, this is by default True but in the most cases you want to set it off as LXD normally uses self-signed certificates.