Compare commits
2 Commits
627e30b2e7
...
d761d054f4
Author | SHA1 | Date |
---|---|---|
Tube | d761d054f4 | |
Tube | 754865e877 |
21
apache.cf
21
apache.cf
|
@ -104,12 +104,13 @@ vars:
|
||||||
# {m:"php",f:"libphp$(php.version)"},
|
# {m:"php",f:"libphp$(php.version)"},
|
||||||
|
|
||||||
|
|
||||||
|
# "libapache2-mod-svn",
|
||||||
|
|
||||||
centos::
|
centos::
|
||||||
"pkgs" slist => {
|
"pkgs" slist => {
|
||||||
"httpd",
|
"httpd",
|
||||||
"mod_ssl",
|
"mod_ssl",
|
||||||
"libapache2-mod-svn",
|
"mod_dav_svn"
|
||||||
};
|
};
|
||||||
fedora::
|
fedora::
|
||||||
"pkgs" slist => {
|
"pkgs" slist => {
|
||||||
|
@ -144,6 +145,16 @@ vars:
|
||||||
{m: "systemd",f:"mod_systemd"}
|
{m: "systemd",f:"mod_systemd"}
|
||||||
]';
|
]';
|
||||||
# {m: "php",f:"libphp8"},
|
# {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";
|
"$(sys.workdir)/inputs/$(def.wmde_libdir)/templates/httpd-vhost.conf.mustache";
|
||||||
|
|
||||||
"domain_file" string => "$(apache.cfg_dir)/Vhosts/$(site[domain]).conf";
|
"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,
|
"ssl_cert" string => ifelse( use_certbot,
|
||||||
"$(certbot.certbot_dir)/live/$(site[domain])/fullchain.pem",
|
"$(certbot.certbot_dir)/live/$(site[domain])/fullchain.pem",
|
||||||
|
@ -357,7 +368,7 @@ vars:
|
||||||
depends_on => @(vhostdeps),
|
depends_on => @(vhostdeps),
|
||||||
classes => if_repaired("apache_vhost_restart");
|
classes => if_repaired("apache_vhost_restart");
|
||||||
|
|
||||||
"$(domain_dir)."
|
"$(domain_dir)/."
|
||||||
create => "true",
|
create => "true",
|
||||||
perms => uperm("$(apache.www_user)","$(apache.www_group)","750");
|
perms => uperm("$(apache.www_user)","$(apache.www_group)","750");
|
||||||
|
|
||||||
|
@ -368,7 +379,9 @@ methods:
|
||||||
|
|
||||||
"apache_vhost_restart"::
|
"apache_vhost_restart"::
|
||||||
"any" usebundle => restart_apache("$(site[domain])"),
|
"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)::
|
(!use_ssl)|(!use_certbot)::
|
||||||
|
|
29
certbot.cf
29
certbot.cf
|
@ -11,11 +11,20 @@ vars:
|
||||||
freebsd::
|
freebsd::
|
||||||
"certbot_dir" string => "/usr/local/etc/letsencrypt";
|
"certbot_dir" string => "/usr/local/etc/letsencrypt";
|
||||||
"exe" string => "/usr/local/bin/certbot";
|
"exe" string => "/usr/local/bin/certbot";
|
||||||
"pkg" string => "py39-certbot";
|
"pkgs" slist => {"py39-certbot"};
|
||||||
debian::
|
debian::
|
||||||
"certbot_dir" string => "/etc/letsencrypt";
|
"certbot_dir" string => "/etc/letsencrypt";
|
||||||
"exe" string => "/usr/bin/certbot";
|
"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:
|
defaults:
|
||||||
"wr" string => "standalone";
|
"wr" string => "standalone";
|
||||||
|
@ -28,18 +37,9 @@ reports:
|
||||||
bundle agent install_certbot
|
bundle agent install_certbot
|
||||||
{
|
{
|
||||||
|
|
||||||
packages:
|
methods:
|
||||||
|
"any" usebundle => wmde_install_packages( @(certbot.pkgs),"certbot"),
|
||||||
freebsd::
|
handle => "certbot_installed";
|
||||||
"$(certbot.pkg)"
|
|
||||||
policy => "present",
|
|
||||||
package_module => pkg,
|
|
||||||
handle => "certbot_installed";
|
|
||||||
debian::
|
|
||||||
"$(certbot.pkg)"
|
|
||||||
policy => "present",
|
|
||||||
package_module => apt_get,
|
|
||||||
handle => "certbot_installed";
|
|
||||||
files:
|
files:
|
||||||
freebsd::
|
freebsd::
|
||||||
"/etc/cron.d/certbot"
|
"/etc/cron.d/certbot"
|
||||||
|
@ -112,7 +112,6 @@ commands:
|
||||||
args => "certonly --agree-tos -n $(webroot_arg) --expand --email $(site[email]) $(args)";
|
args => "certonly --agree-tos -n $(webroot_arg) --expand --email $(site[email]) $(args)";
|
||||||
|
|
||||||
reports:
|
reports:
|
||||||
# "DOMAINS FOR: $(site[domain]) $(domains)";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue