diff --git a/main/CHANGELOG.html b/main/CHANGELOG.html index 6f58be9..864e9fa 100644 --- a/main/CHANGELOG.html +++ b/main/CHANGELOG.html @@ -1,14 +1,16 @@ - + - + KubeVirt Collection for Ansible Release Notes — Kubevirt Ansible Collection documentation - - - - + + + + + + diff --git a/main/CONTRIBUTING.html b/main/CONTRIBUTING.html index 72433a7..d44a9da 100644 --- a/main/CONTRIBUTING.html +++ b/main/CONTRIBUTING.html @@ -1,14 +1,16 @@ - + - + Contributing — Kubevirt Ansible Collection documentation - - - - + + + + + + diff --git a/main/README.html b/main/README.html index a6d17f3..b438bc6 100644 --- a/main/README.html +++ b/main/README.html @@ -1,14 +1,16 @@ - + - + Lean Ansible bindings for KubeVirt — Kubevirt Ansible Collection documentation - - - - + + + + + + @@ -116,7 +118,7 @@

Ansible version compatibility

-

This collection has been tested against following Ansible versions: >=2.9.10.

+

This collection has been tested against following Ansible versions: >=2.14.0.

diff --git a/main/_sources/README.md.txt b/main/_sources/README.md.txt index 9963b1e..cb90fc6 100644 --- a/main/_sources/README.md.txt +++ b/main/_sources/README.md.txt @@ -8,7 +8,7 @@ This repository hosts the `kubevirt.core` Ansible Collection, which provides vir ## Ansible version compatibility -This collection has been tested against following Ansible versions: **>=2.9.10**. +This collection has been tested against following Ansible versions: **>=2.14.0**. ## Included content diff --git a/main/_sources/plugins/kubevirt.rst.txt b/main/_sources/plugins/kubevirt.rst.txt index 4461092..1d9c855 100644 --- a/main/_sources/plugins/kubevirt.rst.txt +++ b/main/_sources/plugins/kubevirt.rst.txt @@ -6,23 +6,8 @@ .. |antsibull-internal-nbsp| unicode:: 0xA0 :trim: -.. role:: ansible-attribute-support-label -.. role:: ansible-attribute-support-property -.. role:: ansible-attribute-support-full -.. role:: ansible-attribute-support-partial -.. role:: ansible-attribute-support-none -.. role:: ansible-attribute-support-na -.. role:: ansible-option-type -.. role:: ansible-option-elements -.. role:: ansible-option-required -.. role:: ansible-option-versionadded -.. role:: ansible-option-aliases -.. role:: ansible-option-choices -.. role:: ansible-option-choices-default-mark -.. role:: ansible-option-default-bold -.. role:: ansible-option-configuration -.. role:: ansible-option-returned-bold -.. role:: ansible-option-sample-bold +.. meta:: + :antsibull-docs: 2.5.0 .. Anchors @@ -38,7 +23,10 @@ kubevirt -- KubeVirt inventory source .. Collection note .. note:: - This inventory plugin is part of the `kubevirt.core collection `_. + This inventory plugin is part of the `kubevirt.core collection `_. + + It is not included in ``ansible-core``. + To check whether it is installed, run :code:`ansible-galaxy collection list`. To install it, use: :code:`ansible-galaxy collection install kubevirt.core`. You need further requirements to be able to use this inventory plugin, @@ -92,1742 +80,753 @@ The below requirements are needed on the local controller node that executes thi Parameters ---------- -.. rst-class:: ansible-option-table +.. raw:: html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

Comments

+
+

cache

+ +

+ boolean +

+ +
+

Toggle to enable/disable the caching of the inventory's source data, requires a cache plugin setup to work.

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +

Configuration:

+
    +
  • +

    INI entry

    +
    [inventory]
    +  cache = false
    + +
  • +
  • +

    Environment variable: ANSIBLE_INVENTORY_CACHE

    + +
  • +
+
+
+

cache_connection

+ +

+ string +

+ +
+

Cache connection data or path, read cache plugin documentation for specifics.

+

Configuration:

+
    +
  • +

    INI entries

    +
    [defaults]
    +  fact_caching_connection = VALUE
    + +
    [inventory]
    +  cache_connection = VALUE
    + +
  • +
  • +

    Environment variable: ANSIBLE_CACHE_PLUGIN_CONNECTION

    + +
  • +
  • +

    Environment variable: ANSIBLE_INVENTORY_CACHE_CONNECTION

    + +
  • +
+
+
+

cache_plugin

+ +

+ string +

+ +
+

Cache plugin to use for the inventory's source data.

+

Default: "memory"

+

Configuration:

+
    +
  • +

    INI entries

    +
    [defaults]
    +  fact_caching = memory
    + +
    [inventory]
    +  cache_plugin = memory
    + +
  • +
  • +

    Environment variable: ANSIBLE_CACHE_PLUGIN

    + +
  • +
  • +

    Environment variable: ANSIBLE_INVENTORY_CACHE_PLUGIN

    + +
  • +
+
+
+

cache_prefix

+ +

+ string +

+ +
+

Prefix to use for cache plugin files/tables

+

Default: "ansible_inventory_"

+

Configuration:

+
    +
  • +

    INI entries

    +
    [defaults]
    +  fact_caching_prefix = ansible_inventory_
    + +
    [inventory]
    +  cache_prefix = ansible_inventory_
    + +
  • +
  • +

    Environment variable: ANSIBLE_CACHE_PLUGIN_PREFIX

    + +
  • +
  • +

    Environment variable: ANSIBLE_INVENTORY_CACHE_PLUGIN_PREFIX

    + +
  • +
+
+
+

cache_timeout

+ +

+ integer +

+ +
+

Cache duration in seconds

+

Default: 3600

+

Configuration:

+
    +
  • +

    INI entries

    +
    [defaults]
    +  fact_caching_timeout = 3600
    + +
    [inventory]
    +  cache_timeout = 3600
    + +
  • +
  • +

    Environment variable: ANSIBLE_CACHE_PLUGIN_TIMEOUT

    + +
  • +
  • +

    Environment variable: ANSIBLE_INVENTORY_CACHE_TIMEOUT

    + +
  • +
+
+
+

compose

+ +

+ dictionary +

+ +
+

Create vars from jinja2 expressions.

+

Default: {}

+
+
+

connections

+ +

+ string +

+ +
+

Optional list of cluster connection settings. If no connections are provided, the default ~/.kube/config and active context will be used, and objects will be returned for all namespaces the active user is authorized to access.

+
+
+

api_key

+ +

+ string +

+ +
+

Token used to authenticate with the API. Can also be specified via K8S_AUTH_API_KEY environment variable.

+
+
+

api_version

+ +

+ string +

+ +
+

Specify the used KubeVirt API version.

+

Default: "kubevirt.io/v1"

+
+
+
+

ca_cert

+ +

aliases: ssl_ca_cert

+

+ string +

+ +
+

Path to a CA certificate used to authenticate with the API. Can also be specified via K8S_AUTH_SSL_CA_CERT environment variable.

+
+
+
+

client_cert

+ +

aliases: cert_file

+

+ string +

+ +
+

Path to a certificate used to authenticate with the API. Can also be specified via K8S_AUTH_CERT_FILE environment variable.

+
+
+
+

client_key

+ +

aliases: key_file

+

+ string +

+ +
+

Path to a key file used to authenticate with the API. Can also be specified via K8S_AUTH_KEY_FILE environment variable.

+
+
+

context

+ +

+ string +

+ +
+

The name of a context found in the config file. Can also be specified via K8S_AUTH_CONTEXT environment variable.

+
+
+

create_groups

+ +

+ boolean +

+ +
+

Enable the creation of groups from labels on VirtualMachines.

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +
+
+

host

+ +

+ string +

+ +
+

Provide a URL for accessing the API. Can also be specified via K8S_AUTH_HOST environment variable.

+
+
+

kube_secondary_dns

+ +

+ boolean +

+ +
+

Enable kubesecondarydns derived host names when using a secondary network interface.

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +
+
+

kubeconfig

+ +

+ string +

+ +
+

Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the Kubernetes client will attempt to load the default configuration file from ~/.kube/config. Can also be specified via K8S_AUTH_KUBECONFIG environment variable.

+
+
+

label_selector

+ +

+ string +

+ +
+

Define a label selector to select a subset of the fetched VirtualMachineInstances.

+
+
+

name

+ +

+ string +

+ +
+

Optional name to assign to the cluster. If not provided, a name is constructed from the server and port.

+
+
+

namespaces

+ +

+ string +

+ +
+

List of namespaces. If not specified, will fetch all VirtualMachineInstances for all namespaces the user is authorized to access.

+
+
+
+

network_name

+ +

aliases: interface_name

+

+ string +

+ +
+

In case multiple networks are attached to a VirtualMachineInstance, define which interface should be returned as primary IP address.

+
+
+

password

+ +

+ string +

+ +
+

Provide a password for authenticating with the API. Can also be specified via K8S_AUTH_PASSWORD environment variable.

+
+
+

use_service

+ +

+ boolean +

+ +
+

Enable the use of services to establish an SSH connection to the VirtualMachine.

+

Choices:

+
    +
  • false

  • +
  • true ← (default)

  • +
+ +
+
+

username

+ +

+ string +

+ +
+

Provide a username for authenticating with the API. Can also be specified via K8S_AUTH_USERNAME environment variable.

+
+
+
+

validate_certs

+ +

aliases: verify_ssl

+

+ boolean +

+ +
+

Whether or not to verify the API server's SSL certificates. Can also be specified via K8S_AUTH_VERIFY_SSL environment variable.

+

Choices:

+
    +
  • false

  • +
  • true

  • +
+ +
+
+

groups

+ +

+ dictionary +

+ +
+

Add hosts to group based on Jinja2 conditionals.

+

Default: {}

+
+
+

host_format

+ +

+ string +

+ +
+

Specify the format of the host in the inventory group. Available specifiers: name, namespace, uid.

+

Default: "{namespace}-{name}"

+
+
+

keyed_groups

+ +

+ list + / elements=dictionary +

+ +
+

Add hosts to group based on the values of a variable.

+

Default: []

+
+
+

default_value

+ +

+ string +

+

added in ansible-core 2.12

+ +
+

The default value when the host variable's value is an empty string.

+

This option is mutually exclusive with keyed_groups[].trailing_separator.

+
+
+

key

+ +

+ string +

+ +
+

The key from input dictionary used to generate groups

+
+
+

parent_group

+ +

+ string +

+ +
+

parent group for keyed group

+
+
+

prefix

+ +

+ string +

+ +
+

A keyed group name will start with this prefix

+

Default: ""

+
+
+

separator

+ +

+ string +

+ +
+

separator used to build the keyed group name

+

Default: "_"

+
+
+

trailing_separator

+ +

+ boolean +

+

added in ansible-core 2.12

+ +
+

Set this option to False to omit the keyed_groups[].separator after the host variable when the value is an empty string.

+

This option is mutually exclusive with keyed_groups[].default_value.

+

Choices:

+
    +
  • false

  • +
  • true ← (default)

  • +
+ +
+
+

leading_separator

+ +

+ boolean +

+

added in ansible-core 2.11

+ +
+

Use in conjunction with keyed_groups.

+

By default, a keyed group that does not have a prefix or a separator provided will have a name that starts with an underscore.

+

This is because the default prefix is "" and the default separator is "_".

+

Set this option to False to omit the leading underscore (or other separator) if no prefix is given.

+

If the group name is derived from a mapping the separator is still used to concatenate the items.

+

To not use a separator in the group name at all, set the separator for the keyed group to an empty string instead.

+

Choices:

+
    +
  • false

  • +
  • true ← (default)

  • +
+ +
+
+

plugin

+ +

+ string + / required +

+ +
+

Token that ensures this is a source file for the "kubevirt" plugin.

+

Choices:

+
    +
  • "kubevirt"

  • +
  • "kubevirt.core.kubevirt"

  • +
+ +
+
+

strict

+ +

+ boolean +

+ +
+

If yes make invalid entries a fatal error, otherwise skip and continue.

+

Since it is possible to use facts in the expressions they might not always be available and we ignore those errors by default.

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +
+
+

use_extra_vars

+ +

+ boolean +

+

added in ansible-core 2.11

+ +
+

Merge extra vars into the available variables for composition (highest precedence).

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +

Configuration:

+
    +
  • +

    INI entry

    +
    [inventory_plugins]
    +  use_extra_vars = false
    + +
  • +
  • +

    Environment variable: ANSIBLE_INVENTORY_USE_EXTRA_VARS

    + +
  • +
+
-.. list-table:: - :width: 100% - :widths: auto - :header-rows: 1 - - * - Parameter - - Comments - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-cache: - - .. rst-class:: ansible-option-title - - **cache** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Toggle to enable/disable the caching of the inventory's source data, requires a cache plugin setup to work. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - - :ansible-option-choices-entry:`true` - - - .. rst-class:: ansible-option-line - - :ansible-option-configuration:`Configuration:` - - - INI entry: - - .. code-block:: - - [inventory] - cache = false - - - - Environment variable: :envvar:`ANSIBLE\_INVENTORY\_CACHE` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-cache_connection: - - .. rst-class:: ansible-option-title - - **cache_connection** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Cache connection data or path, read cache plugin documentation for specifics. - - - .. rst-class:: ansible-option-line - - :ansible-option-configuration:`Configuration:` - - - INI entries: - - .. code-block:: - - [defaults] - fact_caching_connection = VALUE - - - - .. code-block:: - - [inventory] - cache_connection = VALUE - - - - Environment variable: :envvar:`ANSIBLE\_CACHE\_PLUGIN\_CONNECTION` - - - Environment variable: :envvar:`ANSIBLE\_INVENTORY\_CACHE\_CONNECTION` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-cache_plugin: - - .. rst-class:: ansible-option-title - - **cache_plugin** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Cache plugin to use for the inventory's source data. - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`"memory"` - - .. rst-class:: ansible-option-line - - :ansible-option-configuration:`Configuration:` - - - INI entries: - - .. code-block:: - - [defaults] - fact_caching = memory - - - - .. code-block:: - - [inventory] - cache_plugin = memory - - - - Environment variable: :envvar:`ANSIBLE\_CACHE\_PLUGIN` - - - Environment variable: :envvar:`ANSIBLE\_INVENTORY\_CACHE\_PLUGIN` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-cache_prefix: - - .. rst-class:: ansible-option-title - - **cache_prefix** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Prefix to use for cache plugin files/tables - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`"ansible\_inventory\_"` - - .. rst-class:: ansible-option-line - - :ansible-option-configuration:`Configuration:` - - - INI entries: - - .. code-block:: - - [default] - fact_caching_prefix = ansible_inventory_ - - - Removed in: version 2.16 of ansible.builtin - - - Why: Fixes typing error in INI section name - - Alternative: Use the 'defaults' section instead - - - - .. code-block:: - - [defaults] - fact_caching_prefix = ansible_inventory_ - - - - .. code-block:: - - [inventory] - cache_prefix = ansible_inventory_ - - - - Environment variable: :envvar:`ANSIBLE\_CACHE\_PLUGIN\_PREFIX` - - - Environment variable: :envvar:`ANSIBLE\_INVENTORY\_CACHE\_PLUGIN\_PREFIX` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-cache_timeout: - - .. rst-class:: ansible-option-title - - **cache_timeout** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`integer` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Cache duration in seconds - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`3600` - - .. rst-class:: ansible-option-line - - :ansible-option-configuration:`Configuration:` - - - INI entries: - - .. code-block:: - - [defaults] - fact_caching_timeout = 3600 - - - - .. code-block:: - - [inventory] - cache_timeout = 3600 - - - - Environment variable: :envvar:`ANSIBLE\_CACHE\_PLUGIN\_TIMEOUT` - - - Environment variable: :envvar:`ANSIBLE\_INVENTORY\_CACHE\_TIMEOUT` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-compose: - - .. rst-class:: ansible-option-title - - **compose** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`dictionary` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Create vars from jinja2 expressions. - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`{}` - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections: - - .. rst-class:: ansible-option-title - - **connections** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Optional list of cluster connection settings. If no connections are provided, the default \ :emphasis:`~/.kube/config`\ and active context will be used, and objects will be returned for all namespaces the active user is authorized to access. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/api_key: - - .. rst-class:: ansible-option-title - - **api_key** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Token used to authenticate with the API. Can also be specified via K8S\_AUTH\_API\_KEY environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/api_version: - - .. rst-class:: ansible-option-title - - **api_version** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify the used KubeVirt API version. - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`"kubevirt.io/v1"` - - .. raw:: html - -
- - * - .. raw:: html - -
-
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/ca_cert: - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/ssl_ca_cert: - - .. rst-class:: ansible-option-title - - **ca_cert** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-aliases:`aliases: ssl_ca_cert` - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Path to a CA certificate used to authenticate with the API. Can also be specified via K8S\_AUTH\_SSL\_CA\_CERT environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/cert_file: - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/client_cert: - - .. rst-class:: ansible-option-title - - **client_cert** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-aliases:`aliases: cert_file` - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Path to a certificate used to authenticate with the API. Can also be specified via K8S\_AUTH\_CERT\_FILE environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/client_key: - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/key_file: - - .. rst-class:: ansible-option-title - - **client_key** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-aliases:`aliases: key_file` - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Path to a key file used to authenticate with the API. Can also be specified via K8S\_AUTH\_KEY\_FILE environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/context: - - .. rst-class:: ansible-option-title - - **context** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - The name of a context found in the config file. Can also be specified via K8S\_AUTH\_CONTEXT environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/create_groups: - - .. rst-class:: ansible-option-title - - **create_groups** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Enable the creation of groups from labels on VirtualMachines. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - - :ansible-option-choices-entry:`true` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/host: - - .. rst-class:: ansible-option-title - - **host** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Provide a URL for accessing the API. Can also be specified via K8S\_AUTH\_HOST environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/kube_secondary_dns: - - .. rst-class:: ansible-option-title - - **kube_secondary_dns** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Enable kubesecondarydns derived host names when using a secondary network interface. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - - :ansible-option-choices-entry:`true` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/kubeconfig: - - .. rst-class:: ansible-option-title - - **kubeconfig** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the Kubernetes client will attempt to load the default configuration file from \ :emphasis:`~/.kube/config`\ . Can also be specified via K8S\_AUTH\_KUBECONFIG environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/label_selector: - - .. rst-class:: ansible-option-title - - **label_selector** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Define a label selector to select a subset of the fetched VirtualMachineInstances. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/name: - - .. rst-class:: ansible-option-title - - **name** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Optional name to assign to the cluster. If not provided, a name is constructed from the server and port. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/namespaces: - - .. rst-class:: ansible-option-title - - **namespaces** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - List of namespaces. If not specified, will fetch all VirtualMachineInstances for all namespaces the user is authorized to access. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/interface_name: - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/network_name: - - .. rst-class:: ansible-option-title - - **network_name** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-aliases:`aliases: interface_name` - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - In case multiple networks are attached to a VirtualMachineInstance, define which interface should be returned as primary IP address. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/password: - - .. rst-class:: ansible-option-title - - **password** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Provide a password for authenticating with the API. Can also be specified via K8S\_AUTH\_PASSWORD environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/use_service: - - .. rst-class:: ansible-option-title - - **use_service** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Enable the use of services to establish an SSH connection to the VirtualMachine. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry:`false` - - :ansible-option-choices-entry-default:`true` :ansible-option-choices-default-mark:`← (default)` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/username: - - .. rst-class:: ansible-option-title - - **username** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Provide a username for authenticating with the API. Can also be specified via K8S\_AUTH\_USERNAME environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/validate_certs: - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-connections/verify_ssl: - - .. rst-class:: ansible-option-title - - **validate_certs** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-aliases:`aliases: verify_ssl` - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Whether or not to verify the API server's SSL certificates. Can also be specified via K8S\_AUTH\_VERIFY\_SSL environment variable. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry:`false` - - :ansible-option-choices-entry:`true` - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-groups: - - .. rst-class:: ansible-option-title - - **groups** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`dictionary` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Add hosts to group based on Jinja2 conditionals. - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`{}` - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-host_format: - - .. rst-class:: ansible-option-title - - **host_format** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify the format of the host in the inventory group. Available specifiers: name, namespace, uid. - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`"{namespace}-{name}"` - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-keyed_groups: - - .. rst-class:: ansible-option-title - - **keyed_groups** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`list` / :ansible-option-elements:`elements=dictionary` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Add hosts to group based on the values of a variable. - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`[]` - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-keyed_groups/default_value: - - .. rst-class:: ansible-option-title - - **default_value** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - :ansible-option-versionadded:`added in ansible-core 2.12` - - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - The default value when the host variable's value is an empty string. - - This option is mutually exclusive with \ :literal:`trailing\_separator`\ . - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-keyed_groups/key: - - .. rst-class:: ansible-option-title - - **key** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - The key from input dictionary used to generate groups - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-keyed_groups/parent_group: - - .. rst-class:: ansible-option-title - - **parent_group** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - parent group for keyed group - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-keyed_groups/prefix: - - .. rst-class:: ansible-option-title - - **prefix** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - A keyed group name will start with this prefix - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`""` - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-keyed_groups/separator: - - .. rst-class:: ansible-option-title - - **separator** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - separator used to build the keyed group name - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`"\_"` - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-keyed_groups/trailing_separator: - - .. rst-class:: ansible-option-title - - **trailing_separator** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - :ansible-option-versionadded:`added in ansible-core 2.12` - - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Set this option to \ :emphasis:`False`\ to omit the \ :literal:`separator`\ after the host variable when the value is an empty string. - - This option is mutually exclusive with \ :literal:`default\_value`\ . - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry:`false` - - :ansible-option-choices-entry-default:`true` :ansible-option-choices-default-mark:`← (default)` - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-leading_separator: - - .. rst-class:: ansible-option-title - - **leading_separator** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - :ansible-option-versionadded:`added in ansible-core 2.11` - - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Use in conjunction with keyed\_groups. - - By default, a keyed group that does not have a prefix or a separator provided will have a name that starts with an underscore. - - This is because the default prefix is "" and the default separator is "\_". - - Set this option to False to omit the leading underscore (or other separator) if no prefix is given. - - If the group name is derived from a mapping the separator is still used to concatenate the items. - - To not use a separator in the group name at all, set the separator for the keyed group to an empty string instead. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry:`false` - - :ansible-option-choices-entry-default:`true` :ansible-option-choices-default-mark:`← (default)` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-plugin: - - .. rst-class:: ansible-option-title - - **plugin** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` / :ansible-option-required:`required` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Token that ensures this is a source file for the "kubevirt" plugin. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry:`"kubevirt"` - - :ansible-option-choices-entry:`"kubevirt.core.kubevirt"` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-strict: - - .. rst-class:: ansible-option-title - - **strict** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - If \ :literal:`yes`\ make invalid entries a fatal error, otherwise skip and continue. - - Since it is possible to use facts in the expressions they might not always be available and we ignore those errors by default. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - - :ansible-option-choices-entry:`true` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_inventory__parameter-use_extra_vars: - - .. rst-class:: ansible-option-title - - **use_extra_vars** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - :ansible-option-versionadded:`added in ansible-core 2.11` - - - - - - .. raw:: html - -
- - - .. raw:: html - -
- - Merge extra vars into the available variables for composition (highest precedence). - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - - :ansible-option-choices-entry:`true` - - - .. rst-class:: ansible-option-line - - :ansible-option-configuration:`Configuration:` - - - INI entry: - - .. code-block:: - - [inventory_plugins] - use_extra_vars = false - - - - Environment variable: :envvar:`ANSIBLE\_INVENTORY\_USE\_EXTRA\_VARS` - - - .. raw:: html - -
.. Attributes @@ -1852,31 +851,31 @@ Examples # Authenticate with token, and return all VirtualMachineInstances for all accessible namespaces plugin: kubevirt.core.kubevirt connections: - - host: https://192.168.64.4:8443 - api_key: xxxxxxxxxxxxxxxx - validate_certs: false + - host: https://192.168.64.4:8443 + api_key: xxxxxxxxxxxxxxxx + validate_certs: false # Use default config (~/.kube/config) file and active context, and return VirtualMachineInstances # from namespace testing with interfaces connected to network bridge-network plugin: kubevirt.core.kubevirt connections: - - namespaces: - - testing - network_name: bridge-network + - namespaces: + - testing + network_name: bridge-network # Use default config (~/.kube/config) file and active context, and return VirtualMachineInstances # from namespace testing with label app=test plugin: kubevirt.core.kubevirt connections: - - namespaces: - - testing - label_selector: app=test + - namespaces: + - testing + label_selector: app=test # Use a custom config file, and a specific context. plugin: kubevirt.core.kubevirt connections: - - kubeconfig: /path/to/config - context: 'awx/192-168-64-4:8443/developer' + - kubeconfig: /path/to/config + context: 'awx/192-168-64-4:8443/developer' diff --git a/main/_sources/plugins/kubevirt_vm.rst.txt b/main/_sources/plugins/kubevirt_vm.rst.txt index 5bc60a3..7705985 100644 --- a/main/_sources/plugins/kubevirt_vm.rst.txt +++ b/main/_sources/plugins/kubevirt_vm.rst.txt @@ -6,23 +6,8 @@ .. |antsibull-internal-nbsp| unicode:: 0xA0 :trim: -.. role:: ansible-attribute-support-label -.. role:: ansible-attribute-support-property -.. role:: ansible-attribute-support-full -.. role:: ansible-attribute-support-partial -.. role:: ansible-attribute-support-none -.. role:: ansible-attribute-support-na -.. role:: ansible-option-type -.. role:: ansible-option-elements -.. role:: ansible-option-required -.. role:: ansible-option-versionadded -.. role:: ansible-option-aliases -.. role:: ansible-option-choices -.. role:: ansible-option-choices-default-mark -.. role:: ansible-option-default-bold -.. role:: ansible-option-configuration -.. role:: ansible-option-returned-bold -.. role:: ansible-option-sample-bold +.. meta:: + :antsibull-docs: 2.5.0 .. Anchors @@ -38,7 +23,10 @@ kubevirt_vm -- Create or delete KubeVirt VirtualMachines on Kubernetes .. Collection note .. note:: - This module is part of the `kubevirt.core collection `_. + This module is part of the `kubevirt.core collection `_. + + It is not included in ``ansible-core``. + To check whether it is installed, run :code:`ansible-galaxy collection list`. To install it, use: :code:`ansible-galaxy collection install kubevirt.core`. You need further requirements to be able to use this module, @@ -94,1586 +82,650 @@ The below requirements are needed on the host that executes this module. Parameters ---------- -.. rst-class:: ansible-option-table +.. raw:: html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

Comments

+
+

annotations

+ +

+ dictionary +

+
+

Specify annotations to set on the VirtualMachine.

+

Only used when state=present.

+
+
+

api_key

+ +

+ string +

+
+

Token used to authenticate with the API. Can also be specified via K8S_AUTH_API_KEY environment variable.

+
+
+

api_version

+ +

+ string +

+
+

Use this to set the API version of KubeVirt.

+

Default: "kubevirt.io/v1"

+
+
+
+

ca_cert

+ +

aliases: ssl_ca_cert

+

+ path +

+
+

Path to a CA certificate used to authenticate with the API. The full certificate chain must be provided to avoid certificate validation errors. Can also be specified via K8S_AUTH_SSL_CA_CERT environment variable.

+
+
+
+

client_cert

+ +

aliases: cert_file

+

+ path +

+
+

Path to a certificate used to authenticate with the API. Can also be specified via K8S_AUTH_CERT_FILE environment variable.

+
+
+
+

client_key

+ +

aliases: key_file

+

+ path +

+
+

Path to a key file used to authenticate with the API. Can also be specified via K8S_AUTH_KEY_FILE environment variable.

+
+
+

context

+ +

+ string +

+
+

The name of a context found in the config file. Can also be specified via K8S_AUTH_CONTEXT environment variable.

+
+
+

data_volume_templates

+ +

+ list + / elements=dictionary +

+
+

Specify the DataVolume templates of the VirtualMachine.

+

See: http://kubevirt.io/api-reference/v1.0.0/definitions.html#_v1_datavolumetemplatespec

+
+
+

delete_options

+ +

+ dictionary +

+

added in kubernetes.core 1.2.0

+
+

Configure behavior when deleting an object.

+

Only used when state=absent.

+
+
+

gracePeriodSeconds

+ +

+ integer +

+
+

Specify how many seconds to wait before forcefully terminating.

+

Only implemented for Pod resources.

+

If not specified, the default grace period for the object type will be used.

+
+
+

preconditions

+ +

+ dictionary +

+
+

Specify condition that must be met for delete to proceed.

+
+
+

resourceVersion

+ +

+ string +

+
+

Specify the resource version of the target object.

+
+
+

uid

+ +

+ string +

+
+

Specify the UID of the target object.

+
+
+

propagationPolicy

+ +

+ string +

+
+

Use to control how dependent objects are deleted.

+

If not specified, the default policy for the object type will be used. This may vary across object types.

+

Choices:

+
    +
  • "Foreground"

  • +
  • "Background"

  • +
  • "Orphan"

  • +
+ +
+
+

force

+ +

+ boolean +

+
+

If set to yes, and state is present, an existing object will be replaced.

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +
+
+

generate_name

+ +

+ string +

+
+

Specify the basis of the VirtualMachine name and random characters will be added automatically on server to generate a unique name.

+

Only used when state=present.

+

mutually exclusive with name.

+
+
+

host

+ +

+ string +

+
+

Provide a URL for accessing the API. Can also be specified via K8S_AUTH_HOST environment variable.

+
+
+

impersonate_groups

+ +

+ list + / elements=string +

+

added in kubernetes.core 2.3.0

+
+

Group(s) to impersonate for the operation.

+

Can also be specified via K8S_AUTH_IMPERSONATE_GROUPS environment. Example: Group1,Group2

+
+
+

impersonate_user

+ +

+ string +

+

added in kubernetes.core 2.3.0

+
+

Username to impersonate for the operation.

+

Can also be specified via K8S_AUTH_IMPERSONATE_USER environment.

+
+
+

instancetype

+ +

+ dictionary +

+
+

Specify the instancetype matcher of the VirtualMachine.

+

Only used when state=present.

+
+
+

kubeconfig

+ +

+ any +

+
+

Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the Kubernetes client will attempt to load the default configuration file from ~/.kube/config. Can also be specified via K8S_AUTH_KUBECONFIG environment variable.

+

Multiple Kubernetes config file can be provided using separator ';' for Windows platform or ':' for others platforms.

+

The kubernetes configuration can be provided as dictionary. This feature requires a python kubernetes client version >= 17.17.0. Added in version 2.2.0.

+
+
+

labels

+ +

+ dictionary +

+
+

Specify labels to set on the VirtualMachine.

+
+
+

name

+ +

+ string +

+
+

Specify the name of the VirtualMachine.

+

This option is ignored when state is not set to present.

+

mutually exclusive with generate_name.

+
+
+

namespace

+ +

+ string + / required +

+
+

Specify the namespace of the VirtualMachine.

+
+
+

no_proxy

+ +

+ string +

+

added in kubernetes.core 2.3.0

+
+

The comma separated list of hosts/domains/IP/CIDR that shouldn't go through proxy. Can also be specified via K8S_AUTH_NO_PROXY environment variable.

+

Please note that this module does not pick up typical proxy settings from the environment (e.g. NO_PROXY).

+

This feature requires kubernetes>=19.15.0. When kubernetes library is less than 19.15.0, it fails even no_proxy set in correct.

+

example value is "localhost,.local,.example.com,127.0.0.1,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"

+
+
+

password

+ +

+ string +

+
+

Provide a password for authenticating with the API. Can also be specified via K8S_AUTH_PASSWORD environment variable.

+

Please read the description of the username option for a discussion of when this option is applicable.

+
+
+

persist_config

+ +

+ boolean +

+
+

Whether or not to save the kube config refresh tokens. Can also be specified via K8S_AUTH_PERSIST_CONFIG environment variable.

+

When the k8s context is using a user credentials with refresh tokens (like oidc or gke/gcloud auth), the token is refreshed by the k8s python client library but not saved by default. So the old refresh token can expire and the next auth might fail. Setting this flag to true will tell the k8s python client to save the new refresh token to the kube config file.

+

Default to false.

+

Please note that the current version of the k8s python client library does not support setting this flag to True yet.

+

The fix for this k8s python library is here: https://github.com/kubernetes-client/python-base/pull/169

+

Choices:

+
    +
  • false

  • +
  • true

  • +
+ +
+
+

preference

+ +

+ dictionary +

+
+

Specify the preference matcher of the VirtualMachine.

+

Only used when state=present.

+
+
+

proxy

+ +

+ string +

+
+

The URL of an HTTP proxy to use for the connection. Can also be specified via K8S_AUTH_PROXY environment variable.

+

Please note that this module does not pick up typical proxy settings from the environment (e.g. HTTP_PROXY).

+
+
+

proxy_headers

+ +

+ dictionary +

+

added in kubernetes.core 2.0.0

+
+
+

basic_auth

+ +

+ string +

+
+

Colon-separated username:password for basic authentication header.

+

Can also be specified via K8S_AUTH_PROXY_HEADERS_BASIC_AUTH environment.

+
+
+

proxy_basic_auth

+ +

+ string +

+
+

Colon-separated username:password for proxy basic authentication header.

+

Can also be specified via K8S_AUTH_PROXY_HEADERS_PROXY_BASIC_AUTH environment.

+
+
+

user_agent

+ +

+ string +

+
+

String representing the user-agent you want, such as foo/1.0.

+

Can also be specified via K8S_AUTH_PROXY_HEADERS_USER_AGENT environment.

+
+
+

running

+ +

+ boolean +

+
+

Specify whether the VirtualMachine should be running.

+

Choices:

+
    +
  • false

  • +
  • true ← (default)

  • +
+ +
+
+

spec

+ +

+ dictionary +

+
+

Specify the template spec of the VirtualMachine.

+

See: http://kubevirt.io/api-reference/v1.0.0/definitions.html#_v1_virtualmachineinstancespec

+
+
+

state

+ +

+ string +

+
+

Determines if an object should be created, patched, or deleted. When set to present, an object will be created, if it does not already exist. If set to absent, an existing object will be deleted. If set to present, an existing object will be patched, if its attributes differ from those specified using resource_definition or src.

+

Choices:

+
    +
  • "absent"

  • +
  • "present" ← (default)

  • +
+ +
+
+

username

+ +

+ string +

+
+

Provide a username for authenticating with the API. Can also be specified via K8S_AUTH_USERNAME environment variable.

+

Please note that this only works with clusters configured to use HTTP Basic Auth. If your cluster has a different form of authentication (e.g. OAuth2 in OpenShift), this option will not work as expected and you should look into the community.okd.k8s_auth module, as that might do what you need.

+
+
+
+

validate_certs

+ +

aliases: verify_ssl

+

+ boolean +

+
+

Whether or not to verify the API server's SSL certificates. Can also be specified via K8S_AUTH_VERIFY_SSL environment variable.

+

Choices:

+
    +
  • false

  • +
  • true

  • +
+ +
+
+

wait

+ +

+ boolean +

+
+

Whether to wait for the VirtualMachine to end up in the ready state.

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +
+
+

wait_sleep

+ +

+ integer +

+
+

Number of seconds to sleep between checks.

+

Ignored if wait is not set.

+

Default: 5

+
+
+

wait_timeout

+ +

+ integer +

+
+

How long in seconds to wait for the resource to end up in the desired state.

+

Ignored if wait is not set.

+

Default: 120

+
-.. list-table:: - :width: 100% - :widths: auto - :header-rows: 1 - - * - Parameter - - Comments - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-annotations: - - .. rst-class:: ansible-option-title - - **annotations** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`dictionary` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify annotations to set on the VirtualMachine. - - Only used when \ :emphasis:`state=present`\ . - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-api_key: - - .. rst-class:: ansible-option-title - - **api_key** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Token used to authenticate with the API. Can also be specified via K8S\_AUTH\_API\_KEY environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-api_version: - - .. rst-class:: ansible-option-title - - **api_version** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Use this to set the API version of KubeVirt. - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`"kubevirt.io/v1"` - - .. raw:: html - -
- - * - .. raw:: html - -
-
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-ca_cert: - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-ssl_ca_cert: - - .. rst-class:: ansible-option-title - - **ca_cert** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-aliases:`aliases: ssl_ca_cert` - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`path` - - .. raw:: html - -
- - - .. raw:: html - -
- - Path to a CA certificate used to authenticate with the API. The full certificate chain must be provided to avoid certificate validation errors. Can also be specified via K8S\_AUTH\_SSL\_CA\_CERT environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-cert_file: - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-client_cert: - - .. rst-class:: ansible-option-title - - **client_cert** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-aliases:`aliases: cert_file` - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`path` - - .. raw:: html - -
- - - .. raw:: html - -
- - Path to a certificate used to authenticate with the API. Can also be specified via K8S\_AUTH\_CERT\_FILE environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-client_key: - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-key_file: - - .. rst-class:: ansible-option-title - - **client_key** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-aliases:`aliases: key_file` - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`path` - - .. raw:: html - -
- - - .. raw:: html - -
- - Path to a key file used to authenticate with the API. Can also be specified via K8S\_AUTH\_KEY\_FILE environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-context: - - .. rst-class:: ansible-option-title - - **context** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - The name of a context found in the config file. Can also be specified via K8S\_AUTH\_CONTEXT environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-data_volume_templates: - - .. rst-class:: ansible-option-title - - **data_volume_templates** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`list` / :ansible-option-elements:`elements=dictionary` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify the DataVolume templates of the VirtualMachine. - - See: http://kubevirt.io/api-reference/v1.0.0/definitions.html#\_v1\_datavolumetemplatespec - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-delete_options: - - .. rst-class:: ansible-option-title - - **delete_options** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`dictionary` - - :ansible-option-versionadded:`added in kubernetes.core 1.2.0` - - - .. raw:: html - -
- - - .. raw:: html - -
- - Configure behavior when deleting an object. - - Only used when \ :emphasis:`state=absent`\ . - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-delete_options/graceperiodseconds: - - .. rst-class:: ansible-option-title - - **gracePeriodSeconds** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`integer` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify how many seconds to wait before forcefully terminating. - - Only implemented for Pod resources. - - If not specified, the default grace period for the object type will be used. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-delete_options/preconditions: - - .. rst-class:: ansible-option-title - - **preconditions** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`dictionary` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify condition that must be met for delete to proceed. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-delete_options/preconditions/resourceversion: - - .. rst-class:: ansible-option-title - - **resourceVersion** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify the resource version of the target object. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-delete_options/preconditions/uid: - - .. rst-class:: ansible-option-title - - **uid** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify the UID of the target object. - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-delete_options/propagationpolicy: - - .. rst-class:: ansible-option-title - - **propagationPolicy** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Use to control how dependent objects are deleted. - - If not specified, the default policy for the object type will be used. This may vary across object types. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry:`"Foreground"` - - :ansible-option-choices-entry:`"Background"` - - :ansible-option-choices-entry:`"Orphan"` - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-force: - - .. rst-class:: ansible-option-title - - **force** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - .. raw:: html - -
- - - .. raw:: html - -
- - If set to \ :literal:`yes`\ , and \ :emphasis:`state`\ is \ :literal:`present`\ , an existing object will be replaced. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - - :ansible-option-choices-entry:`true` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-generate_name: - - .. rst-class:: ansible-option-title - - **generate_name** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify the basis of the VirtualMachine name and random characters will be added automatically on server to generate a unique name. - - Only used when \ :emphasis:`state=present`\ . - - mutually exclusive with \ :literal:`name`\ . - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-host: - - .. rst-class:: ansible-option-title - - **host** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Provide a URL for accessing the API. Can also be specified via K8S\_AUTH\_HOST environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-impersonate_groups: - - .. rst-class:: ansible-option-title - - **impersonate_groups** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`list` / :ansible-option-elements:`elements=string` - - :ansible-option-versionadded:`added in kubernetes.core 2.3.0` - - - .. raw:: html - -
- - - .. raw:: html - -
- - Group(s) to impersonate for the operation. - - Can also be specified via K8S\_AUTH\_IMPERSONATE\_GROUPS environment. Example: Group1,Group2 - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-impersonate_user: - - .. rst-class:: ansible-option-title - - **impersonate_user** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - :ansible-option-versionadded:`added in kubernetes.core 2.3.0` - - - .. raw:: html - -
- - - .. raw:: html - -
- - Username to impersonate for the operation. - - Can also be specified via K8S\_AUTH\_IMPERSONATE\_USER environment. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-instancetype: - - .. rst-class:: ansible-option-title - - **instancetype** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`dictionary` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify the instancetype matcher of the VirtualMachine. - - Only used when \ :emphasis:`state=present`\ . - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-kubeconfig: - - .. rst-class:: ansible-option-title - - **kubeconfig** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`any` - - .. raw:: html - -
- - - .. raw:: html - -
- - Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the Kubernetes client will attempt to load the default configuration file from \ :emphasis:`~/.kube/config`\ . Can also be specified via K8S\_AUTH\_KUBECONFIG environment variable. - - Multiple Kubernetes config file can be provided using separator ';' for Windows platform or ':' for others platforms. - - The kubernetes configuration can be provided as dictionary. This feature requires a python kubernetes client version \>= 17.17.0. Added in version 2.2.0. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-labels: - - .. rst-class:: ansible-option-title - - **labels** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`dictionary` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify labels to set on the VirtualMachine. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-name: - - .. rst-class:: ansible-option-title - - **name** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify the name of the VirtualMachine. - - This option is ignored when \ :emphasis:`state`\ is not set to \ :literal:`present`\ . - - mutually exclusive with \ :literal:`generate\_name`\ . - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-namespace: - - .. rst-class:: ansible-option-title - - **namespace** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` / :ansible-option-required:`required` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify the namespace of the VirtualMachine. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-no_proxy: - - .. rst-class:: ansible-option-title - - **no_proxy** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - :ansible-option-versionadded:`added in kubernetes.core 2.3.0` - - - .. raw:: html - -
- - - .. raw:: html - -
- - The comma separated list of hosts/domains/IP/CIDR that shouldn't go through proxy. Can also be specified via K8S\_AUTH\_NO\_PROXY environment variable. - - Please note that this module does not pick up typical proxy settings from the environment (e.g. NO\_PROXY). - - This feature requires kubernetes\>=19.15.0. When kubernetes library is less than 19.15.0, it fails even no\_proxy set in correct. - - example value is "localhost,.local,.example.com,127.0.0.1,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16" - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-password: - - .. rst-class:: ansible-option-title - - **password** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Provide a password for authenticating with the API. Can also be specified via K8S\_AUTH\_PASSWORD environment variable. - - Please read the description of the \ :literal:`username`\ option for a discussion of when this option is applicable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-persist_config: - - .. rst-class:: ansible-option-title - - **persist_config** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - .. raw:: html - -
- - - .. raw:: html - -
- - Whether or not to save the kube config refresh tokens. Can also be specified via K8S\_AUTH\_PERSIST\_CONFIG environment variable. - - When the k8s context is using a user credentials with refresh tokens (like oidc or gke/gcloud auth), the token is refreshed by the k8s python client library but not saved by default. So the old refresh token can expire and the next auth might fail. Setting this flag to true will tell the k8s python client to save the new refresh token to the kube config file. - - Default to false. - - Please note that the current version of the k8s python client library does not support setting this flag to True yet. - - The fix for this k8s python library is here: https://github.com/kubernetes-client/python-base/pull/169 - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry:`false` - - :ansible-option-choices-entry:`true` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-preference: - - .. rst-class:: ansible-option-title - - **preference** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`dictionary` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify the preference matcher of the VirtualMachine. - - Only used when \ :emphasis:`state=present`\ . - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-proxy: - - .. rst-class:: ansible-option-title - - **proxy** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - The URL of an HTTP proxy to use for the connection. Can also be specified via K8S\_AUTH\_PROXY environment variable. - - Please note that this module does not pick up typical proxy settings from the environment (e.g. HTTP\_PROXY). - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-proxy_headers: - - .. rst-class:: ansible-option-title - - **proxy_headers** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`dictionary` - - :ansible-option-versionadded:`added in kubernetes.core 2.0.0` - - - .. raw:: html - -
- - - .. raw:: html - -
- - The Header used for the HTTP proxy. - - Documentation can be found here \ https://urllib3.readthedocs.io/en/latest/reference/urllib3.util.html?highlight=proxy_headers#urllib3.util.make_headers\ . - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-proxy_headers/basic_auth: - - .. rst-class:: ansible-option-title - - **basic_auth** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Colon-separated username:password for basic authentication header. - - Can also be specified via K8S\_AUTH\_PROXY\_HEADERS\_BASIC\_AUTH environment. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-proxy_headers/proxy_basic_auth: - - .. rst-class:: ansible-option-title - - **proxy_basic_auth** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Colon-separated username:password for proxy basic authentication header. - - Can also be specified via K8S\_AUTH\_PROXY\_HEADERS\_PROXY\_BASIC\_AUTH environment. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-proxy_headers/user_agent: - - .. rst-class:: ansible-option-title - - **user_agent** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - String representing the user-agent you want, such as foo/1.0. - - Can also be specified via K8S\_AUTH\_PROXY\_HEADERS\_USER\_AGENT environment. - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-running: - - .. rst-class:: ansible-option-title - - **running** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify whether the VirtualMachine should be running. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry:`false` - - :ansible-option-choices-entry-default:`true` :ansible-option-choices-default-mark:`← (default)` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-spec: - - .. rst-class:: ansible-option-title - - **spec** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`dictionary` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify the template spec of the VirtualMachine. - - See: http://kubevirt.io/api-reference/v1.0.0/definitions.html#\_v1\_virtualmachineinstancespec - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-state: - - .. rst-class:: ansible-option-title - - **state** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Determines if an object should be created, patched, or deleted. When set to \ :literal:`present`\ , an object will be created, if it does not already exist. If set to \ :literal:`absent`\ , an existing object will be deleted. If set to \ :literal:`present`\ , an existing object will be patched, if its attributes differ from those specified using \ :emphasis:`resource\_definition`\ or \ :emphasis:`src`\ . - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry:`"absent"` - - :ansible-option-choices-entry-default:`"present"` :ansible-option-choices-default-mark:`← (default)` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-username: - - .. rst-class:: ansible-option-title - - **username** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Provide a username for authenticating with the API. Can also be specified via K8S\_AUTH\_USERNAME environment variable. - - Please note that this only works with clusters configured to use HTTP Basic Auth. If your cluster has a different form of authentication (e.g. OAuth2 in OpenShift), this option will not work as expected and you should look into the \ :ref:`community.okd.k8s\_auth `\ module, as that might do what you need. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-validate_certs: - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-verify_ssl: - - .. rst-class:: ansible-option-title - - **validate_certs** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-aliases:`aliases: verify_ssl` - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - .. raw:: html - -
- - - .. raw:: html - -
- - Whether or not to verify the API server's SSL certificates. Can also be specified via K8S\_AUTH\_VERIFY\_SSL environment variable. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry:`false` - - :ansible-option-choices-entry:`true` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-wait: - - .. rst-class:: ansible-option-title - - **wait** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - .. raw:: html - -
- - - .. raw:: html - -
- - Whether to wait for the VirtualMachine to end up in the ready state. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - - :ansible-option-choices-entry:`true` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-wait_sleep: - - .. rst-class:: ansible-option-title - - **wait_sleep** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`integer` - - .. raw:: html - -
- - - .. raw:: html - -
- - Number of seconds to sleep between checks. - - Ignored if \ :literal:`wait`\ is not set. - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`5` - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__parameter-wait_timeout: - - .. rst-class:: ansible-option-title - - **wait_timeout** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`integer` - - .. raw:: html - -
- - - .. raw:: html - -
- - How long in seconds to wait for the resource to end up in the desired state. - - Ignored if \ :literal:`wait`\ is not set. - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`120` - - .. raw:: html - -
.. Attributes @@ -1713,27 +765,27 @@ Examples domain: devices: interfaces: - - name: default - masquerade: {} - - name: bridge-network - bridge: {} + - name: default + masquerade: {} + - name: bridge-network + bridge: {} networks: - - name: default - pod: {} - - name: bridge-network - multus: - networkName: kindexgw + - name: default + pod: {} + - name: bridge-network + multus: + networkName: kindexgw volumes: - - containerDisk: - image: quay.io/containerdisks/fedora:latest - name: containerdisk - - cloudInitNoCloud: - userData: |- - #cloud-config - # The default username is: fedora - ssh_authorized_keys: - - ssh-ed25519 AAAA... - name: cloudinit + - containerDisk: + image: quay.io/containerdisks/fedora:latest + name: containerdisk + - cloudInitNoCloud: + userData: |- + #cloud-config + # The default username is: fedora + ssh_authorized_keys: + - ssh-ed25519 AAAA... + name: cloudinit - name: Create a VirtualMachine with a DataVolume template kubevirt.core.kubevirt_vm: @@ -1755,7 +807,7 @@ Examples url: docker://quay.io/containerdisks/fedora:latest storage: accessModes: - - ReadWriteOnce + - ReadWriteOnce resources: requests: storage: 5Gi @@ -1763,16 +815,16 @@ Examples domain: devices: {} volumes: - - dataVolume: - name: testdv - name: datavolume - - cloudInitNoCloud: - userData: |- - #cloud-config - # The default username is: fedora - ssh_authorized_keys: - - ssh-ed25519 AAAA... - name: cloudinit + - dataVolume: + name: testdv + name: datavolume + - cloudInitNoCloud: + userData: |- + #cloud-config + # The default username is: fedora + ssh_authorized_keys: + - ssh-ed25519 AAAA... + name: cloudinit wait: yes - name: Delete a VirtualMachine @@ -1793,185 +845,77 @@ Return Values ------------- Common return values are documented :ref:`here `, the following are the fields unique to this module: -.. rst-class:: ansible-option-table - -.. list-table:: - :width: 100% - :widths: auto - :header-rows: 1 - - * - Key - - Description - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__return-result: - - .. rst-class:: ansible-option-title - - **result** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`complex` - - .. raw:: html - -
- - - .. raw:: html - -
- - The created object. Will be empty in the case of a deletion. - - - .. rst-class:: ansible-option-line - - :ansible-option-returned-bold:`Returned:` success - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__return-result/changed: - - .. rst-class:: ansible-option-title - - **changed** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - .. raw:: html - -
- - - .. raw:: html - -
- - Whether the VirtualMachine was changed - - - .. rst-class:: ansible-option-line - - :ansible-option-returned-bold:`Returned:` success - - .. rst-class:: ansible-option-line - .. rst-class:: ansible-option-sample - - :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`true` - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__return-result/duration: - - .. rst-class:: ansible-option-title - - **duration** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`integer` - - .. raw:: html - -
- - - .. raw:: html - -
- - elapsed time of task in seconds - - - .. rst-class:: ansible-option-line - - :ansible-option-returned-bold:`Returned:` when \ :literal:`wait`\ is true - - .. rst-class:: ansible-option-line - .. rst-class:: ansible-option-sample - - :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`48` - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_module__return-result/method: - - .. rst-class:: ansible-option-title - - **method** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Method executed on the Kubernetes API. - - - .. rst-class:: ansible-option-line - - :ansible-option-returned-bold:`Returned:` success - - - .. raw:: html - -
- +.. raw:: html + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Key

Description

+
+

result

+ +

+ complex +

+
+

The created object. Will be empty in the case of a deletion.

+

Returned: success

+
+
+

changed

+ +

+ boolean +

+
+

Whether the VirtualMachine was changed

+

Returned: success

+

Sample: true

+
+
+

duration

+ +

+ integer +

+
+

elapsed time of task in seconds

+

Returned: when wait is true

+

Sample: 48

+
+
+

method

+ +

+ string +

+
+

Method executed on the Kubernetes API.

+

Returned: success

+
diff --git a/main/_sources/plugins/kubevirt_vm_info.rst.txt b/main/_sources/plugins/kubevirt_vm_info.rst.txt index 8e87e61..ff48aa5 100644 --- a/main/_sources/plugins/kubevirt_vm_info.rst.txt +++ b/main/_sources/plugins/kubevirt_vm_info.rst.txt @@ -6,23 +6,8 @@ .. |antsibull-internal-nbsp| unicode:: 0xA0 :trim: -.. role:: ansible-attribute-support-label -.. role:: ansible-attribute-support-property -.. role:: ansible-attribute-support-full -.. role:: ansible-attribute-support-partial -.. role:: ansible-attribute-support-none -.. role:: ansible-attribute-support-na -.. role:: ansible-option-type -.. role:: ansible-option-elements -.. role:: ansible-option-required -.. role:: ansible-option-versionadded -.. role:: ansible-option-aliases -.. role:: ansible-option-choices -.. role:: ansible-option-choices-default-mark -.. role:: ansible-option-default-bold -.. role:: ansible-option-configuration -.. role:: ansible-option-returned-bold -.. role:: ansible-option-sample-bold +.. meta:: + :antsibull-docs: 2.5.0 .. Anchors @@ -38,7 +23,10 @@ kubevirt_vm_info -- Describe VirtualMachines on Kubernetes .. Collection note .. note:: - This module is part of the `kubevirt.core collection `_. + This module is part of the `kubevirt.core collection `_. + + It is not included in ``ansible-core``. + To check whether it is installed, run :code:`ansible-galaxy collection list`. To install it, use: :code:`ansible-galaxy collection install kubevirt.core`. You need further requirements to be able to use this module, @@ -91,1054 +79,429 @@ The below requirements are needed on the host that executes this module. Parameters ---------- -.. rst-class:: ansible-option-table +.. raw:: html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Parameter

Comments

+
+

api_key

+ +

+ string +

+
+

Token used to authenticate with the API. Can also be specified via K8S_AUTH_API_KEY environment variable.

+
+
+

api_version

+ +

+ string +

+
+

Use this to set the API version of KubeVirt.

+

Default: "kubevirt.io/v1"

+
+
+
+

ca_cert

+ +

aliases: ssl_ca_cert

+

+ path +

+
+

Path to a CA certificate used to authenticate with the API. The full certificate chain must be provided to avoid certificate validation errors. Can also be specified via K8S_AUTH_SSL_CA_CERT environment variable.

+
+
+
+

client_cert

+ +

aliases: cert_file

+

+ path +

+
+

Path to a certificate used to authenticate with the API. Can also be specified via K8S_AUTH_CERT_FILE environment variable.

+
+
+
+

client_key

+ +

aliases: key_file

+

+ path +

+
+

Path to a key file used to authenticate with the API. Can also be specified via K8S_AUTH_KEY_FILE environment variable.

+
+
+

context

+ +

+ string +

+
+

The name of a context found in the config file. Can also be specified via K8S_AUTH_CONTEXT environment variable.

+
+
+

field_selectors

+ +

+ list + / elements=string +

+
+

List of field selectors to use to filter results

+

Default: []

+
+
+

host

+ +

+ string +

+
+

Provide a URL for accessing the API. Can also be specified via K8S_AUTH_HOST environment variable.

+
+
+

impersonate_groups

+ +

+ list + / elements=string +

+

added in kubernetes.core 2.3.0

+
+

Group(s) to impersonate for the operation.

+

Can also be specified via K8S_AUTH_IMPERSONATE_GROUPS environment. Example: Group1,Group2

+
+
+

impersonate_user

+ +

+ string +

+

added in kubernetes.core 2.3.0

+
+

Username to impersonate for the operation.

+

Can also be specified via K8S_AUTH_IMPERSONATE_USER environment.

+
+
+

kubeconfig

+ +

+ any +

+
+

Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the Kubernetes client will attempt to load the default configuration file from ~/.kube/config. Can also be specified via K8S_AUTH_KUBECONFIG environment variable.

+

Multiple Kubernetes config file can be provided using separator ';' for Windows platform or ':' for others platforms.

+

The kubernetes configuration can be provided as dictionary. This feature requires a python kubernetes client version >= 17.17.0. Added in version 2.2.0.

+
+
+

label_selectors

+ +

+ list + / elements=string +

+
+

List of label selectors to use to filter results

+

Default: []

+
+
+

name

+ +

+ string +

+
+

Specify the name of the VirtualMachine.

+
+
+

namespace

+ +

+ string +

+
+

Specify the namespace of VirtualMachines.

+
+
+

no_proxy

+ +

+ string +

+

added in kubernetes.core 2.3.0

+
+

The comma separated list of hosts/domains/IP/CIDR that shouldn't go through proxy. Can also be specified via K8S_AUTH_NO_PROXY environment variable.

+

Please note that this module does not pick up typical proxy settings from the environment (e.g. NO_PROXY).

+

This feature requires kubernetes>=19.15.0. When kubernetes library is less than 19.15.0, it fails even no_proxy set in correct.

+

example value is "localhost,.local,.example.com,127.0.0.1,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"

+
+
+

password

+ +

+ string +

+
+

Provide a password for authenticating with the API. Can also be specified via K8S_AUTH_PASSWORD environment variable.

+

Please read the description of the username option for a discussion of when this option is applicable.

+
+
+

persist_config

+ +

+ boolean +

+
+

Whether or not to save the kube config refresh tokens. Can also be specified via K8S_AUTH_PERSIST_CONFIG environment variable.

+

When the k8s context is using a user credentials with refresh tokens (like oidc or gke/gcloud auth), the token is refreshed by the k8s python client library but not saved by default. So the old refresh token can expire and the next auth might fail. Setting this flag to true will tell the k8s python client to save the new refresh token to the kube config file.

+

Default to false.

+

Please note that the current version of the k8s python client library does not support setting this flag to True yet.

+

The fix for this k8s python library is here: https://github.com/kubernetes-client/python-base/pull/169

+

Choices:

+
    +
  • false

  • +
  • true

  • +
+ +
+
+

proxy

+ +

+ string +

+
+

The URL of an HTTP proxy to use for the connection. Can also be specified via K8S_AUTH_PROXY environment variable.

+

Please note that this module does not pick up typical proxy settings from the environment (e.g. HTTP_PROXY).

+
+
+

proxy_headers

+ +

+ dictionary +

+

added in kubernetes.core 2.0.0

+
+
+

basic_auth

+ +

+ string +

+
+

Colon-separated username:password for basic authentication header.

+

Can also be specified via K8S_AUTH_PROXY_HEADERS_BASIC_AUTH environment.

+
+
+

proxy_basic_auth

+ +

+ string +

+
+

Colon-separated username:password for proxy basic authentication header.

+

Can also be specified via K8S_AUTH_PROXY_HEADERS_PROXY_BASIC_AUTH environment.

+
+
+

user_agent

+ +

+ string +

+
+

String representing the user-agent you want, such as foo/1.0.

+

Can also be specified via K8S_AUTH_PROXY_HEADERS_USER_AGENT environment.

+
+
+

username

+ +

+ string +

+
+

Provide a username for authenticating with the API. Can also be specified via K8S_AUTH_USERNAME environment variable.

+

Please note that this only works with clusters configured to use HTTP Basic Auth. If your cluster has a different form of authentication (e.g. OAuth2 in OpenShift), this option will not work as expected and you should look into the community.okd.k8s_auth module, as that might do what you need.

+
+
+
+

validate_certs

+ +

aliases: verify_ssl

+

+ boolean +

+
+

Whether or not to verify the API server's SSL certificates. Can also be specified via K8S_AUTH_VERIFY_SSL environment variable.

+

Choices:

+
    +
  • false

  • +
  • true

  • +
+ +
+
+

wait

+ +

+ boolean +

+
+

Whether to wait for the VirtualMachine to end up in the ready state.

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +
+
+

wait_sleep

+ +

+ integer +

+
+

Number of seconds to sleep between checks.

+

Ignored if wait is not set.

+

Default: 5

+
+
+

wait_timeout

+ +

+ integer +

+
+

How long in seconds to wait for the resource to end up in the desired state.

+

Ignored if wait is not set.

+

Default: 120

+
-.. list-table:: - :width: 100% - :widths: auto - :header-rows: 1 - - * - Parameter - - Comments - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-api_key: - - .. rst-class:: ansible-option-title - - **api_key** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Token used to authenticate with the API. Can also be specified via K8S\_AUTH\_API\_KEY environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-api_version: - - .. rst-class:: ansible-option-title - - **api_version** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Use this to set the API version of KubeVirt. - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`"kubevirt.io/v1"` - - .. raw:: html - -
- - * - .. raw:: html - -
-
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-ca_cert: - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-ssl_ca_cert: - - .. rst-class:: ansible-option-title - - **ca_cert** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-aliases:`aliases: ssl_ca_cert` - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`path` - - .. raw:: html - -
- - - .. raw:: html - -
- - Path to a CA certificate used to authenticate with the API. The full certificate chain must be provided to avoid certificate validation errors. Can also be specified via K8S\_AUTH\_SSL\_CA\_CERT environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-cert_file: - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-client_cert: - - .. rst-class:: ansible-option-title - - **client_cert** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-aliases:`aliases: cert_file` - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`path` - - .. raw:: html - -
- - - .. raw:: html - -
- - Path to a certificate used to authenticate with the API. Can also be specified via K8S\_AUTH\_CERT\_FILE environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-client_key: - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-key_file: - - .. rst-class:: ansible-option-title - - **client_key** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-aliases:`aliases: key_file` - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`path` - - .. raw:: html - -
- - - .. raw:: html - -
- - Path to a key file used to authenticate with the API. Can also be specified via K8S\_AUTH\_KEY\_FILE environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-context: - - .. rst-class:: ansible-option-title - - **context** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - The name of a context found in the config file. Can also be specified via K8S\_AUTH\_CONTEXT environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-field_selectors: - - .. rst-class:: ansible-option-title - - **field_selectors** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`list` / :ansible-option-elements:`elements=string` - - .. raw:: html - -
- - - .. raw:: html - -
- - List of field selectors to use to filter results - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`[]` - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-host: - - .. rst-class:: ansible-option-title - - **host** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Provide a URL for accessing the API. Can also be specified via K8S\_AUTH\_HOST environment variable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-impersonate_groups: - - .. rst-class:: ansible-option-title - - **impersonate_groups** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`list` / :ansible-option-elements:`elements=string` - - :ansible-option-versionadded:`added in kubernetes.core 2.3.0` - - - .. raw:: html - -
- - - .. raw:: html - -
- - Group(s) to impersonate for the operation. - - Can also be specified via K8S\_AUTH\_IMPERSONATE\_GROUPS environment. Example: Group1,Group2 - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-impersonate_user: - - .. rst-class:: ansible-option-title - - **impersonate_user** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - :ansible-option-versionadded:`added in kubernetes.core 2.3.0` - - - .. raw:: html - -
- - - .. raw:: html - -
- - Username to impersonate for the operation. - - Can also be specified via K8S\_AUTH\_IMPERSONATE\_USER environment. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-kubeconfig: - - .. rst-class:: ansible-option-title - - **kubeconfig** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`any` - - .. raw:: html - -
- - - .. raw:: html - -
- - Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the Kubernetes client will attempt to load the default configuration file from \ :emphasis:`~/.kube/config`\ . Can also be specified via K8S\_AUTH\_KUBECONFIG environment variable. - - Multiple Kubernetes config file can be provided using separator ';' for Windows platform or ':' for others platforms. - - The kubernetes configuration can be provided as dictionary. This feature requires a python kubernetes client version \>= 17.17.0. Added in version 2.2.0. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-label_selectors: - - .. rst-class:: ansible-option-title - - **label_selectors** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`list` / :ansible-option-elements:`elements=string` - - .. raw:: html - -
- - - .. raw:: html - -
- - List of label selectors to use to filter results - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`[]` - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-name: - - .. rst-class:: ansible-option-title - - **name** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify the name of the VirtualMachine. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-namespace: - - .. rst-class:: ansible-option-title - - **namespace** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specify the namespace of VirtualMachines. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-no_proxy: - - .. rst-class:: ansible-option-title - - **no_proxy** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - :ansible-option-versionadded:`added in kubernetes.core 2.3.0` - - - .. raw:: html - -
- - - .. raw:: html - -
- - The comma separated list of hosts/domains/IP/CIDR that shouldn't go through proxy. Can also be specified via K8S\_AUTH\_NO\_PROXY environment variable. - - Please note that this module does not pick up typical proxy settings from the environment (e.g. NO\_PROXY). - - This feature requires kubernetes\>=19.15.0. When kubernetes library is less than 19.15.0, it fails even no\_proxy set in correct. - - example value is "localhost,.local,.example.com,127.0.0.1,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16" - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-password: - - .. rst-class:: ansible-option-title - - **password** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Provide a password for authenticating with the API. Can also be specified via K8S\_AUTH\_PASSWORD environment variable. - - Please read the description of the \ :literal:`username`\ option for a discussion of when this option is applicable. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-persist_config: - - .. rst-class:: ansible-option-title - - **persist_config** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - .. raw:: html - -
- - - .. raw:: html - -
- - Whether or not to save the kube config refresh tokens. Can also be specified via K8S\_AUTH\_PERSIST\_CONFIG environment variable. - - When the k8s context is using a user credentials with refresh tokens (like oidc or gke/gcloud auth), the token is refreshed by the k8s python client library but not saved by default. So the old refresh token can expire and the next auth might fail. Setting this flag to true will tell the k8s python client to save the new refresh token to the kube config file. - - Default to false. - - Please note that the current version of the k8s python client library does not support setting this flag to True yet. - - The fix for this k8s python library is here: https://github.com/kubernetes-client/python-base/pull/169 - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry:`false` - - :ansible-option-choices-entry:`true` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-proxy: - - .. rst-class:: ansible-option-title - - **proxy** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - The URL of an HTTP proxy to use for the connection. Can also be specified via K8S\_AUTH\_PROXY environment variable. - - Please note that this module does not pick up typical proxy settings from the environment (e.g. HTTP\_PROXY). - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-proxy_headers: - - .. rst-class:: ansible-option-title - - **proxy_headers** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`dictionary` - - :ansible-option-versionadded:`added in kubernetes.core 2.0.0` - - - .. raw:: html - -
- - - .. raw:: html - -
- - The Header used for the HTTP proxy. - - Documentation can be found here \ https://urllib3.readthedocs.io/en/latest/reference/urllib3.util.html?highlight=proxy_headers#urllib3.util.make_headers\ . - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-proxy_headers/basic_auth: - - .. rst-class:: ansible-option-title - - **basic_auth** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Colon-separated username:password for basic authentication header. - - Can also be specified via K8S\_AUTH\_PROXY\_HEADERS\_BASIC\_AUTH environment. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-proxy_headers/proxy_basic_auth: - - .. rst-class:: ansible-option-title - - **proxy_basic_auth** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Colon-separated username:password for proxy basic authentication header. - - Can also be specified via K8S\_AUTH\_PROXY\_HEADERS\_PROXY\_BASIC\_AUTH environment. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-proxy_headers/user_agent: - - .. rst-class:: ansible-option-title - - **user_agent** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - String representing the user-agent you want, such as foo/1.0. - - Can also be specified via K8S\_AUTH\_PROXY\_HEADERS\_USER\_AGENT environment. - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-username: - - .. rst-class:: ansible-option-title - - **username** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Provide a username for authenticating with the API. Can also be specified via K8S\_AUTH\_USERNAME environment variable. - - Please note that this only works with clusters configured to use HTTP Basic Auth. If your cluster has a different form of authentication (e.g. OAuth2 in OpenShift), this option will not work as expected and you should look into the \ :ref:`community.okd.k8s\_auth `\ module, as that might do what you need. - - - .. raw:: html - -
- - * - .. raw:: html - -
-
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-validate_certs: - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-verify_ssl: - - .. rst-class:: ansible-option-title - - **validate_certs** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-aliases:`aliases: verify_ssl` - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - .. raw:: html - -
- - - .. raw:: html - -
- - Whether or not to verify the API server's SSL certificates. Can also be specified via K8S\_AUTH\_VERIFY\_SSL environment variable. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry:`false` - - :ansible-option-choices-entry:`true` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-wait: - - .. rst-class:: ansible-option-title - - **wait** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - .. raw:: html - -
- - - .. raw:: html - -
- - Whether to wait for the VirtualMachine to end up in the ready state. - - - .. rst-class:: ansible-option-line - - :ansible-option-choices:`Choices:` - - - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - - :ansible-option-choices-entry:`true` - - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-wait_sleep: - - .. rst-class:: ansible-option-title - - **wait_sleep** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`integer` - - .. raw:: html - -
- - - .. raw:: html - -
- - Number of seconds to sleep between checks. - - Ignored if \ :literal:`wait`\ is not set. - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`5` - - .. raw:: html - -
- - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__parameter-wait_timeout: - - .. rst-class:: ansible-option-title - - **wait_timeout** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`integer` - - .. raw:: html - -
- - - .. raw:: html - -
- - How long in seconds to wait for the resource to end up in the desired state. - - Ignored if \ :literal:`wait`\ is not set. - - - .. rst-class:: ansible-option-line - - :ansible-option-default-bold:`Default:` :ansible-option-default:`120` - - .. raw:: html - -
.. Attributes @@ -1201,295 +564,117 @@ Return Values ------------- Common return values are documented :ref:`here `, the following are the fields unique to this module: -.. rst-class:: ansible-option-table - -.. list-table:: - :width: 100% - :widths: auto - :header-rows: 1 - - * - Key - - Description - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__return-api_found: - - .. rst-class:: ansible-option-title - - **api_found** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`boolean` - - .. raw:: html - -
- - - .. raw:: html - -
- - Whether the specified api\_version and VirtualMachine kind were successfully mapped to an existing API on the targeted cluster. - - - .. rst-class:: ansible-option-line - - :ansible-option-returned-bold:`Returned:` always - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__return-resources: - - .. rst-class:: ansible-option-title - - **resources** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`complex` - - .. raw:: html - -
- - - .. raw:: html - -
- - The VirtualMachine(s) that exists - - - .. rst-class:: ansible-option-line - - :ansible-option-returned-bold:`Returned:` success - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__return-resources/api_version: - - .. rst-class:: ansible-option-title - - **api_version** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - The versioned schema of this representation of an object. - - - .. rst-class:: ansible-option-line - - :ansible-option-returned-bold:`Returned:` success - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__return-resources/kind: - - .. rst-class:: ansible-option-title - - **kind** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`string` - - .. raw:: html - -
- - - .. raw:: html - -
- - Represents the REST resource this object represents. - - - .. rst-class:: ansible-option-line - - :ansible-option-returned-bold:`Returned:` success - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__return-resources/metadata: - - .. rst-class:: ansible-option-title - - **metadata** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`dictionary` - - .. raw:: html - -
- - - .. raw:: html - -
- - Standard object metadata. Includes name, namespace, annotations, labels, etc. - - - .. rst-class:: ansible-option-line - - :ansible-option-returned-bold:`Returned:` success - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__return-resources/spec: - - .. rst-class:: ansible-option-title - - **spec** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`dictionary` - - .. raw:: html - -
- - - .. raw:: html - -
- - Specific attributes of the VirtualMachine. Can vary based on the \ :emphasis:`api\_version`\ . - - - .. rst-class:: ansible-option-line - - :ansible-option-returned-bold:`Returned:` success - - - .. raw:: html - -
- - - * - .. raw:: html - -
-
- - .. _ansible_collections.kubevirt.core.kubevirt_vm_info_module__return-resources/status: - - .. rst-class:: ansible-option-title - - **status** - - .. raw:: html - - - - .. rst-class:: ansible-option-type-line - - :ansible-option-type:`dictionary` - - .. raw:: html - -
- - - .. raw:: html - -
- - Current status details for the VirtualMachine. - - - .. rst-class:: ansible-option-line - - :ansible-option-returned-bold:`Returned:` success - - - .. raw:: html - -
- +.. raw:: html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Key

Description

+
+

api_found

+ +

+ boolean +

+
+

Whether the specified api_version and VirtualMachine kind were successfully mapped to an existing API on the targeted cluster.

+

Returned: always

+
+
+

resources

+ +

+ complex +

+
+

The VirtualMachine(s) that exists

+

Returned: success

+
+
+

api_version

+ +

+ string +

+
+

The versioned schema of this representation of an object.

+

Returned: success

+
+
+

kind

+ +

+ string +

+
+

Represents the REST resource this object represents.

+

Returned: success

+
+
+

metadata

+ +

+ dictionary +

+
+

Standard object metadata. Includes name, namespace, annotations, labels, etc.

+

Returned: success

+
+
+

spec

+ +

+ dictionary +

+
+

Specific attributes of the VirtualMachine. Can vary based on the api_version.

+

Returned: success

+
+
+

status

+ +

+ dictionary +

+
+

Current status details for the VirtualMachine.

+

Returned: success

+
diff --git a/main/_static/antsibull-minimal.css b/main/_static/antsibull-minimal.css index ebc82d8..3b17984 100644 --- a/main/_static/antsibull-minimal.css +++ b/main/_static/antsibull-minimal.css @@ -1,3 +1,3 @@ @charset "UTF-8"; /* Copyright (c) Ansible and contributors */ -/* GNU General Public License v3.0+ (see https://www.gnu.org/licenses/gpl-3.0.txt) */.ansible-links{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.ansible-links>a{padding:4px 12px;margin:2px 4px;cursor:pointer;border-radius:3px;background-color:#5bbdbf;color:#fff}.ansible-links>a:active,.ansible-links>a:focus,.ansible-links>a:hover{background-color:#91d9db}.ansible-links>a:focus{outline:3px solid #204748}table.documentation-table{border-bottom:1px solid #000;border-right:1px solid #000}table.documentation-table th{background-color:#6ab0de}table.documentation-table td,table.documentation-table th{padding:4px;border-left:1px solid #000;border-top:1px solid #000}table.documentation-table td.elbow-placeholder{border-top:0;width:30px;min-width:30px}table.documentation-table td{vertical-align:top}table.documentation-table td:first-child{white-space:nowrap}table.documentation-table tr .ansibleOptionLink{display:inline-block}table.documentation-table tr .ansibleOptionLink:after{content:"🔗";opacity:0}table.documentation-table tr:hover .ansibleOptionLink:after{opacity:1}table.documentation-table tr:nth-child(odd){background-color:#fff}table.documentation-table tr:nth-child(2n){background-color:#e7f2fa}table.ansible-option-table{display:table;border-color:#000!important;height:1px}table.ansible-option-table tr{height:100%}table.ansible-option-table td,table.ansible-option-table th{border-color:#000!important;border-bottom:none!important;vertical-align:top!important}table.ansible-option-table th>p{font-size:medium!important}table.ansible-option-table thead tr{background-color:#6ab0de}table.ansible-option-table tbody .row-odd td{background-color:#fff!important}table.ansible-option-table tbody .row-even td{background-color:#e7f2fa!important}table.ansible-option-table ul>li>p{margin:0!important}table.ansible-option-table ul>li>div[class^=highlight]{margin-bottom:4px!important}table.ansible-option-table p.ansible-option-title{display:inline}table.ansible-option-table .ansible-option-type-line{font-size:small;margin-bottom:0}table.ansible-option-table .ansible-option-elements,table.ansible-option-table .ansible-option-type{color:purple}table.ansible-option-table .ansible-option-required{color:red}table.ansible-option-table .ansible-option-versionadded{font-style:italic;font-size:small;color:#006400}table.ansible-option-table .ansible-option-aliases{color:#006400;white-space:normal}table.ansible-option-table .ansible-option-line{margin-top:8px}table.ansible-option-table .ansible-option-choices{font-weight:700}table.ansible-option-table .ansible-option-choices-default-mark,table.ansible-option-table .ansible-option-default{color:#00f}table.ansible-option-table .ansible-option-default-bold{color:#00f;font-weight:700}table.ansible-option-table .ansible-option-returned-bold{font-weight:700}table.ansible-option-table .ansible-option-sample{color:#00f;word-wrap:break-word;word-break:break-all}table.ansible-option-table .ansible-option-sample-bold{color:#000;font-weight:700}table.ansible-option-table .ansible-option-configuration{font-weight:700}table.ansible-option-table .ansibleOptionLink{display:inline-block}table.ansible-option-table .ansibleOptionLink:after{content:"🔗";opacity:0}table.ansible-option-table p{margin:0 0 8px}table.ansible-option-table tr:hover .ansibleOptionLink:after{opacity:1}table.ansible-option-table td{padding:0!important;white-space:normal}table.ansible-option-table td>div.ansible-option-cell{padding:8px 16px;border-top:1px solid #000}table.ansible-option-table td:first-child{height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}table.ansible-option-table td:first-child>div.ansible-option-cell{height:inherit;-webkit-box-flex:1;-webkit-flex:1 0 auto;-ms-flex:1 0 auto;flex:1 0 auto;white-space:nowrap;max-width:100%}table.ansible-option-table .ansible-option-indent{margin-left:2em;border-right:1px solid #000}table.ansible-option-table .ansible-attribute-support-label{display:none}table.ansible-option-table .ansible-attribute-support-label,table.ansible-option-table .ansible-attribute-support-property{font-weight:700}table.ansible-option-table .ansible-attribute-support-none{font-weight:700;color:red}table.ansible-option-table .ansible-attribute-support-partial{font-weight:700;color:#a5a500}table.ansible-option-table .ansible-attribute-support-full{font-weight:700;color:green}table.ansible-option-table .ansible-attribute-details{font-style:italic}@media (max-width:1200px){table.ansible-option-table{display:block;height:unset;border:none!important}table.ansible-option-table thead{display:none}table.ansible-option-table tbody,table.ansible-option-table td,table.ansible-option-table tr{display:block;border:none!important}table.ansible-option-table tbody .row-even td,table.ansible-option-table tbody .row-odd td{background-color:unset!important}table.ansible-option-table td>div.ansible-option-cell{border-top:none}table.ansible-option-table td:first-child>div.ansible-option-cell{background-color:#e7f2fa!important}table.ansible-option-table td:not(:first-child){display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}table.ansible-option-table td:not(:first-child)>div.ansible-option-cell{margin-left:1em}table.ansible-option-table .ansible-option-indent,table.ansible-option-table .ansible-option-indent-desc{margin-left:1em;border:none;border-right:3px solid #e7f2fa}table.ansible-option-table .ansible-attribute-support-label{display:unset}}.ansible-version-added{font-style:italic}.ansible-option-value a.reference.external,.ansible-option-value a.reference.external:hover,.ansible-option-value a.reference.internal,.ansible-option-value a.reference.internal:hover,.ansible-option a.reference.external,.ansible-option a.reference.external:hover,.ansible-option a.reference.internal,.ansible-option a.reference.internal:hover,.ansible-return-value a.reference.external,.ansible-return-value a.reference.external:hover,.ansible-return-value a.reference.internal,.ansible-return-value a.reference.internal:hover{color:unset} \ No newline at end of file +/* GNU General Public License v3.0+ (see https://www.gnu.org/licenses/gpl-3.0.txt) */.ansible-links{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.ansible-links>*{margin:2px 4px!important}.ansible-links>li{list-style:none!important}.ansible-links>li>p{display:inline}.ansible-links a{display:block;padding:4px 12px;cursor:pointer;border-radius:3px;background-color:#5bbdbf;color:#fff}.ansible-links a:active,.ansible-links a:focus,.ansible-links a:hover{background-color:#91d9db}.ansible-links a:focus{outline:3px solid #204748}table.documentation-table{border-bottom:1px solid #000;border-right:1px solid #000}table.documentation-table th{background-color:#6ab0de}table.documentation-table td,table.documentation-table th{padding:4px;border-left:1px solid #000;border-top:1px solid #000}table.documentation-table td.elbow-placeholder{border-top:0;width:30px;min-width:30px}table.documentation-table td{vertical-align:top}table.documentation-table td:first-child{white-space:nowrap}table.documentation-table tr .ansibleOptionLink{display:inline-block}table.documentation-table tr .ansibleOptionLink:after{content:"🔗";opacity:0}table.documentation-table tr:hover .ansibleOptionLink:after{opacity:1}table.documentation-table tr:nth-child(odd){background-color:#fff}table.documentation-table tr:nth-child(2n){background-color:#e7f2fa}table.ansible-option-table{display:table;border-color:#000!important;height:1px}table.ansible-option-table tr{height:100%}table.ansible-option-table td,table.ansible-option-table th{border-color:#000!important;border-bottom:none!important;vertical-align:top!important}table.ansible-option-table th>p{font-size:medium!important}table.ansible-option-table thead tr{background-color:#6ab0de}table.ansible-option-table tbody .row-odd td{background-color:#fff!important}table.ansible-option-table tbody .row-even td{background-color:#e7f2fa!important}table.ansible-option-table ul>li>p{margin:0!important}table.ansible-option-table ul>li>div[class^=highlight]{margin-bottom:4px!important}table.ansible-option-table p.ansible-option-title{display:inline}table.ansible-option-table .ansible-option-type-line{font-size:small;margin-bottom:0}table.ansible-option-table .ansible-option-elements,table.ansible-option-table .ansible-option-type{color:purple}table.ansible-option-table .ansible-option-required{color:red}table.ansible-option-table .ansible-option-versionadded{font-size:small;color:#006400}table.ansible-option-table .ansible-option-aliases{color:#006400;white-space:normal}table.ansible-option-table .ansible-option-line{margin-top:8px}table.ansible-option-table .ansible-option-choices-default-mark,table.ansible-option-table .ansible-option-default,table.ansible-option-table .ansible-option-default-bold{color:#00f}table.ansible-option-table .ansible-option-sample{color:#00f;word-wrap:break-word;word-break:break-all}table.ansible-option-table .ansible-option-sample-bold{color:#000}table.ansible-option-table .ansible-attribute-support-none{color:red}table.ansible-option-table .ansible-attribute-support-partial{color:#a5a500}table.ansible-option-table .ansible-attribute-support-full{color:green}table.ansible-option-table .ansibleOptionLink{display:inline-block}table.ansible-option-table .ansibleOptionLink:after{content:"🔗";opacity:0}table.ansible-option-table p{margin:0 0 8px}table.ansible-option-table tr:hover .ansibleOptionLink:after{opacity:1}table.ansible-option-table td{padding:0!important;white-space:normal}table.ansible-option-table td>div.ansible-option-cell{padding:8px 16px;border-top:1px solid #000}table.ansible-option-table td:first-child{height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}table.ansible-option-table td:first-child>div.ansible-option-cell{height:inherit;-webkit-box-flex:1;-webkit-flex:1 0 auto;-ms-flex:1 0 auto;flex:1 0 auto;white-space:nowrap;max-width:100%}table.ansible-option-table .ansible-option-indent{margin-left:2em;border-right:1px solid #000}table.ansible-option-table .ansible-attribute-support-label{display:none}@media (max-width:1200px){table.ansible-option-table{display:block;height:unset;border:none!important}table.ansible-option-table thead{display:none}table.ansible-option-table tbody,table.ansible-option-table td,table.ansible-option-table tr{display:block;border:none!important}table.ansible-option-table tbody .row-even td,table.ansible-option-table tbody .row-odd td{background-color:unset!important}table.ansible-option-table td>div.ansible-option-cell{border-top:none}table.ansible-option-table td:first-child>div.ansible-option-cell{background-color:#e7f2fa!important}table.ansible-option-table td:not(:first-child){display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}table.ansible-option-table td:not(:first-child)>div.ansible-option-cell{margin-left:1em}table.ansible-option-table .ansible-option-indent,table.ansible-option-table .ansible-option-indent-desc{margin-left:1em;border:none;border-right:3px solid #e7f2fa}table.ansible-option-table .ansible-attribute-support-label{display:unset}}.ansible-version-added{font-style:italic}.ansible-option-value a.reference.external,.ansible-option-value a.reference.external:hover,.ansible-option-value a.reference.internal,.ansible-option-value a.reference.internal:hover,.ansible-option a.reference.external,.ansible-option a.reference.external:hover,.ansible-option a.reference.internal,.ansible-option a.reference.internal:hover,.ansible-return-value a.reference.external,.ansible-return-value a.reference.external:hover,.ansible-return-value a.reference.internal,.ansible-return-value a.reference.internal:hover{color:unset} \ No newline at end of file diff --git a/main/developing.html b/main/developing.html index f4a207b..97f66a6 100644 --- a/main/developing.html +++ b/main/developing.html @@ -1,14 +1,16 @@ - + - + Contributor’s Guidelines — Kubevirt Ansible Collection documentation - - - - + + + + + + diff --git a/main/genindex.html b/main/genindex.html index 290da71..fde5be4 100644 --- a/main/genindex.html +++ b/main/genindex.html @@ -1,13 +1,15 @@ - + Index — Kubevirt Ansible Collection documentation - - - - + + + + + + @@ -85,69 +87,8 @@

Index

- A - | E
-

A

- - - -
- -

E

- - -
- diff --git a/main/index.html b/main/index.html index 1cf393e..65a526b 100644 --- a/main/index.html +++ b/main/index.html @@ -1,14 +1,16 @@ - + - + Welcome to kubevirt.core Collection documentation — Kubevirt Ansible Collection documentation - - - - + + + + + + diff --git a/main/objects.inv b/main/objects.inv index 1e004c0..2f0fded 100644 Binary files a/main/objects.inv and b/main/objects.inv differ diff --git a/main/plugins/index.html b/main/plugins/index.html index 20c6e8c..e2d3a54 100644 --- a/main/plugins/index.html +++ b/main/plugins/index.html @@ -1,14 +1,16 @@ - + - + Plugin Index — Kubevirt Ansible Collection documentation - - - - + + + + + + diff --git a/main/plugins/kubevirt.html b/main/plugins/kubevirt.html index 8e0ecad..5e9ef7e 100644 --- a/main/plugins/kubevirt.html +++ b/main/plugins/kubevirt.html @@ -1,14 +1,17 @@ - + - + + kubevirt – KubeVirt inventory source — Kubevirt Ansible Collection documentation - - - - + + + + + + @@ -104,7 +107,9 @@

kubevirt – KubeVirt inventory source

Note

-

This inventory plugin is part of the kubevirt.core collection.

+

This inventory plugin is part of the kubevirt.core collection.

+

It is not included in ansible-core. +To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install kubevirt.core. You need further requirements to be able to use this inventory plugin, see Requirements for details.

@@ -138,451 +143,750 @@ see

Parameters

- +
- - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + + - - + + + - - + + + - - + + + -

Parameter

Comments

Parameter

Comments

-

cache

-

boolean

-

Toggle to enable/disable the caching of the inventory’s source data, requires a cache plugin setup to work.

-

Choices:

-
    -
  • false ← (default)

  • -
  • true

  • -
-

Configuration:

- -
+
+

cache

+ +

+ boolean +

+ +
+

Toggle to enable/disable the caching of the inventory's source data, requires a cache plugin setup to work.

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +

Configuration:

+
    +
  • +

    INI entry

    +
    [inventory]
    +cache = false
    + +
  • +
  • +

    Environment variable: ANSIBLE_INVENTORY_CACHE

    + +
  • +
+
-

cache_connection

-

string

-

Cache connection data or path, read cache plugin documentation for specifics.

-

Configuration:

- -
+
+

cache_connection

+ +

+ string +

+ +
+

Cache connection data or path, read cache plugin documentation for specifics.

+

Configuration:

+
    +
  • +

    INI entries

    +
    [defaults]
    +fact_caching_connection = VALUE
    + +
    [inventory]
    +cache_connection = VALUE
    + +
  • +
  • +

    Environment variable: ANSIBLE_CACHE_PLUGIN_CONNECTION

    + +
  • +
  • +

    Environment variable: ANSIBLE_INVENTORY_CACHE_CONNECTION

    + +
  • +
+
-

cache_plugin

-

string

-

Cache plugin to use for the inventory’s source data.

-

Default: "memory"

-

Configuration:

- -
+
+

cache_plugin

+ +

+ string +

+ +
+

Cache plugin to use for the inventory's source data.

+

Default: "memory"

+

Configuration:

+
    +
  • +

    INI entries

    +
    [defaults]
    +fact_caching = memory
    + +
    [inventory]
    +cache_plugin = memory
    + +
  • +
  • +

    Environment variable: ANSIBLE_CACHE_PLUGIN

    + +
  • +
  • +

    Environment variable: ANSIBLE_INVENTORY_CACHE_PLUGIN

    + +
  • +
+
-

cache_prefix

-

string

-

Prefix to use for cache plugin files/tables

-

Default: "ansible_inventory_"

-

Configuration:

-
    -
  • INI entries:

    -
    [default]
    -fact_caching_prefix = ansible_inventory_
    -
    -
    -

    Removed in: version 2.16 of ansible.builtin

    -

    Why: Fixes typing error in INI section name

    -

    Alternative: Use the ‘defaults’ section instead

    -
    [defaults]
    -fact_caching_prefix = ansible_inventory_
    -
    -
    -
    [inventory]
    -cache_prefix = ansible_inventory_
    -
    -
    -
  • -
  • Environment variable: ANSIBLE_CACHE_PLUGIN_PREFIX

  • -
  • Environment variable: ANSIBLE_INVENTORY_CACHE_PLUGIN_PREFIX

  • -
-
+
+

cache_prefix

+ +

+ string +

+ +
+

Prefix to use for cache plugin files/tables

+

Default: "ansible_inventory_"

+

Configuration:

+
    +
  • +

    INI entries

    +
    [defaults]
    +fact_caching_prefix = ansible_inventory_
    + +
    [inventory]
    +cache_prefix = ansible_inventory_
    + +
  • +
  • +

    Environment variable: ANSIBLE_CACHE_PLUGIN_PREFIX

    + +
  • +
  • +

    Environment variable: ANSIBLE_INVENTORY_CACHE_PLUGIN_PREFIX

    + +
  • +
+
-

cache_timeout

-

integer

-

Cache duration in seconds

-

Default: 3600

-

Configuration:

- -
+
+

cache_timeout

+ +

+ integer +

+ +
+

Cache duration in seconds

+

Default: 3600

+

Configuration:

+
    +
  • +

    INI entries

    +
    [defaults]
    +fact_caching_timeout = 3600
    + +
    [inventory]
    +cache_timeout = 3600
    + +
  • +
  • +

    Environment variable: ANSIBLE_CACHE_PLUGIN_TIMEOUT

    + +
  • +
  • +

    Environment variable: ANSIBLE_INVENTORY_CACHE_TIMEOUT

    + +
  • +
+
-

compose

-

dictionary

-

Create vars from jinja2 expressions.

-

Default: {}

-
+
+

compose

+ +

+ dictionary +

+ +
+

Create vars from jinja2 expressions.

+

Default: {}

+
-

connections

-

string

-

Optional list of cluster connection settings. If no connections are provided, the default ~/.kube/config and active context will be used, and objects will be returned for all namespaces the active user is authorized to access.

-
+
+

connections

+ +

+ string +

+ +
+

Optional list of cluster connection settings. If no connections are provided, the default ~/.kube/config and active context will be used, and objects will be returned for all namespaces the active user is authorized to access.

+
-

api_key

-

string

-

Token used to authenticate with the API. Can also be specified via K8S_AUTH_API_KEY environment variable.

-
+
+

api_key

+ +

+ string +

+ +
+

Token used to authenticate with the API. Can also be specified via K8S_AUTH_API_KEY environment variable.

+
-

api_version

-

string

-

Specify the used KubeVirt API version.

-

Default: "kubevirt.io/v1"

-
+
+

api_version

+ +

+ string +

+ +
+

Specify the used KubeVirt API version.

+

Default: "kubevirt.io/v1"

+
-
-

ca_cert

-

aliases: ssl_ca_cert

-

string

-

Path to a CA certificate used to authenticate with the API. Can also be specified via K8S_AUTH_SSL_CA_CERT environment variable.

-
+
+
+

ca_cert

+ +

aliases: ssl_ca_cert

+

+ string +

+ +
+

Path to a CA certificate used to authenticate with the API. Can also be specified via K8S_AUTH_SSL_CA_CERT environment variable.

+
-
-

client_cert

-

aliases: cert_file

-

string

-

Path to a certificate used to authenticate with the API. Can also be specified via K8S_AUTH_CERT_FILE environment variable.

-
+
+
+

client_cert

+ +

aliases: cert_file

+

+ string +

+ +
+

Path to a certificate used to authenticate with the API. Can also be specified via K8S_AUTH_CERT_FILE environment variable.

+
-
-

client_key

-

aliases: key_file

-

string

-

Path to a key file used to authenticate with the API. Can also be specified via K8S_AUTH_KEY_FILE environment variable.

-
+
+
+

client_key

+ +

aliases: key_file

+

+ string +

+ +
+

Path to a key file used to authenticate with the API. Can also be specified via K8S_AUTH_KEY_FILE environment variable.

+
-

context

-

string

-

The name of a context found in the config file. Can also be specified via K8S_AUTH_CONTEXT environment variable.

-
+
+

context

+ +

+ string +

+ +
+

The name of a context found in the config file. Can also be specified via K8S_AUTH_CONTEXT environment variable.

+
-

create_groups

-

boolean

-

Enable the creation of groups from labels on VirtualMachines.

-

Choices:

-
    -
  • false ← (default)

  • -
  • true

  • -
-
+
+

create_groups

+ +

+ boolean +

+ +
+

Enable the creation of groups from labels on VirtualMachines.

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +
-

host

-

string

-

Provide a URL for accessing the API. Can also be specified via K8S_AUTH_HOST environment variable.

-
+
+

host

+ +

+ string +

+ +
+

Provide a URL for accessing the API. Can also be specified via K8S_AUTH_HOST environment variable.

+
-

kube_secondary_dns

-

boolean

-

Enable kubesecondarydns derived host names when using a secondary network interface.

-

Choices:

-
    -
  • false ← (default)

  • -
  • true

  • -
-
+
+

kube_secondary_dns

+ +

+ boolean +

+ +
+

Enable kubesecondarydns derived host names when using a secondary network interface.

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +
-

kubeconfig

-

string

-

Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the Kubernetes client will attempt to load the default configuration file from ~/.kube/config. Can also be specified via K8S_AUTH_KUBECONFIG environment variable.

-
+
+

kubeconfig

+ +

+ string +

+ +
+

Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the Kubernetes client will attempt to load the default configuration file from ~/.kube/config. Can also be specified via K8S_AUTH_KUBECONFIG environment variable.

+
-

label_selector

-

string

-

Define a label selector to select a subset of the fetched VirtualMachineInstances.

-
+
+

label_selector

+ +

+ string +

+ +
+

Define a label selector to select a subset of the fetched VirtualMachineInstances.

+
-

name

-

string

-

Optional name to assign to the cluster. If not provided, a name is constructed from the server and port.

-
+
+

name

+ +

+ string +

+ +
+

Optional name to assign to the cluster. If not provided, a name is constructed from the server and port.

+
-

namespaces

-

string

-

List of namespaces. If not specified, will fetch all VirtualMachineInstances for all namespaces the user is authorized to access.

-
+
+

namespaces

+ +

+ string +

+ +
+

List of namespaces. If not specified, will fetch all VirtualMachineInstances for all namespaces the user is authorized to access.

+
-
-

network_name

-

aliases: interface_name

-

string

-

In case multiple networks are attached to a VirtualMachineInstance, define which interface should be returned as primary IP address.

-
+
+
+

network_name

+ +

aliases: interface_name

+

+ string +

+ +
+

In case multiple networks are attached to a VirtualMachineInstance, define which interface should be returned as primary IP address.

+
-

password

-

string

-

Provide a password for authenticating with the API. Can also be specified via K8S_AUTH_PASSWORD environment variable.

-
+
+

password

+ +

+ string +

+ +
+

Provide a password for authenticating with the API. Can also be specified via K8S_AUTH_PASSWORD environment variable.

+
-

use_service

-

boolean

-

Enable the use of services to establish an SSH connection to the VirtualMachine.

-

Choices:

-
    -
  • false

  • -
  • true ← (default)

  • -
-
+
+

use_service

+ +

+ boolean +

+ +
+

Enable the use of services to establish an SSH connection to the VirtualMachine.

+

Choices:

+
    +
  • false

  • +
  • true ← (default)

  • +
+ +
-

username

-

string

-

Provide a username for authenticating with the API. Can also be specified via K8S_AUTH_USERNAME environment variable.

-
+
+

username

+ +

+ string +

+ +
+

Provide a username for authenticating with the API. Can also be specified via K8S_AUTH_USERNAME environment variable.

+
-
-

validate_certs

-

aliases: verify_ssl

-

boolean

-

Whether or not to verify the API server’s SSL certificates. Can also be specified via K8S_AUTH_VERIFY_SSL environment variable.

-

Choices:

-
    -
  • false

  • -
  • true

  • -
-
+
+
+

validate_certs

+ +

aliases: verify_ssl

+

+ boolean +

+ +
+

Whether or not to verify the API server's SSL certificates. Can also be specified via K8S_AUTH_VERIFY_SSL environment variable.

+

Choices:

+
    +
  • false

  • +
  • true

  • +
+ +
-

groups

-

dictionary

-

Add hosts to group based on Jinja2 conditionals.

-

Default: {}

-
+
+

groups

+ +

+ dictionary +

+ +
+

Add hosts to group based on Jinja2 conditionals.

+

Default: {}

+
-

host_format

-

string

-

Specify the format of the host in the inventory group. Available specifiers: name, namespace, uid.

-

Default: "{namespace}-{name}"

-
+
+

host_format

+ +

+ string +

+ +
+

Specify the format of the host in the inventory group. Available specifiers: name, namespace, uid.

+

Default: "{namespace}-{name}"

+
-

keyed_groups

-

list / elements=dictionary

-

Add hosts to group based on the values of a variable.

-

Default: []

-
+
+

keyed_groups

+ +

+ list + / elements=dictionary +

+ +
+

Add hosts to group based on the values of a variable.

+

Default: []

+
-

default_value

-

string

-

added in ansible-core 2.12

-

The default value when the host variable’s value is an empty string.

-

This option is mutually exclusive with trailing_separator.

-
+
+

default_value

+ +

+ string +

+

added in ansible-core 2.12

+ +
+

The default value when the host variable's value is an empty string.

+

This option is mutually exclusive with keyed_groups[].trailing_separator.

+
-

key

-

string

-

The key from input dictionary used to generate groups

-
+
+

key

+ +

+ string +

+ +
+

The key from input dictionary used to generate groups

+
-

parent_group

-

string

-

parent group for keyed group

-
+
+

parent_group

+ +

+ string +

+ +
+

parent group for keyed group

+
-

prefix

-

string

-

A keyed group name will start with this prefix

-

Default: ""

-
+
+

prefix

+ +

+ string +

+ +
+

A keyed group name will start with this prefix

+

Default: ""

+
-

separator

-

string

-

separator used to build the keyed group name

-

Default: "_"

-
+
+

separator

+ +

+ string +

+ +
+

separator used to build the keyed group name

+

Default: "_"

+
-

trailing_separator

-

boolean

-

added in ansible-core 2.12

-

Set this option to False to omit the separator after the host variable when the value is an empty string.

-

This option is mutually exclusive with default_value.

-

Choices:

-
    -
  • false

  • -
  • true ← (default)

  • -
-
+
+

trailing_separator

+ +

+ boolean +

+

added in ansible-core 2.12

+ +
+

Set this option to False to omit the keyed_groups[].separator after the host variable when the value is an empty string.

+

This option is mutually exclusive with keyed_groups[].default_value.

+

Choices:

+
    +
  • false

  • +
  • true ← (default)

  • +
+ +
-

leading_separator

-

boolean

-

added in ansible-core 2.11

-

Use in conjunction with keyed_groups.

-

By default, a keyed group that does not have a prefix or a separator provided will have a name that starts with an underscore.

-

This is because the default prefix is “” and the default separator is “_”.

-

Set this option to False to omit the leading underscore (or other separator) if no prefix is given.

-

If the group name is derived from a mapping the separator is still used to concatenate the items.

-

To not use a separator in the group name at all, set the separator for the keyed group to an empty string instead.

-

Choices:

-
    -
  • false

  • -
  • true ← (default)

  • -
-
+
+

leading_separator

+ +

+ boolean +

+

added in ansible-core 2.11

+ +
+

Use in conjunction with keyed_groups.

+

By default, a keyed group that does not have a prefix or a separator provided will have a name that starts with an underscore.

+

This is because the default prefix is "" and the default separator is "_".

+

Set this option to False to omit the leading underscore (or other separator) if no prefix is given.

+

If the group name is derived from a mapping the separator is still used to concatenate the items.

+

To not use a separator in the group name at all, set the separator for the keyed group to an empty string instead.

+

Choices:

+
    +
  • false

  • +
  • true ← (default)

  • +
+ +
-

plugin

-

string / required

-

Token that ensures this is a source file for the “kubevirt” plugin.

-

Choices:

-
    -
  • "kubevirt"

  • -
  • "kubevirt.core.kubevirt"

  • -
-
+
+

plugin

+ +

+ string + / required +

+ +
+

Token that ensures this is a source file for the "kubevirt" plugin.

+

Choices:

+
    +
  • "kubevirt"

  • +
  • "kubevirt.core.kubevirt"

  • +
+ +
-

strict

-

boolean

-

If yes make invalid entries a fatal error, otherwise skip and continue.

-

Since it is possible to use facts in the expressions they might not always be available and we ignore those errors by default.

-

Choices:

-
    -
  • false ← (default)

  • -
  • true

  • -
-
+
+

strict

+ +

+ boolean +

+ +
+

If yes make invalid entries a fatal error, otherwise skip and continue.

+

Since it is possible to use facts in the expressions they might not always be available and we ignore those errors by default.

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +
-

use_extra_vars

-

boolean

-

added in ansible-core 2.11

-

Merge extra vars into the available variables for composition (highest precedence).

-

Choices:

-
    -
  • false ← (default)

  • -
  • true

  • -
-

Configuration:

- -
+
+

use_extra_vars

+ +

+ boolean +

+

added in ansible-core 2.11

+ +
+

Merge extra vars into the available variables for composition (highest precedence).

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +

Configuration:

+
    +
  • +

    INI entry

    +
    [inventory_plugins]
    +use_extra_vars = false
    + +
  • +
  • +

    Environment variable: ANSIBLE_INVENTORY_USE_EXTRA_VARS

    + +
  • +
+
-
+

Examples

diff --git a/main/plugins/kubevirt_vm.html b/main/plugins/kubevirt_vm.html index d447b1a..57edb2c 100644 --- a/main/plugins/kubevirt_vm.html +++ b/main/plugins/kubevirt_vm.html @@ -1,14 +1,17 @@ - + - + + kubevirt_vm – Create or delete KubeVirt VirtualMachines on Kubernetes — Kubevirt Ansible Collection documentation - - - - + + + + + + @@ -106,7 +109,9 @@

kubevirt_vm – Create or delete KubeVirt VirtualMachines on Kubernetes

Note

-

This module is part of the kubevirt.core collection.

+

This module is part of the kubevirt.core collection.

+

It is not included in ansible-core. +To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install kubevirt.core. You need further requirements to be able to use this module, see Requirements for details.

@@ -144,388 +149,647 @@ see

Parameters

- +
- - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + + - - + + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + -

Parameter

Comments

Parameter

Comments

-

annotations

-

dictionary

-

Specify annotations to set on the VirtualMachine.

-

Only used when state=present.

-
+
+

annotations

+ +

+ dictionary +

+
+

Specify annotations to set on the VirtualMachine.

+

Only used when state=present.

+
-

api_key

-

string

-

Token used to authenticate with the API. Can also be specified via K8S_AUTH_API_KEY environment variable.

-
+
+

api_key

+ +

+ string +

+
+

Token used to authenticate with the API. Can also be specified via K8S_AUTH_API_KEY environment variable.

+
-

api_version

-

string

-

Use this to set the API version of KubeVirt.

-

Default: "kubevirt.io/v1"

-
+
+

api_version

+ +

+ string +

+
+

Use this to set the API version of KubeVirt.

+

Default: "kubevirt.io/v1"

+
-
-

ca_cert

-

aliases: ssl_ca_cert

-

path

-

Path to a CA certificate used to authenticate with the API. The full certificate chain must be provided to avoid certificate validation errors. Can also be specified via K8S_AUTH_SSL_CA_CERT environment variable.

-
+
+
+

ca_cert

+ +

aliases: ssl_ca_cert

+

+ path +

+
+

Path to a CA certificate used to authenticate with the API. The full certificate chain must be provided to avoid certificate validation errors. Can also be specified via K8S_AUTH_SSL_CA_CERT environment variable.

+
-
-

client_cert

-

aliases: cert_file

-

path

-

Path to a certificate used to authenticate with the API. Can also be specified via K8S_AUTH_CERT_FILE environment variable.

-
+
+
+

client_cert

+ +

aliases: cert_file

+

+ path +

+
+

Path to a certificate used to authenticate with the API. Can also be specified via K8S_AUTH_CERT_FILE environment variable.

+
-
-

client_key

-

aliases: key_file

-

path

-

Path to a key file used to authenticate with the API. Can also be specified via K8S_AUTH_KEY_FILE environment variable.

-
+
+
+

client_key

+ +

aliases: key_file

+

+ path +

+
+

Path to a key file used to authenticate with the API. Can also be specified via K8S_AUTH_KEY_FILE environment variable.

+
-

context

-

string

-

The name of a context found in the config file. Can also be specified via K8S_AUTH_CONTEXT environment variable.

-
+
+

context

+ +

+ string +

+
+

The name of a context found in the config file. Can also be specified via K8S_AUTH_CONTEXT environment variable.

+
-

data_volume_templates

-

list / elements=dictionary

-

Specify the DataVolume templates of the VirtualMachine.

-

See: http://kubevirt.io/api-reference/v1.0.0/definitions.html#_v1_datavolumetemplatespec

-
+
+

data_volume_templates

+ +

+ list + / elements=dictionary +

+
+

Specify the DataVolume templates of the VirtualMachine.

+

See: http://kubevirt.io/api-reference/v1.0.0/definitions.html#_v1_datavolumetemplatespec

+
-

delete_options

-

dictionary

-

added in kubernetes.core 1.2.0

-

Configure behavior when deleting an object.

-

Only used when state=absent.

-
+
+

delete_options

+ +

+ dictionary +

+

added in kubernetes.core 1.2.0

+
+

Configure behavior when deleting an object.

+

Only used when state=absent.

+
-

gracePeriodSeconds

-

integer

-

Specify how many seconds to wait before forcefully terminating.

-

Only implemented for Pod resources.

-

If not specified, the default grace period for the object type will be used.

-
+
+

gracePeriodSeconds

+ +

+ integer +

+
+

Specify how many seconds to wait before forcefully terminating.

+

Only implemented for Pod resources.

+

If not specified, the default grace period for the object type will be used.

+
-

preconditions

-

dictionary

-

Specify condition that must be met for delete to proceed.

-
+
+

preconditions

+ +

+ dictionary +

+
+

Specify condition that must be met for delete to proceed.

+
-

resourceVersion

-

string

-

Specify the resource version of the target object.

-
+
+

resourceVersion

+ +

+ string +

+
+

Specify the resource version of the target object.

+
-

uid

-

string

-

Specify the UID of the target object.

-
+
+

uid

+ +

+ string +

+
+

Specify the UID of the target object.

+
-

propagationPolicy

-

string

-

Use to control how dependent objects are deleted.

-

If not specified, the default policy for the object type will be used. This may vary across object types.

-

Choices:

-
    -
  • "Foreground"

  • -
  • "Background"

  • -
  • "Orphan"

  • -
-
+
+

propagationPolicy

+ +

+ string +

+
+

Use to control how dependent objects are deleted.

+

If not specified, the default policy for the object type will be used. This may vary across object types.

+

Choices:

+
    +
  • "Foreground"

  • +
  • "Background"

  • +
  • "Orphan"

  • +
+ +
-

force

-

boolean

-

If set to yes, and state is present, an existing object will be replaced.

-

Choices:

-
    -
  • false ← (default)

  • -
  • true

  • -
-
+
+

force

+ +

+ boolean +

+
+

If set to yes, and state is present, an existing object will be replaced.

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +
-

generate_name

-

string

-

Specify the basis of the VirtualMachine name and random characters will be added automatically on server to generate a unique name.

-

Only used when state=present.

-

mutually exclusive with name.

-
+
+

generate_name

+ +

+ string +

+
+

Specify the basis of the VirtualMachine name and random characters will be added automatically on server to generate a unique name.

+

Only used when state=present.

+

mutually exclusive with name.

+
-

host

-

string

-

Provide a URL for accessing the API. Can also be specified via K8S_AUTH_HOST environment variable.

-
+
+

host

+ +

+ string +

+
+

Provide a URL for accessing the API. Can also be specified via K8S_AUTH_HOST environment variable.

+
-

impersonate_groups

-

list / elements=string

-

added in kubernetes.core 2.3.0

-

Group(s) to impersonate for the operation.

-

Can also be specified via K8S_AUTH_IMPERSONATE_GROUPS environment. Example: Group1,Group2

-
+
+

impersonate_groups

+ +

+ list + / elements=string +

+

added in kubernetes.core 2.3.0

+
+

Group(s) to impersonate for the operation.

+

Can also be specified via K8S_AUTH_IMPERSONATE_GROUPS environment. Example: Group1,Group2

+
-

impersonate_user

-

string

-

added in kubernetes.core 2.3.0

-

Username to impersonate for the operation.

-

Can also be specified via K8S_AUTH_IMPERSONATE_USER environment.

-
+
+

impersonate_user

+ +

+ string +

+

added in kubernetes.core 2.3.0

+
+

Username to impersonate for the operation.

+

Can also be specified via K8S_AUTH_IMPERSONATE_USER environment.

+
-

instancetype

-

dictionary

-

Specify the instancetype matcher of the VirtualMachine.

-

Only used when state=present.

-
+
+

instancetype

+ +

+ dictionary +

+
+

Specify the instancetype matcher of the VirtualMachine.

+

Only used when state=present.

+
-

kubeconfig

-

any

-

Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the Kubernetes client will attempt to load the default configuration file from ~/.kube/config. Can also be specified via K8S_AUTH_KUBECONFIG environment variable.

-

Multiple Kubernetes config file can be provided using separator ‘;’ for Windows platform or ‘:’ for others platforms.

-

The kubernetes configuration can be provided as dictionary. This feature requires a python kubernetes client version >= 17.17.0. Added in version 2.2.0.

-
+
+

kubeconfig

+ +

+ any +

+
+

Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the Kubernetes client will attempt to load the default configuration file from ~/.kube/config. Can also be specified via K8S_AUTH_KUBECONFIG environment variable.

+

Multiple Kubernetes config file can be provided using separator ';' for Windows platform or ':' for others platforms.

+

The kubernetes configuration can be provided as dictionary. This feature requires a python kubernetes client version >= 17.17.0. Added in version 2.2.0.

+
-

labels

-

dictionary

-

Specify labels to set on the VirtualMachine.

-
+
+

labels

+ +

+ dictionary +

+
+

Specify labels to set on the VirtualMachine.

+
-

name

-

string

-

Specify the name of the VirtualMachine.

-

This option is ignored when state is not set to present.

-

mutually exclusive with generate_name.

-
+
+

name

+ +

+ string +

+
+

Specify the name of the VirtualMachine.

+

This option is ignored when state is not set to present.

+

mutually exclusive with generate_name.

+
-

namespace

-

string / required

-

Specify the namespace of the VirtualMachine.

-
+
+

namespace

+ +

+ string + / required +

+
+

Specify the namespace of the VirtualMachine.

+
-

no_proxy

-

string

-

added in kubernetes.core 2.3.0

-

The comma separated list of hosts/domains/IP/CIDR that shouldn’t go through proxy. Can also be specified via K8S_AUTH_NO_PROXY environment variable.

-

Please note that this module does not pick up typical proxy settings from the environment (e.g. NO_PROXY).

-

This feature requires kubernetes>=19.15.0. When kubernetes library is less than 19.15.0, it fails even no_proxy set in correct.

-

example value is “localhost,.local,.example.com,127.0.0.1,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16”

-
+
+

no_proxy

+ +

+ string +

+

added in kubernetes.core 2.3.0

+
+

The comma separated list of hosts/domains/IP/CIDR that shouldn't go through proxy. Can also be specified via K8S_AUTH_NO_PROXY environment variable.

+

Please note that this module does not pick up typical proxy settings from the environment (e.g. NO_PROXY).

+

This feature requires kubernetes>=19.15.0. When kubernetes library is less than 19.15.0, it fails even no_proxy set in correct.

+

example value is "localhost,.local,.example.com,127.0.0.1,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"

+
-

password

-

string

-

Provide a password for authenticating with the API. Can also be specified via K8S_AUTH_PASSWORD environment variable.

-

Please read the description of the username option for a discussion of when this option is applicable.

-
+
+

password

+ +

+ string +

+
+

Provide a password for authenticating with the API. Can also be specified via K8S_AUTH_PASSWORD environment variable.

+

Please read the description of the username option for a discussion of when this option is applicable.

+
-

persist_config

-

boolean

-

Whether or not to save the kube config refresh tokens. Can also be specified via K8S_AUTH_PERSIST_CONFIG environment variable.

-

When the k8s context is using a user credentials with refresh tokens (like oidc or gke/gcloud auth), the token is refreshed by the k8s python client library but not saved by default. So the old refresh token can expire and the next auth might fail. Setting this flag to true will tell the k8s python client to save the new refresh token to the kube config file.

-

Default to false.

-

Please note that the current version of the k8s python client library does not support setting this flag to True yet.

-

The fix for this k8s python library is here: https://github.com/kubernetes-client/python-base/pull/169

-

Choices:

-
    -
  • false

  • -
  • true

  • -
-
+
+

persist_config

+ +

+ boolean +

+
+

Whether or not to save the kube config refresh tokens. Can also be specified via K8S_AUTH_PERSIST_CONFIG environment variable.

+

When the k8s context is using a user credentials with refresh tokens (like oidc or gke/gcloud auth), the token is refreshed by the k8s python client library but not saved by default. So the old refresh token can expire and the next auth might fail. Setting this flag to true will tell the k8s python client to save the new refresh token to the kube config file.

+

Default to false.

+

Please note that the current version of the k8s python client library does not support setting this flag to True yet.

+

The fix for this k8s python library is here: https://github.com/kubernetes-client/python-base/pull/169

+

Choices:

+
    +
  • false

  • +
  • true

  • +
+ +
-

preference

-

dictionary

-

Specify the preference matcher of the VirtualMachine.

-

Only used when state=present.

-
+
+

preference

+ +

+ dictionary +

+
+

Specify the preference matcher of the VirtualMachine.

+

Only used when state=present.

+
-

proxy

-

string

-

The URL of an HTTP proxy to use for the connection. Can also be specified via K8S_AUTH_PROXY environment variable.

-

Please note that this module does not pick up typical proxy settings from the environment (e.g. HTTP_PROXY).

-
+
+

proxy

+ +

+ string +

+
+

The URL of an HTTP proxy to use for the connection. Can also be specified via K8S_AUTH_PROXY environment variable.

+

Please note that this module does not pick up typical proxy settings from the environment (e.g. HTTP_PROXY).

+
-

proxy_headers

-

dictionary

-

added in kubernetes.core 2.0.0

-
+
+

proxy_headers

+ +

+ dictionary +

+

added in kubernetes.core 2.0.0

+
-

basic_auth

-

string

-

Colon-separated username:password for basic authentication header.

-

Can also be specified via K8S_AUTH_PROXY_HEADERS_BASIC_AUTH environment.

-
+
+

basic_auth

+ +

+ string +

+
+

Colon-separated username:password for basic authentication header.

+

Can also be specified via K8S_AUTH_PROXY_HEADERS_BASIC_AUTH environment.

+
-

proxy_basic_auth

-

string

-

Colon-separated username:password for proxy basic authentication header.

-

Can also be specified via K8S_AUTH_PROXY_HEADERS_PROXY_BASIC_AUTH environment.

-
+
+

proxy_basic_auth

+ +

+ string +

+
+

Colon-separated username:password for proxy basic authentication header.

+

Can also be specified via K8S_AUTH_PROXY_HEADERS_PROXY_BASIC_AUTH environment.

+
-

user_agent

-

string

-

String representing the user-agent you want, such as foo/1.0.

-

Can also be specified via K8S_AUTH_PROXY_HEADERS_USER_AGENT environment.

-
+
+

user_agent

+ +

+ string +

+
+

String representing the user-agent you want, such as foo/1.0.

+

Can also be specified via K8S_AUTH_PROXY_HEADERS_USER_AGENT environment.

+
-

running

-

boolean

-

Specify whether the VirtualMachine should be running.

-

Choices:

-
    -
  • false

  • -
  • true ← (default)

  • -
-
+
+

running

+ +

+ boolean +

+
+

Specify whether the VirtualMachine should be running.

+

Choices:

+
    +
  • false

  • +
  • true ← (default)

  • +
+ +
-

spec

-

dictionary

-
+
+

spec

+ +

+ dictionary +

+
+

Specify the template spec of the VirtualMachine.

+

See: http://kubevirt.io/api-reference/v1.0.0/definitions.html#_v1_virtualmachineinstancespec

+
-

state

-

string

-

Determines if an object should be created, patched, or deleted. When set to present, an object will be created, if it does not already exist. If set to absent, an existing object will be deleted. If set to present, an existing object will be patched, if its attributes differ from those specified using resource_definition or src.

-

Choices:

-
    -
  • "absent"

  • -
  • "present" ← (default)

  • -
-
+
+

state

+ +

+ string +

+
+

Determines if an object should be created, patched, or deleted. When set to present, an object will be created, if it does not already exist. If set to absent, an existing object will be deleted. If set to present, an existing object will be patched, if its attributes differ from those specified using resource_definition or src.

+

Choices:

+
    +
  • "absent"

  • +
  • "present" ← (default)

  • +
+ +
-

username

-

string

-

Provide a username for authenticating with the API. Can also be specified via K8S_AUTH_USERNAME environment variable.

-

Please note that this only works with clusters configured to use HTTP Basic Auth. If your cluster has a different form of authentication (e.g. OAuth2 in OpenShift), this option will not work as expected and you should look into the community.okd.k8s_auth module, as that might do what you need.

-
+
+

username

+ +

+ string +

+
+

Provide a username for authenticating with the API. Can also be specified via K8S_AUTH_USERNAME environment variable.

+

Please note that this only works with clusters configured to use HTTP Basic Auth. If your cluster has a different form of authentication (e.g. OAuth2 in OpenShift), this option will not work as expected and you should look into the community.okd.k8s_auth module, as that might do what you need.

+
-
-

validate_certs

-

aliases: verify_ssl

-

boolean

-

Whether or not to verify the API server’s SSL certificates. Can also be specified via K8S_AUTH_VERIFY_SSL environment variable.

-

Choices:

-
    -
  • false

  • -
  • true

  • -
-
+
+
+

validate_certs

+ +

aliases: verify_ssl

+

+ boolean +

+
+

Whether or not to verify the API server's SSL certificates. Can also be specified via K8S_AUTH_VERIFY_SSL environment variable.

+

Choices:

+
    +
  • false

  • +
  • true

  • +
+ +
-

wait

-

boolean

-

Whether to wait for the VirtualMachine to end up in the ready state.

-

Choices:

-
    -
  • false ← (default)

  • -
  • true

  • -
-
+
+

wait

+ +

+ boolean +

+
+

Whether to wait for the VirtualMachine to end up in the ready state.

+

Choices:

+
    +
  • false ← (default)

  • +
  • true

  • +
+ +
-

wait_sleep

-

integer

-

Number of seconds to sleep between checks.

-

Ignored if wait is not set.

-

Default: 5

-
+
+

wait_sleep

+ +

+ integer +

+
+

Number of seconds to sleep between checks.

+

Ignored if wait is not set.

+

Default: 5

+
-

wait_timeout

-

integer

-

How long in seconds to wait for the resource to end up in the desired state.

-

Ignored if wait is not set.

-

Default: 120

-
+
+

wait_timeout

+ +

+ integer +

+
+

How long in seconds to wait for the resource to end up in the desired state.

+

Ignored if wait is not set.

+

Default: 120

+
-
+

Notes

@@ -552,27 +816,27 @@ see domain: devices: interfaces: - - name: default - masquerade: {} - - name: bridge-network - bridge: {} + - name: default + masquerade: {} + - name: bridge-network + bridge: {} networks: - - name: default - pod: {} - - name: bridge-network - multus: - networkName: kindexgw + - name: default + pod: {} + - name: bridge-network + multus: + networkName: kindexgw volumes: - - containerDisk: - image: quay.io/containerdisks/fedora:latest - name: containerdisk - - cloudInitNoCloud: - userData: |- - #cloud-config - # The default username is: fedora - ssh_authorized_keys: - - ssh-ed25519 AAAA... - name: cloudinit + - containerDisk: + image: quay.io/containerdisks/fedora:latest + name: containerdisk + - cloudInitNoCloud: + userData: |- + #cloud-config + # The default username is: fedora + ssh_authorized_keys: + - ssh-ed25519 AAAA... + name: cloudinit - name: Create a VirtualMachine with a DataVolume template kubevirt.core.kubevirt_vm: @@ -594,7 +858,7 @@ see url: docker://quay.io/containerdisks/fedora:latest storage: accessModes: - - ReadWriteOnce + - ReadWriteOnce resources: requests: storage: 5Gi @@ -602,16 +866,16 @@ see domain: devices: {} volumes: - - dataVolume: - name: testdv - name: datavolume - - cloudInitNoCloud: - userData: |- - #cloud-config - # The default username is: fedora - ssh_authorized_keys: - - ssh-ed25519 AAAA... - name: cloudinit + - dataVolume: + name: testdv + name: datavolume + - cloudInitNoCloud: + userData: |- + #cloud-config + # The default username is: fedora + ssh_authorized_keys: + - ssh-ed25519 AAAA... + name: cloudinit wait: yes - name: Delete a VirtualMachine @@ -624,51 +888,76 @@ see

Return Values

-

Common return values are documented here, the following are the fields unique to this module:

- +

Common return values are documented here, the following are the fields unique to this module:

+
- - + + + - - + + + - - + + + - - + + + - - + + + + -

Key

Description

Key

Description

-

result

-

complex

-

The created object. Will be empty in the case of a deletion.

-

Returned: success

-
+
+

result

+ +

+ complex +

+
+

The created object. Will be empty in the case of a deletion.

+

Returned: success

+
-

changed

-

boolean

-

Whether the VirtualMachine was changed

-

Returned: success

-

Sample: true

-
+
+

changed

+ +

+ boolean +

+
+

Whether the VirtualMachine was changed

+

Returned: success

+

Sample: true

+
-

duration

-

integer

-

elapsed time of task in seconds

-

Returned: when wait is true

-

Sample: 48

-
+
+

duration

+ +

+ integer +

+
+

elapsed time of task in seconds

+

Returned: when wait is true

+

Sample: 48

+
-

method

-

string

-

Method executed on the Kubernetes API.

-

Returned: success

-
+
+

method

+ +

+ string +

+
+

Method executed on the Kubernetes API.

+

Returned: success

+
-
+

Authors

  • KubeVirt.io Project

  • diff --git a/main/plugins/kubevirt_vm_info.html b/main/plugins/kubevirt_vm_info.html index 7fb756b..8a07cdd 100644 --- a/main/plugins/kubevirt_vm_info.html +++ b/main/plugins/kubevirt_vm_info.html @@ -1,14 +1,17 @@ - + - + + kubevirt_vm_info – Describe VirtualMachines on Kubernetes — Kubevirt Ansible Collection documentation - - - - + + + + + + @@ -106,7 +109,9 @@

    kubevirt_vm_info – Describe VirtualMachines on Kubernetes

    Note

    -

    This module is part of the kubevirt.core collection.

    +

    This module is part of the kubevirt.core collection.

    +

    It is not included in ansible-core. +To check whether it is installed, run ansible-galaxy collection list.

    To install it, use: ansible-galaxy collection install kubevirt.core. You need further requirements to be able to use this module, see Requirements for details.

    @@ -141,257 +146,426 @@ see

    Parameters

    - +
    - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + + - - + + + - - + + + - - + + + - - + + + -

    Parameter

    Comments

    Parameter

    Comments

    -

    api_key

    -

    string

    -

    Token used to authenticate with the API. Can also be specified via K8S_AUTH_API_KEY environment variable.

    -
    +
    +

    api_key

    + +

    + string +

    +
    +

    Token used to authenticate with the API. Can also be specified via K8S_AUTH_API_KEY environment variable.

    +
    -

    api_version

    -

    string

    -

    Use this to set the API version of KubeVirt.

    -

    Default: "kubevirt.io/v1"

    -
    +
    +

    api_version

    + +

    + string +

    +
    +

    Use this to set the API version of KubeVirt.

    +

    Default: "kubevirt.io/v1"

    +
    -
    -

    ca_cert

    -

    aliases: ssl_ca_cert

    -

    path

    -

    Path to a CA certificate used to authenticate with the API. The full certificate chain must be provided to avoid certificate validation errors. Can also be specified via K8S_AUTH_SSL_CA_CERT environment variable.

    -
    +
    +
    +

    ca_cert

    + +

    aliases: ssl_ca_cert

    +

    + path +

    +
    +

    Path to a CA certificate used to authenticate with the API. The full certificate chain must be provided to avoid certificate validation errors. Can also be specified via K8S_AUTH_SSL_CA_CERT environment variable.

    +
    -
    -

    client_cert

    -

    aliases: cert_file

    -

    path

    -

    Path to a certificate used to authenticate with the API. Can also be specified via K8S_AUTH_CERT_FILE environment variable.

    -
    +
    +
    +

    client_cert

    + +

    aliases: cert_file

    +

    + path +

    +
    +

    Path to a certificate used to authenticate with the API. Can also be specified via K8S_AUTH_CERT_FILE environment variable.

    +
    -
    -

    client_key

    -

    aliases: key_file

    -

    path

    -

    Path to a key file used to authenticate with the API. Can also be specified via K8S_AUTH_KEY_FILE environment variable.

    -
    +
    +
    +

    client_key

    + +

    aliases: key_file

    +

    + path +

    +
    +

    Path to a key file used to authenticate with the API. Can also be specified via K8S_AUTH_KEY_FILE environment variable.

    +
    -

    context

    -

    string

    -

    The name of a context found in the config file. Can also be specified via K8S_AUTH_CONTEXT environment variable.

    -
    +
    +

    context

    + +

    + string +

    +
    +

    The name of a context found in the config file. Can also be specified via K8S_AUTH_CONTEXT environment variable.

    +
    -

    field_selectors

    -

    list / elements=string

    -

    List of field selectors to use to filter results

    -

    Default: []

    -
    +
    +

    field_selectors

    + +

    + list + / elements=string +

    +
    +

    List of field selectors to use to filter results

    +

    Default: []

    +
    -

    host

    -

    string

    -

    Provide a URL for accessing the API. Can also be specified via K8S_AUTH_HOST environment variable.

    -
    +
    +

    host

    + +

    + string +

    +
    +

    Provide a URL for accessing the API. Can also be specified via K8S_AUTH_HOST environment variable.

    +
    -

    impersonate_groups

    -

    list / elements=string

    -

    added in kubernetes.core 2.3.0

    -

    Group(s) to impersonate for the operation.

    -

    Can also be specified via K8S_AUTH_IMPERSONATE_GROUPS environment. Example: Group1,Group2

    -
    +
    +

    impersonate_groups

    + +

    + list + / elements=string +

    +

    added in kubernetes.core 2.3.0

    +
    +

    Group(s) to impersonate for the operation.

    +

    Can also be specified via K8S_AUTH_IMPERSONATE_GROUPS environment. Example: Group1,Group2

    +
    -

    impersonate_user

    -

    string

    -

    added in kubernetes.core 2.3.0

    -

    Username to impersonate for the operation.

    -

    Can also be specified via K8S_AUTH_IMPERSONATE_USER environment.

    -
    +
    +

    impersonate_user

    + +

    + string +

    +

    added in kubernetes.core 2.3.0

    +
    +

    Username to impersonate for the operation.

    +

    Can also be specified via K8S_AUTH_IMPERSONATE_USER environment.

    +
    -

    kubeconfig

    -

    any

    -

    Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the Kubernetes client will attempt to load the default configuration file from ~/.kube/config. Can also be specified via K8S_AUTH_KUBECONFIG environment variable.

    -

    Multiple Kubernetes config file can be provided using separator ‘;’ for Windows platform or ‘:’ for others platforms.

    -

    The kubernetes configuration can be provided as dictionary. This feature requires a python kubernetes client version >= 17.17.0. Added in version 2.2.0.

    -
    +
    +

    kubeconfig

    + +

    + any +

    +
    +

    Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the Kubernetes client will attempt to load the default configuration file from ~/.kube/config. Can also be specified via K8S_AUTH_KUBECONFIG environment variable.

    +

    Multiple Kubernetes config file can be provided using separator ';' for Windows platform or ':' for others platforms.

    +

    The kubernetes configuration can be provided as dictionary. This feature requires a python kubernetes client version >= 17.17.0. Added in version 2.2.0.

    +
    -

    label_selectors

    -

    list / elements=string

    -

    List of label selectors to use to filter results

    -

    Default: []

    -
    +
    +

    label_selectors

    + +

    + list + / elements=string +

    +
    +

    List of label selectors to use to filter results

    +

    Default: []

    +
    -

    name

    -

    string

    -

    Specify the name of the VirtualMachine.

    -
    +
    +

    name

    + +

    + string +

    +
    +

    Specify the name of the VirtualMachine.

    +
    -

    namespace

    -

    string

    -

    Specify the namespace of VirtualMachines.

    -
    +
    +

    namespace

    + +

    + string +

    +
    +

    Specify the namespace of VirtualMachines.

    +
    -

    no_proxy

    -

    string

    -

    added in kubernetes.core 2.3.0

    -

    The comma separated list of hosts/domains/IP/CIDR that shouldn’t go through proxy. Can also be specified via K8S_AUTH_NO_PROXY environment variable.

    -

    Please note that this module does not pick up typical proxy settings from the environment (e.g. NO_PROXY).

    -

    This feature requires kubernetes>=19.15.0. When kubernetes library is less than 19.15.0, it fails even no_proxy set in correct.

    -

    example value is “localhost,.local,.example.com,127.0.0.1,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16”

    -
    +
    +

    no_proxy

    + +

    + string +

    +

    added in kubernetes.core 2.3.0

    +
    +

    The comma separated list of hosts/domains/IP/CIDR that shouldn't go through proxy. Can also be specified via K8S_AUTH_NO_PROXY environment variable.

    +

    Please note that this module does not pick up typical proxy settings from the environment (e.g. NO_PROXY).

    +

    This feature requires kubernetes>=19.15.0. When kubernetes library is less than 19.15.0, it fails even no_proxy set in correct.

    +

    example value is "localhost,.local,.example.com,127.0.0.1,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"

    +
    -

    password

    -

    string

    -

    Provide a password for authenticating with the API. Can also be specified via K8S_AUTH_PASSWORD environment variable.

    -

    Please read the description of the username option for a discussion of when this option is applicable.

    -
    +
    +

    password

    + +

    + string +

    +
    +

    Provide a password for authenticating with the API. Can also be specified via K8S_AUTH_PASSWORD environment variable.

    +

    Please read the description of the username option for a discussion of when this option is applicable.

    +
    -

    persist_config

    -

    boolean

    -

    Whether or not to save the kube config refresh tokens. Can also be specified via K8S_AUTH_PERSIST_CONFIG environment variable.

    -

    When the k8s context is using a user credentials with refresh tokens (like oidc or gke/gcloud auth), the token is refreshed by the k8s python client library but not saved by default. So the old refresh token can expire and the next auth might fail. Setting this flag to true will tell the k8s python client to save the new refresh token to the kube config file.

    -

    Default to false.

    -

    Please note that the current version of the k8s python client library does not support setting this flag to True yet.

    -

    The fix for this k8s python library is here: https://github.com/kubernetes-client/python-base/pull/169

    -

    Choices:

    -
      -
    • false

    • -
    • true

    • -
    -
    +
    +

    persist_config

    + +

    + boolean +

    +
    +

    Whether or not to save the kube config refresh tokens. Can also be specified via K8S_AUTH_PERSIST_CONFIG environment variable.

    +

    When the k8s context is using a user credentials with refresh tokens (like oidc or gke/gcloud auth), the token is refreshed by the k8s python client library but not saved by default. So the old refresh token can expire and the next auth might fail. Setting this flag to true will tell the k8s python client to save the new refresh token to the kube config file.

    +

    Default to false.

    +

    Please note that the current version of the k8s python client library does not support setting this flag to True yet.

    +

    The fix for this k8s python library is here: https://github.com/kubernetes-client/python-base/pull/169

    +

    Choices:

    +
      +
    • false

    • +
    • true

    • +
    + +
    -

    proxy

    -

    string

    -

    The URL of an HTTP proxy to use for the connection. Can also be specified via K8S_AUTH_PROXY environment variable.

    -

    Please note that this module does not pick up typical proxy settings from the environment (e.g. HTTP_PROXY).

    -
    +
    +

    proxy

    + +

    + string +

    +
    +

    The URL of an HTTP proxy to use for the connection. Can also be specified via K8S_AUTH_PROXY environment variable.

    +

    Please note that this module does not pick up typical proxy settings from the environment (e.g. HTTP_PROXY).

    +
    -

    proxy_headers

    -

    dictionary

    -

    added in kubernetes.core 2.0.0

    -
    +
    +

    proxy_headers

    + +

    + dictionary +

    +

    added in kubernetes.core 2.0.0

    +
    -

    basic_auth

    -

    string

    -

    Colon-separated username:password for basic authentication header.

    -

    Can also be specified via K8S_AUTH_PROXY_HEADERS_BASIC_AUTH environment.

    -
    +
    +

    basic_auth

    + +

    + string +

    +
    +

    Colon-separated username:password for basic authentication header.

    +

    Can also be specified via K8S_AUTH_PROXY_HEADERS_BASIC_AUTH environment.

    +
    -

    proxy_basic_auth

    -

    string

    -

    Colon-separated username:password for proxy basic authentication header.

    -

    Can also be specified via K8S_AUTH_PROXY_HEADERS_PROXY_BASIC_AUTH environment.

    -
    +
    +

    proxy_basic_auth

    + +

    + string +

    +
    +

    Colon-separated username:password for proxy basic authentication header.

    +

    Can also be specified via K8S_AUTH_PROXY_HEADERS_PROXY_BASIC_AUTH environment.

    +
    -

    user_agent

    -

    string

    -

    String representing the user-agent you want, such as foo/1.0.

    -

    Can also be specified via K8S_AUTH_PROXY_HEADERS_USER_AGENT environment.

    -
    +
    +

    user_agent

    + +

    + string +

    +
    +

    String representing the user-agent you want, such as foo/1.0.

    +

    Can also be specified via K8S_AUTH_PROXY_HEADERS_USER_AGENT environment.

    +
    -

    username

    -

    string

    -

    Provide a username for authenticating with the API. Can also be specified via K8S_AUTH_USERNAME environment variable.

    -

    Please note that this only works with clusters configured to use HTTP Basic Auth. If your cluster has a different form of authentication (e.g. OAuth2 in OpenShift), this option will not work as expected and you should look into the community.okd.k8s_auth module, as that might do what you need.

    -
    +
    +

    username

    + +

    + string +

    +
    +

    Provide a username for authenticating with the API. Can also be specified via K8S_AUTH_USERNAME environment variable.

    +

    Please note that this only works with clusters configured to use HTTP Basic Auth. If your cluster has a different form of authentication (e.g. OAuth2 in OpenShift), this option will not work as expected and you should look into the community.okd.k8s_auth module, as that might do what you need.

    +
    -
    -

    validate_certs

    -

    aliases: verify_ssl

    -

    boolean

    -

    Whether or not to verify the API server’s SSL certificates. Can also be specified via K8S_AUTH_VERIFY_SSL environment variable.

    -

    Choices:

    -
      -
    • false

    • -
    • true

    • -
    -
    +
    +
    +

    validate_certs

    + +

    aliases: verify_ssl

    +

    + boolean +

    +
    +

    Whether or not to verify the API server's SSL certificates. Can also be specified via K8S_AUTH_VERIFY_SSL environment variable.

    +

    Choices:

    +
      +
    • false

    • +
    • true

    • +
    + +
    -

    wait

    -

    boolean

    -

    Whether to wait for the VirtualMachine to end up in the ready state.

    -

    Choices:

    -
      -
    • false ← (default)

    • -
    • true

    • -
    -
    +
    +

    wait

    + +

    + boolean +

    +
    +

    Whether to wait for the VirtualMachine to end up in the ready state.

    +

    Choices:

    +
      +
    • false ← (default)

    • +
    • true

    • +
    + +
    -

    wait_sleep

    -

    integer

    -

    Number of seconds to sleep between checks.

    -

    Ignored if wait is not set.

    -

    Default: 5

    -
    +
    +

    wait_sleep

    + +

    + integer +

    +
    +

    Number of seconds to sleep between checks.

    +

    Ignored if wait is not set.

    +

    Default: 5

    +
    -

    wait_timeout

    -

    integer

    -

    How long in seconds to wait for the resource to end up in the desired state.

    -

    Ignored if wait is not set.

    -

    Default: 120

    -
    +
    +

    wait_timeout

    + +

    + integer +

    +
    +

    How long in seconds to wait for the resource to end up in the desired state.

    +

    Ignored if wait is not set.

    +

    Default: 120

    +
    -
+

Notes

@@ -433,73 +607,116 @@ see

Return Values

-

Common return values are documented here, the following are the fields unique to this module:

- +

Common return values are documented here, the following are the fields unique to this module:

+
- - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + + -

Key

Description

Key

Description

-

api_found

-

boolean

-

Whether the specified api_version and VirtualMachine kind were successfully mapped to an existing API on the targeted cluster.

-

Returned: always

-
+
+

api_found

+ +

+ boolean +

+
+

Whether the specified api_version and VirtualMachine kind were successfully mapped to an existing API on the targeted cluster.

+

Returned: always

+
-

resources

-

complex

-

The VirtualMachine(s) that exists

-

Returned: success

-
+
+

resources

+ +

+ complex +

+
+

The VirtualMachine(s) that exists

+

Returned: success

+
-

api_version

-

string

-

The versioned schema of this representation of an object.

-

Returned: success

-
+
+

api_version

+ +

+ string +

+
+

The versioned schema of this representation of an object.

+

Returned: success

+
-

kind

-

string

-

Represents the REST resource this object represents.

-

Returned: success

-
+
+

kind

+ +

+ string +

+
+

Represents the REST resource this object represents.

+

Returned: success

+
-

metadata

-

dictionary

-

Standard object metadata. Includes name, namespace, annotations, labels, etc.

-

Returned: success

-
+
+

metadata

+ +

+ dictionary +

+
+

Standard object metadata. Includes name, namespace, annotations, labels, etc.

+

Returned: success

+
-

spec

-

dictionary

-

Specific attributes of the VirtualMachine. Can vary based on the api_version.

-

Returned: success

-
+
+

spec

+ +

+ dictionary +

+
+

Specific attributes of the VirtualMachine. Can vary based on the api_version.

+

Returned: success

+
-

status

-

dictionary

-

Current status details for the VirtualMachine.

-

Returned: success

-
+
+

status

+ +

+ dictionary +

+
+

Current status details for the VirtualMachine.

+

Returned: success

+
-
+

Authors

  • KubeVirt.io Project

  • diff --git a/main/releasing.html b/main/releasing.html index a012f45..085cc4d 100644 --- a/main/releasing.html +++ b/main/releasing.html @@ -1,14 +1,16 @@ - + - + Collection Versioning Strategy — Kubevirt Ansible Collection documentation - - - - + + + + + + diff --git a/main/roles/index.html b/main/roles/index.html index b4aded4..ace97f3 100644 --- a/main/roles/index.html +++ b/main/roles/index.html @@ -1,14 +1,16 @@ - + - + Role Index — Kubevirt Ansible Collection documentation - - - - + + + + + + diff --git a/main/search.html b/main/search.html index 3638f84..695cc6f 100644 --- a/main/search.html +++ b/main/search.html @@ -1,13 +1,15 @@ - + Search — Kubevirt Ansible Collection documentation - - - - + + + + + +