mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-03-26 19:03:16 +00:00
This adds yamllint to the CI linter job and sets the maximum line length to 140 like in kubevirt/kubevirt. Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
---
|
|
- name: Playbook creating a virtual machine with data volume
|
|
hosts: localhost
|
|
tasks:
|
|
- name: Create VM
|
|
kubevirt.core.kubevirt_vm:
|
|
state: present
|
|
name: testvm-with-dv
|
|
namespace: default
|
|
labels:
|
|
app: test
|
|
instancetype:
|
|
name: u1.medium
|
|
preference:
|
|
name: fedora
|
|
data_volume_templates:
|
|
- metadata:
|
|
name: testdv
|
|
spec:
|
|
source:
|
|
registry:
|
|
url: docker://quay.io/containerdisks/fedora:latest
|
|
storage:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 5Gi
|
|
spec:
|
|
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
|
|
wait: true
|