forked from RedHatInsights/rhc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: write canonical-facts file for yggd
In order to correctly identify a yggd instance to console.redhat.com, yggd needs to be told where to get canonical-facts. This timer writes the output of canonical-facts to a path where yggd can be configured to read it when it starts up.
- Loading branch information
1 parent
436b9dd
commit 17654f3
Showing
5 changed files
with
45 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
enable rhc-canonical-facts.timer |
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,12 @@ | ||
[Unit] | ||
Description=rhc canonical-facts service | ||
Documentation=https://github.com/RedHatInsights/rhc | ||
|
||
[Service] | ||
Type=oneshot | ||
User=root | ||
Group=yggdrasil-worker | ||
ExecStart=rhc canonical-facts | ||
StandardOutput=truncate:/var/lib/yggdrasil/canonical-facts.json | ||
StandardError=journal | ||
UMask=0027 |
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,10 @@ | ||
[Unit] | ||
Description=yggdrasil canonical-facts service timer | ||
Documentation=https://github.com/RedHatInsights/yggdrasil | ||
|
||
[Timer] | ||
OnCalendar=daily | ||
Persistent=true | ||
|
||
[Install] | ||
WantedBy=timers.target |
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