salt.states.lxd_profile

Manage LXD profiles.

New in version 2019.2.0.

maintainer

René Jochum <rene@jochums.at>

maturity

new

depends

python-pylxd

platform

Linux

salt.states.lxd_profile.absent(name, remote_addr=None, cert=None, key=None, verify_cert=True)

Ensure a LXD profile is not present, removing it if present.

name :

The name of the profile to remove.

remote_addr :

An URL to a remote Server, you also have to give cert and key if you provide remote_addr!

Examples:

https://myserver.lan:8443 /var/lib/mysocket.sock

cert :

PEM Formatted SSL Zertifikate.

Examples:

~/.config/lxc/client.crt

key :

PEM Formatted SSL Key.

Examples:

~/.config/lxc/client.key

verify_certTrue

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.

salt.states.lxd_profile.present(name, description=None, config=None, devices=None, remote_addr=None, cert=None, key=None, verify_cert=True)

Creates or updates LXD profiles

name :

The name of the profile to create/update

description :

A description string

config :

A config dict or None (None = unset).

Can also be a list:
[{'key': 'boot.autostart', 'value': 1},

{'key': 'security.privileged', 'value': '1'}]

devices :

A device dict or None (None = unset).

remote_addr :

An URL to a remote Server, you also have to give cert and key if you provide remote_addr!

Examples:

https://myserver.lan:8443 /var/lib/mysocket.sock

cert :

PEM Formatted SSL Zertifikate.

Examples:

~/.config/lxc/client.crt

key :

PEM Formatted SSL Key.

Examples:

~/.config/lxc/client.key

verify_certTrue

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.

© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/states/all/salt.states.lxd_profile.html