Skip to content

Instantly share code, notes, and snippets.

@53845714nF
Last active April 26, 2024 07:49
Show Gist options
  • Save 53845714nF/0814ce0e7479ef2cb3ef5472e49b9794 to your computer and use it in GitHub Desktop.
Save 53845714nF/0814ce0e7479ef2cb3ef5472e49b9794 to your computer and use it in GitHub Desktop.
Systemd Unit File for my Linux Containers on Proxmox. Create a Saltminion Id for saltstack.
[Unit]
Description=Move the hostnamewith the Domain to the salt minion_id.
DefaultDependencies=no
After=basic.target
[Service]
Type=oneshot
ExecStart=/bin/bash -c 'echo "$(hostname).fritz.box" > /etc/salt/minion_id'
[Install]
WantedBy=multi-user.target
@53845714nF
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment