Last active
May 3, 2023 11:11
-
-
Save alexlarsson/8dd0a6286700d7afdb16609b067b44d0 to your computer and use it in GitHub Desktop.
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
INSTALL: | |
$ dnf copr enable -y mperina/hirte-snapshot | |
$ dnf install hirte hirte-agent | |
CONFIGURE: | |
$ cp myagent.conf /etc/hirte/agent.conf.d/ | |
$ cp myhirte.conf /etc/hirte/hirte.conf.d/ | |
$ systemctl start hirte-agent.service | |
$ systemctl start hirte.service | |
INSTALL EXAMPLES: | |
$ cp *.service /etc/systemd/system | |
$ cp *.container /etc/containers/systemd/ | |
$ systemctl daemon-reload | |
$ podman pull fedora | |
TEST EXAMPLES: | |
$ hirtectl list-units | |
$ hirtectl start foo sleep-short.service | |
$ hirtectl start foo wants-sleep-on-foo.service | |
$ hirtectl start foo sleep-in-container.service |
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
[hirte-agent] | |
NodeName=foo | |
ManagerHost=127.0.0.1 | |
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
[hirte] | |
AllowedNodeNames=foo | |
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
[Unit] | |
Description=A minimal container | |
[Container] | |
Image=fedora | |
Exec=sleep 60 | |
[Service] | |
# Restart service when sleep finishes | |
Restart=always |
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
[Unit] | |
[Service] | |
ExecStart=/bin/sleep 10000 |
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
[Unit] | |
[Service] | |
ExecStart=/bin/sleep 10 |
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
[Unit] | |
After=hirte-proxy@foo_sleep-long.service | |
Wants=hirte-proxy@foo_sleep-long.service | |
[Service] | |
ExecStart=/bin/true | |
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
[Unit] | |
After=sleep-long.service | |
Wants=sleep-long.service | |
[Service] | |
ExecStart=/bin/sleep 10000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment