Commit Graph

16 Commits

Author SHA1 Message Date
Furkat Gofurov 9c7e908097
Handle ignition compression for Ignition format
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
Authored-by: @zioc
2025-07-02 14:43:41 +03:00
Dinar Valeev 4ee21dfdc9
Move sshd config into included subdir
By writing into /etc/ssh/sshd_config we override default config which
usually defines include /etc/ssh/sshd_config.d/*.conf. This breaks an
ability to cusomize config further. And disables include any files dropped
into sshd_config.d directory.

This commit moves RKE2 sshd config into subdirectory with 010 index
so it will be loaded first.

Signed-off-by: Dinar Valeev <k0da@opensuse.org>
2025-05-06 12:36:45 +02:00
Dinar Valeev 21f04a095c
Ignition: Don't add /opt fs on flatcar
Signed-off-by: Dinar Valeev <k0da@opensuse.org>
2025-04-24 13:24:45 +02:00
Steven Hardy 63e6500c62
bootstrap: switch to chrony for ignition config
Leap/SLEMicro don't include ntpd so the current approach doesn't work
2024-09-11 17:21:18 +01:00
Furkat Gofurov bc6cb163b1
Merge pull request #402 from hardys/issues/401 2024-08-23 16:51:00 +03:00
Steven Hardy e7be901d32
ignition: mount /opt subvolume
This is not mounted by default, therefore we cannot write the
/opt/rke2-cis-script.sh script.

So add configuration to mount the subvolume, as described in
https://en.opensuse.org/Portal:MicroOS/Ignition#Mounts

Signed-off-by: Steven Hardy <steven.hardy@suse.com>
2024-08-23 11:46:43 +01:00
Steven Hardy 7a87cd46fc
Ignition: move rke2-cis-script.sh to after RKE2 install
Otherwise the script fails, this aligns with how the cloud-init
script works.

Signed-off-by: Steven Hardy <steven.hardy@suse.com>
2024-08-23 11:46:43 +01:00
Steven Hardy 9859c5adb5
Overwrite files with format: ignition
This aligns with the default cloud-init behavior and enables e.g
overwriting distro-default files via RKE2ConfigTemplate using the
spec.template.spec.files API.

Signed-off-by: Steven Hardy <steven.hardy@suse.com>
2024-08-23 11:35:19 +01:00
Furkat Gofurov ece3d2467a
Rename CAPRKE2 org references in the codebase
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2024-07-11 13:14:48 +03:00
Alberto Morgante Medina b3e4e9c35f
fix issue with rke2-install
Signed-off-by: Alberto Morgante Medina <alberto.morgante@suse.com>
2024-07-01 16:28:38 +02:00
Marco Chiappero 547a88df4c Let the rke2-install.sh fail for pipe errors and undefined variables
The rke2-install.sh script sets the exit on error flag ('set -e'), however
the script might fail to exit when a command in a pipe fails.
Add the '-u' and '-o pipefail' flags to better identify errors within the
install script.

Signed-off-by: Marco Chiappero <marco.chiappero@suse.com>
2024-04-17 11:56:07 +00:00
Danil Grigorev dc7c307123
Rename v1alpha2 to v1beta1
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-01-08 13:18:49 +01:00
Danil Grigorev c8762be772
Introduce v1alpha2 api version
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-01-08 13:03:26 +01:00
Alexandr Demicev 3cd309f909
Create bootstrap-success before setting selinux to enforcing mode
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-11-27 18:27:39 +01:00
Alexandr Demicev a511cdd300
Run ignition bootstrap script only once
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-11-13 14:27:12 +01:00
Alberto Morgante Medina 814a561644
Add ignition V3 support
Signed-off-by: Alberto Morgante Medina <alknopfler@gmail.com>
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2023-10-30 14:36:24 +01:00