mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-25 19:18:29 +03:00
CI/kubevirt: Configure ignition provisioning
Flatcar does not support cloud-init
This commit is contained in:
committed by
ChengHao Yang
parent
3597b8d7fe
commit
2fbbf2e1e4
@@ -55,13 +55,5 @@ spec:
|
||||
containerDisk:
|
||||
image: quay.io/kubespray/vm-{{ cloud_image }}
|
||||
- name: cloudinitvolume
|
||||
cloudInitConfigDrive:
|
||||
userData: |
|
||||
#cloud-config
|
||||
users:
|
||||
- name: {{ lookup('env', 'ANSIBLE_REMOTE_USER') }}
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
shell: /bin/bash
|
||||
lock_passwd: False
|
||||
ssh_authorized_keys:
|
||||
- {{ ssh_key.public_key }}
|
||||
cloudInit{{ 'ConfigDrive' if cloud_image.startswith('flatcar') else 'NoCloud' }}:
|
||||
userDataBase64: '{{ ((ignition_config | to_json) if cloud_image.startswith('flatcar') else cloudinit_config) | b64encode }}'
|
||||
|
||||
Reference in New Issue
Block a user