Skip to content

Commit

Permalink
add ionoscloud support
Browse files Browse the repository at this point in the history
  • Loading branch information
tuunit committed Nov 4, 2024
1 parent 05b4b2a commit a62b199
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions systemd/system/ignition-delete-config.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ConditionKernelCommandLine=|coreos.oem.id=virtualbox
ConditionKernelCommandLine=|ignition.platform.id=vmware
ConditionKernelCommandLine=|flatcar.oem.id=vmware
ConditionKernelCommandLine=|coreos.oem.id=vmware
ConditionKernelCommandLine=|flatcar.oem.id=ionoscloud

DefaultDependencies=no
# Run before any user services to prevent potential config leaks
Expand Down
2 changes: 1 addition & 1 deletion systemd/system/oem-cloudinit.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Description=Run cloudinit
[Service]
EnvironmentFile=/var/run/ignition.env
Type=oneshot
ExecCondition=/usr/bin/bash -xc 'OEMS=(aws gcp rackspace-onmetal azure cloudsigma packet vmware digitalocean openstack); echo $${OEMS[*]} | tr " " "\n" | grep -q -x -F "${OEM_ID}"'
ExecCondition=/usr/bin/bash -xc 'OEMS=(aws gcp rackspace-onmetal azure cloudsigma packet vmware digitalocean openstack ionoscloud); echo $${OEMS[*]} | tr " " "\n" | grep -q -x -F "${OEM_ID}"'
ExecStart=/usr/bin/bash -xc '/usr/bin/coreos-cloudinit --oem="$(if [ "${OEM_ID}" = aws -o "${OEM_ID}" = openstack ]; then echo ec2-compat; elif [ "${OEM_ID}" = gcp ]; then echo gce; else echo "${OEM_ID}" ; fi)"'

[Install]
Expand Down
3 changes: 3 additions & 0 deletions systemd/system/sshkeys.service
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ ConditionKernelCommandLine=|flatcar.oem.id=hetzner
ConditionKernelCommandLine=|ignition.platform.id=akamai
ConditionKernelCommandLine=|flatcar.oem.id=akamai

ConditionKernelCommandLine=|ignition.platform.id=ionoscloud
ConditionKernelCommandLine=|flatcar.oem.id=ionoscloud

[Service]
Type=oneshot
RemainAfterExit=yes
Expand Down

0 comments on commit a62b199

Please sign in to comment.