-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Differential Revision: D55318525 fbshipit-source-id: 23e2bcb990319bbb7c3c05f97111cd8a2f7fefc0
- Loading branch information
1 parent
7c455a2
commit 3ee3d06
Showing
4 changed files
with
29 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
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
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,18 @@ | ||
# (c) Meta Platforms, Inc. and its affiliates. Confidential and proprietary. | ||
# | ||
# Cookbook Name:: fb_dnf | ||
# Recipe:: makecache | ||
|
||
MAKECACHE_SYSTEMD_UNIT_NAME = 'dnf-makecache.timer'.freeze | ||
|
||
# If API is set to true, stop + disable the timer | ||
systemd_unit MAKECACHE_SYSTEMD_UNIT_NAME do | ||
only_if { node['fb_dnf']['disable_makecache_timer'] } | ||
action [:stop, :disable] | ||
end | ||
|
||
# If API is set to false, start + enable the timer | ||
systemd_unit MAKECACHE_SYSTEMD_UNIT_NAME do | ||
not_if { node['fb_dnf']['disable_makecache_timer'] } | ||
action [:start, :enable] | ||
end |