Compare commits
3 Commits
fbfa6d7092
...
aacf5ee4e0
Author | SHA1 | Date |
---|---|---|
Tube | aacf5ee4e0 | |
Tube | 8a66ccc953 | |
Tube | 09599ad24f |
23
apache.cf
23
apache.cf
|
@ -24,7 +24,7 @@ vars:
|
||||||
"apache_pkgs_installed",
|
"apache_pkgs_installed",
|
||||||
"apache_php_pkgs_installed",
|
"apache_php_pkgs_installed",
|
||||||
"apache_www_dir_created",
|
"apache_www_dir_created",
|
||||||
"apache_vhost_dir_created",
|
"apache_dummy_conf_created",
|
||||||
"apache_main_cfg_created"
|
"apache_main_cfg_created"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -35,12 +35,13 @@ vars:
|
||||||
"service_deps" slist => {
|
"service_deps" slist => {
|
||||||
"apache_pkgs_installed",
|
"apache_pkgs_installed",
|
||||||
"apache_www_dir_created",
|
"apache_www_dir_created",
|
||||||
"apache_vhost_dir_created",
|
"apache_dummy_conf_created",
|
||||||
"apache_main_cfg_created"
|
"apache_main_cfg_created"
|
||||||
};
|
};
|
||||||
|
|
||||||
"cfg_deps" slist => { "apache_pkgs_installed" };
|
"cfg_deps" slist => { "apache_pkgs_installed" };
|
||||||
|
|
||||||
|
"log_dir_mode" string => "750";
|
||||||
|
|
||||||
freebsd::
|
freebsd::
|
||||||
"pkgs" slist => {
|
"pkgs" slist => {
|
||||||
|
@ -118,7 +119,8 @@ vars:
|
||||||
fedora|centos::
|
fedora|centos::
|
||||||
"log_dir" string =>"/var/log/httpd";
|
"log_dir" string =>"/var/log/httpd";
|
||||||
"log_dir_owner" string => "root";
|
"log_dir_owner" string => "root";
|
||||||
"log_dir_group" string => "wheel";
|
"log_dir_group" string => "root";
|
||||||
|
"log_dir_mode" string => "700";
|
||||||
|
|
||||||
"service_name" string => "httpd";
|
"service_name" string => "httpd";
|
||||||
"restart_cmd" string => "/usr/bin/systemctl restart $(service_name)";
|
"restart_cmd" string => "/usr/bin/systemctl restart $(service_name)";
|
||||||
|
@ -132,13 +134,14 @@ vars:
|
||||||
|
|
||||||
"main_cfg" string => "$(cfg_dir)/conf/httpd.conf";
|
"main_cfg" string => "$(cfg_dir)/conf/httpd.conf";
|
||||||
"libexec_dir" string => "$(cfg_dir)/modules";
|
"libexec_dir" string => "$(cfg_dir)/modules";
|
||||||
"server_root" string => "/var";
|
"server_root" string => "/etc/httpd";
|
||||||
|
|
||||||
"modules" data => '[
|
"modules" data => '[
|
||||||
{m: "autoindex",f:"mod_autoindex"},
|
{m: "autoindex",f:"mod_autoindex"},
|
||||||
{m: "log_config",f:"mod_log_config"},
|
{m: "log_config",f:"mod_log_config"},
|
||||||
{m: "version",f:"mod_version"},
|
{m: "version",f:"mod_version"},
|
||||||
{m: "unixd",f:"mod_unixd"},
|
{m: "unixd",f:"mod_unixd"},
|
||||||
|
{m: "systemd",f:"mod_systemd"}
|
||||||
]';
|
]';
|
||||||
# {m: "php",f:"libphp8"},
|
# {m: "php",f:"libphp8"},
|
||||||
|
|
||||||
|
@ -210,7 +213,7 @@ reports:
|
||||||
files:
|
files:
|
||||||
"$(apache.log_dir)/."
|
"$(apache.log_dir)/."
|
||||||
create=>"true",
|
create=>"true",
|
||||||
perms=>mog("750","$(apache.log_dir_owner)","$(apache.log_dir_group)"),
|
perms=>mog("$(apache.log_dir_mode)","$(apache.log_dir_owner)","$(apache.log_dir_group)"),
|
||||||
handle => "apache_log_dir_created";
|
handle => "apache_log_dir_created";
|
||||||
|
|
||||||
"$(apache.www_dir)/."
|
"$(apache.www_dir)/."
|
||||||
|
@ -229,11 +232,19 @@ files:
|
||||||
create=>"true",
|
create=>"true",
|
||||||
content=>"",
|
content=>"",
|
||||||
perms => m("644"),
|
perms => m("644"),
|
||||||
|
depends_on => { "apache_vhosts_dir_created" },
|
||||||
|
handle=> "apache_dummy_conf_created";
|
||||||
|
|
||||||
|
"$(apache.cfg_dir)/Vhosts/."
|
||||||
|
create => "true",
|
||||||
depends_on => { "apache_pkgs_installed" },
|
depends_on => { "apache_pkgs_installed" },
|
||||||
handle=> "apache_vhost_dir_created";
|
perms => m("755"),
|
||||||
|
handle=> "apache_vhosts_dir_created";
|
||||||
|
|
||||||
|
|
||||||
"$(apache.main_cfg)"
|
"$(apache.main_cfg)"
|
||||||
create => "true",
|
create => "true",
|
||||||
|
perms => m("644"),
|
||||||
edit_template => "$(sys.workdir)/inputs/$(def.wmde_libdir)/templates/httpd.conf.mustache",
|
edit_template => "$(sys.workdir)/inputs/$(def.wmde_libdir)/templates/httpd.conf.mustache",
|
||||||
template_method => "mustache",
|
template_method => "mustache",
|
||||||
handle => "apache_main_cfg_created",
|
handle => "apache_main_cfg_created",
|
||||||
|
|
24
php.cf
24
php.cf
|
@ -14,18 +14,18 @@ vars:
|
||||||
freebsd::
|
freebsd::
|
||||||
"cli_exe" string => "/usr/local/bin/php";
|
"cli_exe" string => "/usr/local/bin/php";
|
||||||
"pkgs" slist => {
|
"pkgs" slist => {
|
||||||
"php$(bsdvs)-session",
|
"php$(php.bsdvs)-session",
|
||||||
"php$(bsdvs)-zip",
|
"php$(php.bsdvs)-zip",
|
||||||
"php$(bsdvs)-pgsql",
|
"php$(php.bsdvs)-pgsql",
|
||||||
"php$(bsdvs)-mysqli",
|
"php$(php.bsdvs)-mysqli",
|
||||||
"php$(bsdvs)-pdo_mysql",
|
"php$(php.bsdvs)-pdo_mysql",
|
||||||
"php$(bsdvs)-pdo",
|
"php$(php.bsdvs)-pdo",
|
||||||
"php$(bsdvs)-filter",
|
"php$(php.bsdvs)-filter",
|
||||||
"php$(bsdvs)-mbstring",
|
"php$(php.bsdvs)-mbstring",
|
||||||
"php$(bsdvs)-dom",
|
"php$(php.bsdvs)-dom",
|
||||||
"php$(bsdvs)-xml",
|
"php$(php.bsdvs)-xml",
|
||||||
"php$(bsdvs)-ctype",
|
"php$(php.bsdvs)-ctype",
|
||||||
"php$(bsdvs)-intl",
|
"php$(php.bsdvs)-intl",
|
||||||
};
|
};
|
||||||
# "php$(bsdvs)-json",
|
# "php$(bsdvs)-json",
|
||||||
|
|
||||||
|
|
|
@ -8,14 +8,14 @@ list_file="$2"
|
||||||
|
|
||||||
# Check if the folder exists
|
# Check if the folder exists
|
||||||
if [ ! -d "$folder_path" ]; then
|
if [ ! -d "$folder_path" ]; then
|
||||||
echo "Folder does not exist: $folder_path"
|
# echo "Folder does not exist: $folder_path"
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if the list file exists
|
# Check if the list file exists
|
||||||
if [ ! -f "$list_file" ]; then
|
if [ ! -f "$list_file" ]; then
|
||||||
echo "List file does not exist: $list_file"
|
# echo "List file does not exist: $list_file"
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Loop through the files in the folder
|
# Loop through the files in the folder
|
||||||
|
|
Loading…
Reference in New Issue