Skip to content

Instantly share code, notes, and snippets.

@janeczku
Created June 3, 2022 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janeczku/fe1546ab94bd59c757fb15e019d85fa5 to your computer and use it in GitHub Desktop.
Save janeczku/fe1546ab94bd59c757fb15e019d85fa5 to your computer and use it in GitHub Desktop.
Harvester: Adding a custom systemd unit using oem cloud-config
# 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