mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-03-27 03:13:10 +00:00
update minimum ansible-core to 2.14+
linter Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
This commit is contained in:
@@ -8,7 +8,7 @@ This repository hosts the `kubevirt.core` Ansible Collection, which provides vir
|
|||||||
<!--start requires_ansible-->
|
<!--start requires_ansible-->
|
||||||
## Ansible version compatibility
|
## 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**.
|
||||||
<!--end requires_ansible-->
|
<!--end requires_ansible-->
|
||||||
|
|
||||||
## Included content
|
## Included content
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
---
|
---
|
||||||
requires_ansible: '>=2.11.0' # Use '>= 2.9.10' instead, if needed
|
requires_ansible: '>=2.14.0'
|
||||||
|
|||||||
@@ -131,34 +131,38 @@ requirements:
|
|||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
# Filename must end with kubevirt.[yml|yaml]
|
# Filename must end with kubevirt.[yml|yaml]
|
||||||
|
|
||||||
|
---
|
||||||
# Authenticate with token, and return all VirtualMachineInstances for all accessible namespaces
|
# Authenticate with token, and return all VirtualMachineInstances for all accessible namespaces
|
||||||
plugin: kubevirt.core.kubevirt
|
plugin: kubevirt.core.kubevirt
|
||||||
connections:
|
connections:
|
||||||
- host: https://192.168.64.4:8443
|
- host: https://192.168.64.4:8443
|
||||||
api_key: xxxxxxxxxxxxxxxx
|
api_key: xxxxxxxxxxxxxxxx
|
||||||
validate_certs: false
|
validate_certs: false
|
||||||
|
|
||||||
|
---
|
||||||
# Use default config (~/.kube/config) file and active context, and return VirtualMachineInstances
|
# Use default config (~/.kube/config) file and active context, and return VirtualMachineInstances
|
||||||
# from namespace testing with interfaces connected to network bridge-network
|
# from namespace testing with interfaces connected to network bridge-network
|
||||||
plugin: kubevirt.core.kubevirt
|
plugin: kubevirt.core.kubevirt
|
||||||
connections:
|
connections:
|
||||||
- namespaces:
|
- namespaces:
|
||||||
- testing
|
- testing
|
||||||
network_name: bridge-network
|
network_name: bridge-network
|
||||||
|
|
||||||
|
---
|
||||||
# Use default config (~/.kube/config) file and active context, and return VirtualMachineInstances
|
# Use default config (~/.kube/config) file and active context, and return VirtualMachineInstances
|
||||||
# from namespace testing with label app=test
|
# from namespace testing with label app=test
|
||||||
plugin: kubevirt.core.kubevirt
|
plugin: kubevirt.core.kubevirt
|
||||||
connections:
|
connections:
|
||||||
- namespaces:
|
- namespaces:
|
||||||
- testing
|
- testing
|
||||||
label_selector: app=test
|
label_selector: app=test
|
||||||
|
|
||||||
|
---
|
||||||
# Use a custom config file, and a specific context.
|
# Use a custom config file, and a specific context.
|
||||||
plugin: kubevirt.core.kubevirt
|
plugin: kubevirt.core.kubevirt
|
||||||
connections:
|
connections:
|
||||||
- kubeconfig: /path/to/config
|
- kubeconfig: /path/to/config
|
||||||
context: 'awx/192-168-64-4:8443/developer'
|
context: 'awx/192-168-64-4:8443/developer'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|||||||
@@ -128,27 +128,27 @@ EXAMPLES = """
|
|||||||
domain:
|
domain:
|
||||||
devices:
|
devices:
|
||||||
interfaces:
|
interfaces:
|
||||||
- name: default
|
- name: default
|
||||||
masquerade: {}
|
masquerade: {}
|
||||||
- name: bridge-network
|
- name: bridge-network
|
||||||
bridge: {}
|
bridge: {}
|
||||||
networks:
|
networks:
|
||||||
- name: default
|
- name: default
|
||||||
pod: {}
|
pod: {}
|
||||||
- name: bridge-network
|
- name: bridge-network
|
||||||
multus:
|
multus:
|
||||||
networkName: kindexgw
|
networkName: kindexgw
|
||||||
volumes:
|
volumes:
|
||||||
- containerDisk:
|
- containerDisk:
|
||||||
image: quay.io/containerdisks/fedora:latest
|
image: quay.io/containerdisks/fedora:latest
|
||||||
name: containerdisk
|
name: containerdisk
|
||||||
- cloudInitNoCloud:
|
- cloudInitNoCloud:
|
||||||
userData: |-
|
userData: |-
|
||||||
#cloud-config
|
#cloud-config
|
||||||
# The default username is: fedora
|
# The default username is: fedora
|
||||||
ssh_authorized_keys:
|
ssh_authorized_keys:
|
||||||
- ssh-ed25519 AAAA...
|
- ssh-ed25519 AAAA...
|
||||||
name: cloudinit
|
name: cloudinit
|
||||||
|
|
||||||
- name: Create a VirtualMachine with a DataVolume template
|
- name: Create a VirtualMachine with a DataVolume template
|
||||||
kubevirt.core.kubevirt_vm:
|
kubevirt.core.kubevirt_vm:
|
||||||
@@ -170,7 +170,7 @@ EXAMPLES = """
|
|||||||
url: docker://quay.io/containerdisks/fedora:latest
|
url: docker://quay.io/containerdisks/fedora:latest
|
||||||
storage:
|
storage:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 5Gi
|
storage: 5Gi
|
||||||
@@ -178,16 +178,16 @@ EXAMPLES = """
|
|||||||
domain:
|
domain:
|
||||||
devices: {}
|
devices: {}
|
||||||
volumes:
|
volumes:
|
||||||
- dataVolume:
|
- dataVolume:
|
||||||
name: testdv
|
name: testdv
|
||||||
name: datavolume
|
name: datavolume
|
||||||
- cloudInitNoCloud:
|
- cloudInitNoCloud:
|
||||||
userData: |-
|
userData: |-
|
||||||
#cloud-config
|
#cloud-config
|
||||||
# The default username is: fedora
|
# The default username is: fedora
|
||||||
ssh_authorized_keys:
|
ssh_authorized_keys:
|
||||||
- ssh-ed25519 AAAA...
|
- ssh-ed25519 AAAA...
|
||||||
name: cloudinit
|
name: cloudinit
|
||||||
wait: yes
|
wait: yes
|
||||||
|
|
||||||
- name: Delete a VirtualMachine
|
- name: Delete a VirtualMachine
|
||||||
|
|||||||
Reference in New Issue
Block a user