Manage LXD profiles.
New in version 2019.2.0.
René Jochum <rene@jochums.at>
new
python-pylxd
Linux
Ensure a LXD profile is not present, removing it if present.
The name of the profile to remove.
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.
See the requests-docs for the SSL stuff.
Creates or updates LXD profiles
The name of the profile to create/update
A description string
A config dict or None (None = unset).
{'key': 'security.privileged', 'value': '1'}]
A device dict or None (None = unset).
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.
See the lxd-docs for the details about the config and devices dicts. See the requests-docs for the SSL stuff.