1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

lxd_container: improvements to the comments (#3520)

* improvements to the comments

* next documentation improvements

Co-authored-by: Frank Dornheim <“dornheim@posteo.de@users.noreply.github.com”>
This commit is contained in:
Frank Dornheim 2021-10-07 06:57:45 +02:00 committed by GitHub
parent f1807d3323
commit 57e5f8c7be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,14 +23,14 @@ options:
required: true required: true
architecture: architecture:
description: description:
- The architecture for the container (e.g. "x86_64" or "i686"). - 'The architecture for the container (for example C(x86_64) or C(i686)).
See U(https://github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1) See U(https://github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1).'
type: str type: str
required: false required: false
config: config:
description: description:
- 'The config for the container (e.g. {"limits.cpu": "2"}). - 'The config for the container (for example C({"limits.cpu": "2"})).
See U(https://github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1)' See U(https://github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1).'
- If the container already exists and its "config" values in metadata - If the container already exists and its "config" values in metadata
obtained from GET /1.0/containers/<name> obtained from GET /1.0/containers/<name>
U(https://github.com/lxc/lxd/blob/master/doc/rest-api.md#10containersname) U(https://github.com/lxc/lxd/blob/master/doc/rest-api.md#10containersname)
@ -50,20 +50,20 @@ options:
version_added: 3.7.0 version_added: 3.7.0
profiles: profiles:
description: description:
- Profile to be used by the container - Profile to be used by the container.
type: list type: list
elements: str elements: str
devices: devices:
description: description:
- 'The devices for the container - 'The devices for the container
(e.g. { "rootfs": { "path": "/dev/kvm", "type": "unix-char" }). (for example C({ "rootfs": { "path": "/dev/kvm", "type": "unix-char" }})).
See U(https://github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1)' See U(https://github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1).'
type: dict type: dict
required: false required: false
ephemeral: ephemeral:
description: description:
- Whether or not the container is ephemeral (e.g. true or false). - Whether or not the container is ephemeral (for example C(true) or C(false)).
See U(https://github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1) See U(https://github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1).
required: false required: false
type: bool type: bool
source: source:
@ -75,7 +75,7 @@ options:
"protocol": "lxd", "protocol": "lxd",
"alias": "ubuntu/xenial/amd64" }).' "alias": "ubuntu/xenial/amd64" }).'
- 'See U(https://github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1) for complete API documentation.' - 'See U(https://github.com/lxc/lxd/blob/master/doc/rest-api.md#post-1) for complete API documentation.'
- 'Note that C(protocol) accepts two choices: C(lxd) or C(simplestreams)' - 'Note that C(protocol) accepts two choices: C(lxd) or C(simplestreams).'
required: false required: false
type: dict type: dict
state: state:
@ -151,10 +151,10 @@ options:
trust_password: trust_password:
description: description:
- The client trusted password. - The client trusted password.
- You need to set this password on the LXD server before - 'You need to set this password on the LXD server before
running this module using the following command. running this module using the following command:
lxc config set core.trust_password <some random password> C(lxc config set core.trust_password <some random password>).
See U(https://www.stgraber.org/2016/04/18/lxd-api-direct-interaction/) See U(https://www.stgraber.org/2016/04/18/lxd-api-direct-interaction/).'
- If trust_password is set, this module send a request for - If trust_password is set, this module send a request for
authentication before sending any requests. authentication before sending any requests.
required: false required: false