added old ignition files... Why did i throw these away again?

This commit is contained in:
Karel Clijsters
2025-10-24 10:06:46 +02:00
commit 8a09eced45
6 changed files with 555 additions and 0 deletions

94
Space0.bu Normal file
View File

@@ -0,0 +1,94 @@
variant: fcos
version: 1.5.0
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPwvWJHWxUL/QjvsewyzUr9nN8ySIcx5u0wl6gO9PmEm kclijsters@ws-blacksmith-wereldbol-eu
password_hash: $1$butane$i3iLu4iMrUL8b5E/pr3bC.
shell: /bin/bash
storage:
directories:
- path: /var/mnt/k8s
overwrite: true
files:
- path: /etc/hostname
mode: 0644
contents:
inline: srv-space0.wereldbol.eu
# CRI-O DNF module
- path: /etc/dnf/modules.d/cri-o.module
mode: 0644
overwrite: true
contents:
inline: |
[cri-o]
name=cri-o
stream=stable
profiles=
state=enabled
# YUM repository for kubeadm, kubelet and kubectl
- path: /etc/yum.repos.d/kubernetes.repo
mode: 0644
overwrite: true
contents:
inline: |
[kubernetes]
name=Kubernetes
baseurl=https://pkgs.k8s.io/core:/stable:/v1.30/rpm/
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://pkgs.k8s.io/core:/stable:/v1.30/rpm/repodata/repomd.xml.key
# configuring automatic loading of br_netfilter on startup
- path: /etc/modules-load.d/br_netfilter.conf
mode: 0644
overwrite: true
contents:
inline: br_netfilter
# setting kernel parameters required by kubelet
- path: /etc/sysctl.d/kubernetes.conf
mode: 0644
overwrite: true
contents:
inline: |
net.bridge.bridge-nf-call-iptables=1
net.ipv4.ip_forward=1
links:
- path: /etc/localtime
target: ../usr/share/zoneinfo/Europe/Brussels
systemd:
units:
- name: "install-qemu-guest-agent.service"
enabled: true
contents: |
[Unit]
Description=Ensure qemu-guest-agent is installed
Wants=network-online.target
After=network-online.target
Before=zincati.service
ConditionPathExists=!/var/lib/%N.stamp
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=rpm-ostree install --allow-inactive --assumeyes --reboot qemu-guest-agent
ExecStart=/bin/touch /var/lib/%N.stamp
[Install]
WantedBy=multi-user.target
- name: var-mnt-k8s.mount
enabled: true
contents: |
[Unit]
Description=K8s data storage
[Mount]
What=192.168.5.100:/mnt/Rust/K8s
Where=/var/mnt/k8s
Type=nfs4
[Install]
WantedBy=multi-user.target

94
Space1.bu Normal file
View File

@@ -0,0 +1,94 @@
variant: fcos
version: 1.5.0
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPwvWJHWxUL/QjvsewyzUr9nN8ySIcx5u0wl6gO9PmEm kclijsters@ws-blacksmith-wereldbol-eu
password_hash: $1$butane$i3iLu4iMrUL8b5E/pr3bC.
shell: /bin/bash
storage:
directories:
- path: /var/mnt/k8s
overwrite: true
files:
- path: /etc/hostname
mode: 0644
contents:
inline: srv-space1.wereldbol.eu
# CRI-O DNF module
- path: /etc/dnf/modules.d/cri-o.module
mode: 0644
overwrite: true
contents:
inline: |
[cri-o]
name=cri-o
stream=stable
profiles=
state=enabled
# YUM repository for kubeadm, kubelet and kubectl
- path: /etc/yum.repos.d/kubernetes.repo
mode: 0644
overwrite: true
contents:
inline: |
[kubernetes]
name=Kubernetes
baseurl=https://pkgs.k8s.io/core:/stable:/v1.30/rpm/
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://pkgs.k8s.io/core:/stable:/v1.30/rpm/repodata/repomd.xml.key
# configuring automatic loading of br_netfilter on startup
- path: /etc/modules-load.d/br_netfilter.conf
mode: 0644
overwrite: true
contents:
inline: br_netfilter
# setting kernel parameters required by kubelet
- path: /etc/sysctl.d/kubernetes.conf
mode: 0644
overwrite: true
contents:
inline: |
net.bridge.bridge-nf-call-iptables=1
net.ipv4.ip_forward=1
links:
- path: /etc/localtime
target: ../usr/share/zoneinfo/Europe/Brussels
systemd:
units:
- name: "install-qemu-guest-agent.service"
enabled: true
contents: |
[Unit]
Description=Ensure qemu-guest-agent is installed
Wants=network-online.target
After=network-online.target
Before=zincati.service
ConditionPathExists=!/var/lib/%N.stamp
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=rpm-ostree install --allow-inactive --assumeyes --reboot qemu-guest-agent
ExecStart=/bin/touch /var/lib/%N.stamp
[Install]
WantedBy=multi-user.target
- name: var-mnt-k8s.mount
enabled: true
contents: |
[Unit]
Description=K8s data storage
[Mount]
What=192.168.5.100:/mnt/Rust/K8s
Where=/var/mnt/k8s
Type=nfs4
[Install]
WantedBy=multi-user.target

91
Space1.ign Normal file
View File

@@ -0,0 +1,91 @@
{
"ignition": {
"version": "3.4.0"
},
"passwd": {
"users": [
{
"name": "core",
"passwordHash": "$1$butane$i3iLu4iMrUL8b5E/pr3bC.",
"sshAuthorizedKeys": [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPwvWJHWxUL/QjvsewyzUr9nN8ySIcx5u0wl6gO9PmEm kclijsters@ws-blacksmith-wereldbol-eu"
],
"shell": "/bin/bash"
}
]
},
"storage": {
"directories": [
{
"overwrite": true,
"path": "/var/mnt/k8s"
}
],
"files": [
{
"path": "/etc/hostname",
"contents": {
"compression": "",
"source": "data:,srv-space1.wereldbol.eu"
},
"mode": 420
},
{
"overwrite": true,
"path": "/etc/dnf/modules.d/cri-o.module",
"contents": {
"compression": "",
"source": "data:,%5Bcri-o%5D%0Aname%3Dcri-o%0Astream%3Dstable%0Aprofiles%3D%0Astate%3Denabled%0A"
},
"mode": 420
},
{
"overwrite": true,
"path": "/etc/yum.repos.d/kubernetes.repo",
"contents": {
"compression": "gzip",
"source": "data:;base64,H4sIAAAAAAAC/5TMzarCMBDF8f08TOaWu5FCnsBHEJG0PaQy+Rgyqdi3l7oQt+7O+S9+F9kmtIIOu1IJGf78CTQFw9aSX3tXG5lVojk5mbtXnmvDyNbDlDDyY3D/f9w0M6EcafEDRY3ziln8QA1ab18/ahTsP8EHsYQe3iMv7pmTE+z0CgAA///WaEbGwgAAAA=="
},
"mode": 420
},
{
"overwrite": true,
"path": "/etc/modules-load.d/br_netfilter.conf",
"contents": {
"compression": "",
"source": "data:,br_netfilter"
},
"mode": 420
},
{
"overwrite": true,
"path": "/etc/sysctl.d/kubernetes.conf",
"contents": {
"compression": "",
"source": "data:,net.bridge.bridge-nf-call-iptables%3D1%0Anet.ipv4.ip_forward%3D1%0A"
},
"mode": 420
}
],
"links": [
{
"path": "/etc/localtime",
"target": "../usr/share/zoneinfo/Europe/Brussels"
}
]
},
"systemd": {
"units": [
{
"contents": "[Unit]\nDescription=Ensure qemu-guest-agent is installed\nWants=network-online.target\nAfter=network-online.target\nBefore=zincati.service\nConditionPathExists=!/var/lib/%N.stamp\n\n\n[Service]\nType=oneshot\nRemainAfterExit=yes\nExecStart=rpm-ostree install --allow-inactive --assumeyes --reboot qemu-guest-agent\nExecStart=/bin/touch /var/lib/%N.stamp\n\n\n[Install]\nWantedBy=multi-user.target\n",
"enabled": true,
"name": "install-qemu-guest-agent.service"
},
{
"contents": "[Unit]\nDescription=K8s data storage\n\n[Mount]\nWhat=192.168.5.100:/mnt/Mcspeed/K8s\nWhere=/var/mnt/k8s\nType=nfs4\n\n[Install]\nWantedBy=multi-user.target\n",
"enabled": true,
"name": "var-mnt-k8s.mount"
}
]
}
}

94
Space2.bu Normal file
View File

@@ -0,0 +1,94 @@
variant: fcos
version: 1.5.0
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPwvWJHWxUL/QjvsewyzUr9nN8ySIcx5u0wl6gO9PmEm kclijsters@ws-blacksmith-wereldbol-eu
password_hash: $1$butane$i3iLu4iMrUL8b5E/pr3bC.
shell: /bin/bash
storage:
directories:
- path: /var/mnt/k8s
overwrite: true
files:
- path: /etc/hostname
mode: 0644
contents:
inline: srv-space2.wereldbol.eu
# CRI-O DNF module
- path: /etc/dnf/modules.d/cri-o.module
mode: 0644
overwrite: true
contents:
inline: |
[cri-o]
name=cri-o
stream=stable
profiles=
state=enabled
# YUM repository for kubeadm, kubelet and kubectl
- path: /etc/yum.repos.d/kubernetes.repo
mode: 0644
overwrite: true
contents:
inline: |
[kubernetes]
name=Kubernetes
baseurl=https://pkgs.k8s.io/core:/stable:/v1.30/rpm/
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://pkgs.k8s.io/core:/stable:/v1.30/rpm/repodata/repomd.xml.key
# configuring automatic loading of br_netfilter on startup
- path: /etc/modules-load.d/br_netfilter.conf
mode: 0644
overwrite: true
contents:
inline: br_netfilter
# setting kernel parameters required by kubelet
- path: /etc/sysctl.d/kubernetes.conf
mode: 0644
overwrite: true
contents:
inline: |
net.bridge.bridge-nf-call-iptables=1
net.ipv4.ip_forward=1
links:
- path: /etc/localtime
target: ../usr/share/zoneinfo/Europe/Brussels
systemd:
units:
- name: "install-qemu-guest-agent.service"
enabled: true
contents: |
[Unit]
Description=Ensure qemu-guest-agent is installed
Wants=network-online.target
After=network-online.target
Before=zincati.service
ConditionPathExists=!/var/lib/%N.stamp
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=rpm-ostree install --allow-inactive --assumeyes --reboot qemu-guest-agent
ExecStart=/bin/touch /var/lib/%N.stamp
[Install]
WantedBy=multi-user.target
- name: var-mnt-k8s.mount
enabled: true
contents: |
[Unit]
Description=K8s data storage
[Mount]
What=192.168.5.100:/mnt/Rust/K8s
Where=/var/mnt/k8s
Type=nfs4
[Install]
WantedBy=multi-user.target

91
Space2.ign Normal file
View File

@@ -0,0 +1,91 @@
{
"ignition": {
"version": "3.4.0"
},
"passwd": {
"users": [
{
"name": "core",
"passwordHash": "$1$butane$i3iLu4iMrUL8b5E/pr3bC.",
"sshAuthorizedKeys": [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPwvWJHWxUL/QjvsewyzUr9nN8ySIcx5u0wl6gO9PmEm kclijsters@ws-blacksmith-wereldbol-eu"
],
"shell": "/bin/bash"
}
]
},
"storage": {
"directories": [
{
"overwrite": true,
"path": "/var/mnt/k8s"
}
],
"files": [
{
"path": "/etc/hostname",
"contents": {
"compression": "",
"source": "data:,srv-space2.wereldbol.eu"
},
"mode": 420
},
{
"overwrite": true,
"path": "/etc/dnf/modules.d/cri-o.module",
"contents": {
"compression": "",
"source": "data:,%5Bcri-o%5D%0Aname%3Dcri-o%0Astream%3Dstable%0Aprofiles%3D%0Astate%3Denabled%0A"
},
"mode": 420
},
{
"overwrite": true,
"path": "/etc/yum.repos.d/kubernetes.repo",
"contents": {
"compression": "gzip",
"source": "data:;base64,H4sIAAAAAAAC/5TMzarCMBDF8f08TOaWu5FCnsBHEJG0PaQy+Rgyqdi3l7oQt+7O+S9+F9kmtIIOu1IJGf78CTQFw9aSX3tXG5lVojk5mbtXnmvDyNbDlDDyY3D/f9w0M6EcafEDRY3ziln8QA1ab18/ahTsP8EHsYQe3iMv7pmTE+z0CgAA///WaEbGwgAAAA=="
},
"mode": 420
},
{
"overwrite": true,
"path": "/etc/modules-load.d/br_netfilter.conf",
"contents": {
"compression": "",
"source": "data:,br_netfilter"
},
"mode": 420
},
{
"overwrite": true,
"path": "/etc/sysctl.d/kubernetes.conf",
"contents": {
"compression": "",
"source": "data:,net.bridge.bridge-nf-call-iptables%3D1%0Anet.ipv4.ip_forward%3D1%0A"
},
"mode": 420
}
],
"links": [
{
"path": "/etc/localtime",
"target": "../usr/share/zoneinfo/Europe/Brussels"
}
]
},
"systemd": {
"units": [
{
"contents": "[Unit]\nDescription=Ensure qemu-guest-agent is installed\nWants=network-online.target\nAfter=network-online.target\nBefore=zincati.service\nConditionPathExists=!/var/lib/%N.stamp\n\n\n[Service]\nType=oneshot\nRemainAfterExit=yes\nExecStart=rpm-ostree install --allow-inactive --assumeyes --reboot qemu-guest-agent\nExecStart=/bin/touch /var/lib/%N.stamp\n\n\n[Install]\nWantedBy=multi-user.target\n",
"enabled": true,
"name": "install-qemu-guest-agent.service"
},
{
"contents": "[Unit]\nDescription=K8s data storage\n\n[Mount]\nWhat=192.168.5.100:/mnt/Mcspeed/K8s\nWhere=/var/mnt/k8s\nType=nfs4\n\n[Install]\nWantedBy=multi-user.target\n",
"enabled": true,
"name": "var-mnt-k8s.mount"
}
]
}
}

91
transpiled_config.ign Normal file
View File

@@ -0,0 +1,91 @@
{
"ignition": {
"version": "3.4.0"
},
"passwd": {
"users": [
{
"name": "core",
"passwordHash": "$1$butane$i3iLu4iMrUL8b5E/pr3bC.",
"sshAuthorizedKeys": [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPwvWJHWxUL/QjvsewyzUr9nN8ySIcx5u0wl6gO9PmEm kclijsters@ws-blacksmith-wereldbol-eu"
],
"shell": "/bin/bash"
}
]
},
"storage": {
"directories": [
{
"overwrite": true,
"path": "/var/mnt/k8s"
}
],
"files": [
{
"path": "/etc/hostname",
"contents": {
"compression": "",
"source": "data:,srv-space0.wereldbol.eu"
},
"mode": 420
},
{
"overwrite": true,
"path": "/etc/dnf/modules.d/cri-o.module",
"contents": {
"compression": "",
"source": "data:,%5Bcri-o%5D%0Aname%3Dcri-o%0Astream%3Dstable%0Aprofiles%3D%0Astate%3Denabled%0A"
},
"mode": 420
},
{
"overwrite": true,
"path": "/etc/yum.repos.d/kubernetes.repo",
"contents": {
"compression": "gzip",
"source": "data:;base64,H4sIAAAAAAAC/5TMzarCMBDF8f08TOaWu5FCnsBHEJG0PaQy+Rgyqdi3l7oQt+7O+S9+F9kmtIIOu1IJGf78CTQFw9aSX3tXG5lVojk5mbtXnmvDyNbDlDDyY3D/f9w0M6EcafEDRY3ziln8QA1ab18/ahTsP8EHsYQe3iMv7pmTE+z0CgAA///WaEbGwgAAAA=="
},
"mode": 420
},
{
"overwrite": true,
"path": "/etc/modules-load.d/br_netfilter.conf",
"contents": {
"compression": "",
"source": "data:,br_netfilter"
},
"mode": 420
},
{
"overwrite": true,
"path": "/etc/sysctl.d/kubernetes.conf",
"contents": {
"compression": "",
"source": "data:,net.bridge.bridge-nf-call-iptables%3D1%0Anet.ipv4.ip_forward%3D1%0A"
},
"mode": 420
}
],
"links": [
{
"path": "/etc/localtime",
"target": "../usr/share/zoneinfo/Europe/Brussels"
}
]
},
"systemd": {
"units": [
{
"contents": "[Unit]\nDescription=Ensure qemu-guest-agent is installed\nWants=network-online.target\nAfter=network-online.target\nBefore=zincati.service\nConditionPathExists=!/var/lib/%N.stamp\n\n\n[Service]\nType=oneshot\nRemainAfterExit=yes\nExecStart=rpm-ostree install --allow-inactive --assumeyes --reboot qemu-guest-agent\nExecStart=/bin/touch /var/lib/%N.stamp\n\n\n[Install]\nWantedBy=multi-user.target\n",
"enabled": true,
"name": "install-qemu-guest-agent.service"
},
{
"contents": "[Unit]\nDescription=K8s data storage\n\n[Mount]\nWhat=192.168.5.100:/mnt/Mcspeed/K8s\nWhere=/var/mnt/k8s\nType=nfs4\n\n[Install]\nWantedBy=multi-user.target\n",
"enabled": true,
"name": "var-mnt-k8s.mount"
}
]
}
}