Can disable php now
This commit is contained in:
parent
d6bc0db879
commit
f203ab2559
72
apache.cf
72
apache.cf
|
@ -9,9 +9,39 @@
|
|||
|
||||
bundle agent apache
|
||||
{
|
||||
classes:
|
||||
# "apache enable_php";
|
||||
|
||||
vars:
|
||||
"admin_email" string => "[]",unless => isvariable( $(this.promiser) ) ;
|
||||
|
||||
|
||||
|
||||
|
||||
apache_php_enable::
|
||||
"php_mod" string => '{m: "$(php.apache_m)",f:"$(php.apache_f)"},';
|
||||
"service_deps" slist => {
|
||||
"apache_pkgs_installed",
|
||||
"apache_php_pkgs_installed",
|
||||
"apache_www_dir_created",
|
||||
"apache_vhost_dir_created",
|
||||
"apache_main_cfg_created"
|
||||
};
|
||||
|
||||
"cfg_deps" slist => { "apache_pkgs_installed","apache_php_installed" };
|
||||
|
||||
!apache_php_enable::
|
||||
"php_mod" string => "";
|
||||
"service_deps" slist => {
|
||||
"apache_pkgs_installed",
|
||||
"apache_www_dir_created",
|
||||
"apache_vhost_dir_created",
|
||||
"apache_main_cfg_created"
|
||||
};
|
||||
|
||||
"cfg_deps" slist => { "apache_pkgs_installed" };
|
||||
|
||||
|
||||
freebsd::
|
||||
"pkgs" slist => {
|
||||
"apache24",
|
||||
|
@ -34,11 +64,11 @@ vars:
|
|||
"default_html_dir" string => "$(www_dir)/apache24";
|
||||
"server_root" string => "/usr/local";
|
||||
"modules" data => '[
|
||||
$(php_mod)
|
||||
{m: "autoindex",f:"mod_autoindex"},
|
||||
{m: "log_config",f:"mod_log_config"},
|
||||
{m: "version",f:"mod_version"},
|
||||
{m: "unixd",f:"mod_unixd"},
|
||||
{m: "$(php.apache_m)",f:"$(php.apache_f)"},
|
||||
{m: "ssl",f:"mod_ssl"}
|
||||
]';
|
||||
|
||||
|
@ -65,11 +95,13 @@ vars:
|
|||
"server_root" string => "/usr";
|
||||
|
||||
"modules" data => '[
|
||||
{m:"php",f:"libphp8.2"},
|
||||
$(php_mod)
|
||||
{m:"ssl",f:"mod_ssl"},
|
||||
{m:"proxy",f:"mod_proxy"},
|
||||
{m:"proxy_fcgi",f:"mod_proxy_fcgi"}
|
||||
]';
|
||||
# {m:"php",f:"libphp$(php.version)"},
|
||||
|
||||
|
||||
|
||||
centos::
|
||||
|
@ -131,6 +163,9 @@ vars:
|
|||
{m: "authz_svn", f:"mod_authz_svn"},
|
||||
{m: "ssl",f:"mod_ssl"}
|
||||
]';
|
||||
|
||||
reports:
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -154,6 +189,8 @@ commands:
|
|||
args => "-c '/usr/sbin/a2dismod mpm_event > /dev/null'",
|
||||
inform=>"false",
|
||||
handle => "apache_mpm_event_disabled";
|
||||
|
||||
reports:
|
||||
}
|
||||
|
||||
bundle agent install_apache(raw)
|
||||
|
@ -163,16 +200,10 @@ methods:
|
|||
|
||||
"any" usebundle => wmde_install_packages(@(apache.pkgs),"apache");
|
||||
|
||||
"any" usebundle => install_apache_php,
|
||||
apache_php_enable::
|
||||
"any" usebundle => install_apache_php,
|
||||
depends_on => { "apache_pkgs_installed" };
|
||||
|
||||
#services:
|
||||
## apache_kept::
|
||||
# "$(apache.service_name)"
|
||||
# service_policy => "start";
|
||||
|
||||
|
||||
|
||||
reports:
|
||||
|
||||
|
||||
|
@ -206,24 +237,20 @@ files:
|
|||
edit_template => "$(sys.workdir)/inputs/$(def.wmde_libdir)/templates/httpd.conf.mustache",
|
||||
template_method => "mustache",
|
||||
handle => "apache_main_cfg_created",
|
||||
depends_on => { "apache_pkgs_installed","apache_php_installed" },
|
||||
depends_on => { @(apache.cfg_deps) },
|
||||
classes => if_repaired(apache_repaired);
|
||||
|
||||
methods:
|
||||
|
||||
|
||||
"any" usebundle => wmde_service("$(apache.service_name)","apache_kept","apache_repaired|php_repaired"),
|
||||
depends_on => {
|
||||
"apache_pkgs_installed",
|
||||
"apache_php_pkgs_installed",
|
||||
"apache_www_dir_created",
|
||||
"apache_vhost_dir_created",
|
||||
"apache_main_cfg_created"
|
||||
};
|
||||
depends_on => @(apache.service_deps) ;
|
||||
|
||||
#depends_on => {
|
||||
# "apache_php_pkgs_installed"
|
||||
|
||||
#};
|
||||
reports:
|
||||
|
||||
|
||||
}
|
||||
|
@ -321,14 +348,6 @@ methods:
|
|||
|
||||
|
||||
reports:
|
||||
# "SSL_CERT: $(ssl_cert) $(ssl_key) ";
|
||||
# use_ssl::
|
||||
# "USE SSL";
|
||||
# !use_ssl::
|
||||
# "NOT USE_SSL";
|
||||
|
||||
# "RAW: $(site[raw])";
|
||||
# "APACHE DOCROOT $(site[doc_root])";
|
||||
}
|
||||
|
||||
|
||||
|
@ -340,6 +359,5 @@ methods:
|
|||
"any" usebundle => apache_vhost(@(sites[$(idx)]));
|
||||
|
||||
reports:
|
||||
# "IDXE $(idx)";
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue