Closed kct-networx closed 4 years ago
By changing cmk.paths.local_agents_dir
to cmk.utils.paths.local_agents_dir
i could get it to work.
@@ -3,7 +3,7 @@
def bake_sslcertificates(opsys, conf, conf_dir, plugins_dir):
if opsys == "linux":
- shutil.copy2(cmk.paths.local_agents_dir + "/plugins/sslcertificates", plugins_dir + "/sslcertificates")
+ shutil.copy2(cmk.utils.paths.local_agents_dir + "/plugins/sslcertificates", plugins_dir + "/sslcertificates")
f = file(conf_dir + "/sslcertificates", "w")
f.write(agent_file_header)
@@ -17,7 +17,7 @@
if dirs:
f.write("CERT_DIRS=\"%s\"\n" % " ".join(dirs))
elif opsys == "windows":
- shutil.copy2(cmk.paths.local_agents_dir + "/windows/plugins/sslcertificates.ps1", plugins_dir + "/sslcertificates.ps1")
+ shutil.copy2(cmk.utils.paths.local_agents_dir + "/windows/plugins/sslcertificates.ps1", plugins_dir + "/sslcertificates.ps1")
bakery_info["sslcertificates"] = {
"bake_function" : bake_sslcertificates,
You are right. Works here as well with the changes above. Do you know if this is just a 1.6 issue? And what happens to 1.5 bakery if the above change is implemented?
Please use the cmk1.6 branch
After creation of the rule to deploy the plugin, the baking of Agents fails: