Compare commits
No commits in common. "d761d054f47e46048b23d5b79c3db24c70719fc9" and "627e30b2e7db58389fdbce492ec7754f86d1348a" have entirely different histories.
d761d054f4
...
627e30b2e7
21
apache.cf
21
apache.cf
|
@ -104,13 +104,12 @@ vars:
|
|||
# {m:"php",f:"libphp$(php.version)"},
|
||||
|
||||
|
||||
# "libapache2-mod-svn",
|
||||
|
||||
centos::
|
||||
"pkgs" slist => {
|
||||
"httpd",
|
||||
"mod_ssl",
|
||||
"mod_dav_svn"
|
||||
"libapache2-mod-svn",
|
||||
};
|
||||
fedora::
|
||||
"pkgs" slist => {
|
||||
|
@ -145,16 +144,6 @@ 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"},
|
||||
|
||||
]';
|
||||
|
||||
|
||||
|
||||
|
@ -338,7 +327,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",
|
||||
|
@ -368,7 +357,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");
|
||||
|
||||
|
@ -379,9 +368,7 @@ 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)::
|
||||
|
|
29
certbot.cf
29
certbot.cf
|
@ -11,20 +11,11 @@ vars:
|
|||
freebsd::
|
||||
"certbot_dir" string => "/usr/local/etc/letsencrypt";
|
||||
"exe" string => "/usr/local/bin/certbot";
|
||||
"pkgs" slist => {"py39-certbot"};
|
||||
"pkg" string => "py39-certbot";
|
||||
debian::
|
||||
"certbot_dir" string => "/etc/letsencrypt";
|
||||
"exe" string => "/usr/bin/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"};
|
||||
|
||||
"pkg" string => "certbot";
|
||||
|
||||
defaults:
|
||||
"wr" string => "standalone";
|
||||
|
@ -37,9 +28,18 @@ reports:
|
|||
bundle agent install_certbot
|
||||
{
|
||||
|
||||
methods:
|
||||
"any" usebundle => wmde_install_packages( @(certbot.pkgs),"certbot"),
|
||||
handle => "certbot_installed";
|
||||
packages:
|
||||
|
||||
freebsd::
|
||||
"$(certbot.pkg)"
|
||||
policy => "present",
|
||||
package_module => pkg,
|
||||
handle => "certbot_installed";
|
||||
debian::
|
||||
"$(certbot.pkg)"
|
||||
policy => "present",
|
||||
package_module => apt_get,
|
||||
handle => "certbot_installed";
|
||||
files:
|
||||
freebsd::
|
||||
"/etc/cron.d/certbot"
|
||||
|
@ -112,6 +112,7 @@ commands:
|
|||
args => "certonly --agree-tos -n $(webroot_arg) --expand --email $(site[email]) $(args)";
|
||||
|
||||
reports:
|
||||
# "DOMAINS FOR: $(site[domain]) $(domains)";
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue