Compare commits

..

2 Commits

Author SHA1 Message Date
Tube d761d054f4 Fixes for CentOS 2023-10-25 01:18:26 +02:00
Tube 754865e877 Fixes for CentOS 2023-10-25 01:18:16 +02:00
2 changed files with 31 additions and 19 deletions

View File

@ -104,12 +104,13 @@ vars:
# {m:"php",f:"libphp$(php.version)"},
# "libapache2-mod-svn",
centos::
"pkgs" slist => {
"httpd",
"mod_ssl",
"libapache2-mod-svn",
"mod_dav_svn"
};
fedora::
"pkgs" slist => {
@ -144,6 +145,16 @@ vars:
{m: "systemd",f:"mod_systemd"}
]';
# {m: "php",f:"libphp8"},
centos::
"modules" data => '[
{m: "autoindex",f:"mod_autoindex"},
{m: "log_config",f:"mod_log_config"},
{m: "version",f:"mod_version"},
{m: "unixd",f:"mod_unixd"},
{m: "systemd",f:"mod_systemd"},
{m:"ssl",f:"mod_ssl"},
]';
@ -327,7 +338,7 @@ vars:
"$(sys.workdir)/inputs/$(def.wmde_libdir)/templates/httpd-vhost.conf.mustache";
"domain_file" string => "$(apache.cfg_dir)/Vhosts/$(site[domain]).conf";
"domain_dir" string => "$(apache.www_dir)/$(site[domain])/";
"domain_dir" string => "$(apache.www_dir)/$(site[domain])";
"ssl_cert" string => ifelse( use_certbot,
"$(certbot.certbot_dir)/live/$(site[domain])/fullchain.pem",
@ -357,7 +368,7 @@ vars:
depends_on => @(vhostdeps),
classes => if_repaired("apache_vhost_restart");
"$(domain_dir)."
"$(domain_dir)/."
create => "true",
perms => uperm("$(apache.www_user)","$(apache.www_group)","750");
@ -368,7 +379,9 @@ methods:
"apache_vhost_restart"::
"any" usebundle => restart_apache("$(site[domain])"),
depends_on => {"vhost_cfg_done$(site[domain])","apache_ssl_created$(site[domain])" };
depends_on => {
"vhost_cfg_done$(site[domain])",
"apache_ssl_created$(site[domain])" };
(!use_ssl)|(!use_certbot)::

View File

@ -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,17 +37,8 @@ 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,
methods:
"any" usebundle => wmde_install_packages( @(certbot.pkgs),"certbot"),
handle => "certbot_installed";
files:
freebsd::
@ -112,7 +112,6 @@ commands:
args => "certonly --agree-tos -n $(webroot_arg) --expand --email $(site[email]) $(args)";
reports:
# "DOMAINS FOR: $(site[domain]) $(domains)";
}