-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Subpackage, service, timer for build-fail-reminder
This adds a build-fail-reminder subpackage, shipping the script along with a service user and unit files for daily execution via systemd, making for easier management and deployment in the openSUSE infrastructure. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
- Loading branch information
Showing
5 changed files
with
98 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
u osrt-build-fail-reminder - 'User for the openSUSE build fail reminder service' /var/lib/osrt-build-fail-reminder |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[Unit] | ||
Description=openSUSE Release Tools: OBS Build Fail Reminder | ||
|
||
ConditionFileIsExecutable=/usr/bin/osrt-build-fail-reminder | ||
ConditionFileNotEmpty=/etc/openSUSE-release-tools/build-fail-reminder/oscrc | ||
|
||
[Service] | ||
User=%N | ||
Group=%N | ||
|
||
ConfigurationDirectory=openSUSE-release-tools/build-fail-reminder | ||
ConfigurationDirectoryMode=0700 | ||
StateDirectory=osrt-build-fail-reminder | ||
StateDirectoryMode=0750 | ||
|
||
Environment=BFR_SENDER='DimStar / Dominique Leuenberger <dimstar@opensuse.org>' | ||
Environment=BFR_PROJECT=openSUSE:Factory | ||
Environment=BFR_RELAY=ipv6-localhost | ||
|
||
Environment=OSC_CONFIG=/etc/openSUSE-release-tools/build-fail-reminder/oscrc | ||
|
||
ExecStart=/usr/bin/osrt-build-fail-reminder --sender=${BFR_SENDER} --project=${BFR_PROJECT} --relay=${BFR_RELAY} --json=${STATE_DIRECTORY}/reminded.json "$BFR_EXTRA" | ||
|
||
SyslogIdentifier=build-fail-reminder | ||
|
||
AmbientCapabilities= | ||
CapabilityBoundingSet= | ||
KeyringMode=private | ||
LockPersonality=yes | ||
MemoryDenyWriteExecute=yes | ||
MountFlags=private | ||
NoNewPrivileges=yes | ||
PrivateDevices=yes | ||
PrivateTmp=yes | ||
PrivateUsers=yes | ||
ProtectClock=yes | ||
ProtectControlGroups=yes | ||
ProtectHome=yes | ||
ProtectHostname=yes | ||
ProtectKernelLogs=yes | ||
ProtectKernelModules=yes | ||
ProtectKernelTunables=yes | ||
ProtectSystem=strict | ||
RemoveIPC=yes | ||
RestrictAddressFamilies=AF_INET6 | ||
RestrictNamespaces=yes | ||
RestrictRealtime=yes | ||
RestrictSUIDSGID=yes | ||
SystemCallArchitectures=native | ||
|
||
UMask=0027 | ||
|
||
# access to database, - to allow creation if one does not already exist | ||
ReadWritePaths=-/var/lib/osrt-build-fail-reminder/reminded.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Unit] | ||
Description=openSUSE Release Tools: OBS Build Fail Reminder Scheduler | ||
|
||
[Timer] | ||
OnCalendar=daily | ||
|
||
[Install] | ||
WantedBy=timers.target |