Created
June 3, 2022 08:46
-
-
Save janeczku/fe1546ab94bd59c757fb15e019d85fa5 to your computer and use it in GitHub Desktop.
Harvester: Adding a custom systemd unit using oem cloud-config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Filename: /oem/95_user.yaml | |
# Ref: https://rancher.github.io/elemental-toolkit/docs/customizing/stages/ | |
name: "User Config" | |
stages: | |
initramfs: | |
- name: "Drop unit file" | |
files: | |
- path: /etc/systemd/system/update-ca.service | |
content: | | |
[Unit] | |
Description=Foo | |
(...) | |
permissions: 0644 | |
owner: root | |
group: root | |
- name: "Enable unit" | |
systemctl: | |
enable: | |
- update-ca |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment