From d761d054f47e46048b23d5b79c3db24c70719fc9 Mon Sep 17 00:00:00 2001 From: Tube <7u83@mail.ru> Date: Wed, 25 Oct 2023 01:18:26 +0200 Subject: [PATCH] Fixes for CentOS --- certbot.cf | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/certbot.cf b/certbot.cf index 394d0bf..9111d0d 100644 --- a/certbot.cf +++ b/certbot.cf @@ -11,11 +11,20 @@ vars: freebsd:: "certbot_dir" string => "/usr/local/etc/letsencrypt"; "exe" string => "/usr/local/bin/certbot"; - "pkg" string => "py39-certbot"; + "pkgs" slist => {"py39-certbot"}; debian:: "certbot_dir" string => "/etc/letsencrypt"; "exe" string => "/usr/bin/certbot"; - "pkg" string => "certbot"; + "pkgs" slist => {"certbot"}; + centos:: + "certbot_dir" string => "/etc/letsencrypt"; + "exe" string => "/usr/bin/certbot"; + "pkgs" slist => {"epel-release","certbot"}; + fedora:: + "certbot_dir" string => "/etc/letsencrypt"; + "exe" string => "/usr/bin/certbot"; + "pkgs" slist => {"certbot"}; + defaults: "wr" string => "standalone"; @@ -28,18 +37,9 @@ reports: bundle agent install_certbot { -packages: - - freebsd:: - "$(certbot.pkg)" - policy => "present", - package_module => pkg, - handle => "certbot_installed"; - debian:: - "$(certbot.pkg)" - policy => "present", - package_module => apt_get, - handle => "certbot_installed"; +methods: + "any" usebundle => wmde_install_packages( @(certbot.pkgs),"certbot"), + handle => "certbot_installed"; files: freebsd:: "/etc/cron.d/certbot" @@ -112,7 +112,6 @@ commands: args => "certonly --agree-tos -n $(webroot_arg) --expand --email $(site[email]) $(args)"; reports: -# "DOMAINS FOR: $(site[domain]) $(domains)"; }