Skip to content

Commit

Permalink
Merge pull request os-autoinst#20074 from mloviska/ignition_update_vm…
Browse files Browse the repository at this point in the history
…ware_aarch64

Adapt ignition configs for vmware and aarch64
  • Loading branch information
mloviska authored Aug 29, 2024
2 parents 05d97b2 + 66fc8ba commit 849ca09
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 2 deletions.
15 changes: 15 additions & 0 deletions data/microos/butane/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
### Config usage

1. *script* is intended for combustion use cases, the script should work on all VM platforms
- current usage:
* QEMU all archs, however untested in PPC64
* VMWare

2. config.fcc
- ignition config for all QEMU VMs

3. vmware.fcc
- ignition config for VMWare, the only difference between butane configs is the 3rd drive path by id

4. config_vmware.ign
- JSON version of vmware.fcc as VMWare loads encoded version of this config instead of booting with a config drive as we do it for QEMU
2 changes: 1 addition & 1 deletion data/microos/butane/config.fcc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ systemd:
WantedBy=multi-user.target
storage:
disks:
- device: /dev/vdc
- device: /dev/disk/by-id/virtio-hd2
wipe_table: true
partitions:
- number: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
],
"disks": [
{
"device": "/dev/vdc",
"device": "/dev/disk/by-id/ata-VMware_Virtual_IDE_Hard_Drive_01000000000000000001",
"partitions": [
{
"label": "testing_part",
Expand Down
67 changes: 67 additions & 0 deletions data/microos/butane/vmware.fcc
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
variant: fcos
version: 1.1.0
passwd:
users:
- name: root
password_hash: $6$eEm2HpuzI7dfE4i7$dbYiTRLhrqVvwryR7zmMEcnrp13IqZ3mzLbsx9EeHAX7849PibGVgX5vdPuaeYYIO7hVfcboI9/JDpGiDZhHf/
- name: bernhard
password_hash: $6$eEm2HpuzI7dfE4i7$dbYiTRLhrqVvwryR7zmMEcnrp13IqZ3mzLbsx9EeHAX7849PibGVgX5vdPuaeYYIO7hVfcboI9/JDpGiDZhHf/
uid: 1001
gecos: Bernhard M. Wiedemann
- name: HomelessTester
uid: 2002
no_create_home: true
primary_group: geekos
groups:
- users
- geekos
groups:
- name: geekos
gid: 2002
systemd:
units:
- name: sshd.service
enabled: true
mask: false
- name: create_test_file.service
enabled: true
contents: |
[Unit]
Description=Just a Test!
[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/bin/touch /var/log/flagfile
[Install]
WantedBy=multi-user.target
storage:
disks:
- device: /dev/disk/by-id/ata-VMware_Virtual_IDE_Hard_Drive_01000000000000000001
wipe_table: true
partitions:
- number: 1
label: testing_part
filesystems:
- path: /home
device: /dev/disk/by-partlabel/testing_part
format: ext4
wipe_filesystem: true
with_mount_unit: true
label: home
files:
- path: /etc/hostname
overwrite: true
contents:
inline: cucaracha
- path: /home/bernhard/testdir/hello
overwrite: true
mode: 0600
user:
name: bernhard
contents:
inline: Hello there!
directories:
- path: /home/bernhard/testdir
mode: 0755
user:
name: bernhard

0 comments on commit 849ca09

Please sign in to comment.