ad basic ignition for controlplane1

This commit is contained in:
root
2025-07-29 18:17:40 +00:00
parent 23baf6a624
commit c05022f067
2 changed files with 55 additions and 0 deletions

20
ignition/controlplane1.bu Normal file
View File

@@ -0,0 +1,20 @@
variant: flatcar
version: 1.0.0
passwd:
users:
- name: core
ssh_authorized_keys:
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHHEAlPo3v4U67Y3411pTjIMkQxwlFWdXrBJkSzXenDH flatcar@undercloud"
storage:
files:
- path: /etc/hostname
mode: 0644
contents:
inline: "controlplane-1"
systemd:
units:
- name: docker.service
enabled: true

View File

@@ -0,0 +1,35 @@
{
"ignition": {
"version": "3.3.0"
},
"passwd": {
"users": [
{
"name": "core",
"sshAuthorizedKeys": [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHHEAlPo3v4U67Y3411pTjIMkQxwlFWdXrBJkSzXenDH flatcar@undercloud"
]
}
]
},
"storage": {
"files": [
{
"path": "/etc/hostname",
"contents": {
"compression": "",
"source": "data:,controlplane-1"
},
"mode": 420
}
]
},
"systemd": {
"units": [
{
"enabled": true,
"name": "docker.service"
}
]
}
}