install_yum_repo added
This commit is contained in:
parent
14159249ef
commit
081219a8dc
17
lib.cf
17
lib.cf
|
@ -210,6 +210,23 @@ reports:
|
|||
}
|
||||
|
||||
|
||||
bundle agent install_yum_repo(name,content)
|
||||
{
|
||||
files:
|
||||
"/etc/yum.repos.d/$(name).repo"
|
||||
create => "true",
|
||||
content => $(content),
|
||||
classes => if_repaired("yum_repo_$(name)_repaired"),
|
||||
handle => "yum_repo_$(name)_installed";
|
||||
commands:
|
||||
"yum_repo_$(name)_repaired"::
|
||||
"dnf"
|
||||
args => "makecache",
|
||||
contain => wmde_cmd_useshell;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
bundle agent install_apt_repo(name,repo_src,key_src,key_name)
|
||||
|
|
Loading…
Reference in New Issue