README
- +[[TOC]]
@@ -68,7 +68,7 @@Apache httpd is a very powerful and widely used web server.
cd_apache automates the installation and configuration of httpd. This module is a base module simply providing the httpd service itself to be used by other role- or profile modules, adding more detailed configurations specific to the particular use case, like for instance Wordpress.
confdroid_apache automates the installation and configuration of httpd. This module is a base module simply providing the httpd service itself to be used by other role- or profile modules, adding more detailed configurations specific to the particular use case, like for instance Wordpress.
WARNING
@@ -116,7 +116,7 @@Nagios etc.
-With those use cases, you would provide the vHosts at the Puppet module for the application, not the base module. Also, if you plan to use this module to run a plain fully fledged web server, you would use a role- or profile class/module on top of cd_apache to set up your vHost exactly as needed. Examples for regular basic vHost configuration files are included in the examples directory as parameterized .erb files. You would create a define for vHosts, i.e. using the example parameters, and simply add cd_apache as requirement (i.e. require cd_apache) so it gets installed automatically.
With those use cases, you would provide the vHosts at the Puppet module for the application, not the base module. Also, if you plan to use this module to run a plain fully fledged web server, you would use a role- or profile class/module on top of confdroid_apache to set up your vHost exactly as needed. Examples for regular basic vHost configuration files are included in the examples directory as parameterized .erb files. You would create a define for vHosts, i.e. using the example parameters, and simply add confdroid_apache as requirement (i.e. require confdroid_apache) so it gets installed automatically.
Dependencies
@@ -133,14 +133,14 @@via site.pp or nodes.pp
node 'example.example.net' {
- include cd_apache
+ include confdroid_apache
}
-
through Foreman:
In order to apply parameters through Foreman, cd_apache::params must be added to the host or host group in question.
+In order to apply parameters through Foreman, confdroid_apache::params must be added to the host or host group in question.
See more details about class deployment on Confdroid.com.
diff --git a/doc/index.html b/doc/index.html index 6e5a6ea..ba198ad 100644 --- a/doc/index.html +++ b/doc/index.html @@ -60,7 +60,7 @@README
- +[[TOC]]
@@ -68,7 +68,7 @@Apache httpd is a very powerful and widely used web server.
cd_apache automates the installation and configuration of httpd. This module is a base module simply providing the httpd service itself to be used by other role- or profile modules, adding more detailed configurations specific to the particular use case, like for instance Wordpress.
confdroid_apache automates the installation and configuration of httpd. This module is a base module simply providing the httpd service itself to be used by other role- or profile modules, adding more detailed configurations specific to the particular use case, like for instance Wordpress.
WARNING
@@ -116,7 +116,7 @@Nagios etc.
-With those use cases, you would provide the vHosts at the Puppet module for the application, not the base module. Also, if you plan to use this module to run a plain fully fledged web server, you would use a role- or profile class/module on top of cd_apache to set up your vHost exactly as needed. Examples for regular basic vHost configuration files are included in the examples directory as parameterized .erb files. You would create a define for vHosts, i.e. using the example parameters, and simply add cd_apache as requirement (i.e. require cd_apache) so it gets installed automatically.
With those use cases, you would provide the vHosts at the Puppet module for the application, not the base module. Also, if you plan to use this module to run a plain fully fledged web server, you would use a role- or profile class/module on top of confdroid_apache to set up your vHost exactly as needed. Examples for regular basic vHost configuration files are included in the examples directory as parameterized .erb files. You would create a define for vHosts, i.e. using the example parameters, and simply add confdroid_apache as requirement (i.e. require confdroid_apache) so it gets installed automatically.
Dependencies
@@ -133,14 +133,14 @@via site.pp or nodes.pp
node 'example.example.net' {
- include cd_apache
+ include confdroid_apache
}
-
through Foreman:
In order to apply parameters through Foreman, cd_apache::params must be added to the host or host group in question.
+In order to apply parameters through Foreman, confdroid_apache::params must be added to the host or host group in question.
See more details about class deployment on Confdroid.com.
diff --git a/doc/puppet_class_list.html b/doc/puppet_class_list.html index 9fbcafd..7ff974e 100644 --- a/doc/puppet_class_list.html +++ b/doc/puppet_class_list.html @@ -36,72 +36,72 @@-
-
- +
- -
- +
- -
- +
- -
- +
- -
- +
- -
- +
- -
- +
- -
- +
- -
- +
- -
- +
- diff --git a/doc/puppet_classes/cd_apache.html b/doc/puppet_classes/cd_apache.html index 06a1f9d..8077ceb 100644 --- a/doc/puppet_classes/cd_apache.html +++ b/doc/puppet_classes/cd_apache.html @@ -4,7 +4,7 @@
Puppet Class: cd_apache
+Puppet Class: confdroid_apache
Summary
- initializes the cd_apache Puppet module. + initializes the confdroid_apache Puppet module.Overview
cd_apache::init.pp Module name: cd_apache Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_apache::init.pp Module name: confdroid_apache Author: 12ww1160 (12ww1160@confdroid.com)
# File 'manifests/init.pp', line 6
-class cd_apache {
- include cd_apache::params
+class confdroid_apache {
+ include confdroid_apache::params
}
Puppet Class: cd_apache::firewall::iptables
+Puppet Class: confdroid_apache::firewall::iptables
- Inherits: -
- cd_apache::params +
- confdroid_apache::params
cd_apache::firewall::iptables.pp Module name: cd_apache Author: Arne Teuke (arne_teuke@ConfDroid.com)
+confdroid_apache::firewall::iptables.pp Module name: confdroid_apache Author: 12ww1160 (12ww1160@ConfDroid.com)
# File 'manifests/firewall/iptables.pp', line 6 -class cd_apache::firewall::iptables ( +class confdroid_apache::firewall::iptables ( -) inherits cd_apache::params { +) inherits confdroid_apache::params { if $ae_manage_fw == true { firewall { "${ae_order_no}${ae_http_port} tcp http port ${ae_http_port}": proto => ['tcp','udp'], diff --git a/doc/puppet_classes/cd_apache_3A_3Amain_3A_3Aconfig.html b/doc/puppet_classes/cd_apache_3A_3Amain_3A_3Aconfig.html index 561a53d..a099e82 100644 --- a/doc/puppet_classes/cd_apache_3A_3Amain_3A_3Aconfig.html +++ b/doc/puppet_classes/cd_apache_3A_3Amain_3A_3Aconfig.html @@ -4,7 +4,7 @@- Puppet Class: cd_apache::main::config + Puppet Class: confdroid_apache::main::config — Documentation by YARD 0.9.36 @@ -15,7 +15,7 @@ @@ -39,7 +39,7 @@ Index (c) » Puppet Classes » - cd_apache::main::config + confdroid_apache::main::config @@ -59,12 +59,12 @@ - Puppet Class: cd_apache::main::config
+-Puppet Class: confdroid_apache::main::config
@@ -59,12 +59,12 @@@@ -83,7 +83,7 @@
- Inherits:
-- cd_apache::params
+- confdroid_apache::params
@@ -111,11 +111,11 @@-cd_apache::main::config.pp Module name: cd_apache Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_apache::main::config.pp Module name: confdroid_apache Author: 12ww1160 (12ww1160@confdroid.com)
diff --git a/doc/puppet_classes/cd_apache_3A_3Amonitoring_3A_3Atarget.html b/doc/puppet_classes/cd_apache_3A_3Amonitoring_3A_3Atarget.html index 4775584..b4b47a3 100644 --- a/doc/puppet_classes/cd_apache_3A_3Amonitoring_3A_3Atarget.html +++ b/doc/puppet_classes/cd_apache_3A_3Amonitoring_3A_3Atarget.html @@ -4,7 +4,7 @@ # File 'manifests/main/config.pp', line 6 -class cd_apache::main::config ( +class confdroid_apache::main::config ( -) inherits cd_apache::params { - include cd_apache::server::service - include cd_apache::monitoring::target +) inherits confdroid_apache::params { + include confdroid_apache::server::service + include confdroid_apache::monitoring::target }- Puppet Class: cd_apache::monitoring::target + Puppet Class: confdroid_apache::monitoring::target — Documentation by YARD 0.9.36 @@ -15,7 +15,7 @@ @@ -39,7 +39,7 @@ Index (c) » Puppet Classes » - cd_apache::monitoring::target + confdroid_apache::monitoring::target Puppet Class: cd_apache::monitoring::target
+Puppet Class: confdroid_apache::monitoring::target
@@ -83,7 +83,7 @@
- Inherits:
-- cd_apache::params
+- confdroid_apache::params
@@ -127,9 +127,9 @@-cd_apache::monitoring::target.pp Module name: cd_apache Author: Arne Teuke (arne_teuke@puppetsoft.com)
+confdroid_apache::monitoring::target.pp Module name: confdroid_apache Author: 12ww1160 (12ww1160@puppetsoft.com)
# File 'manifests/monitoring/target.pp', line 6 -class cd_apache::monitoring::target ( +class confdroid_apache::monitoring::target ( -) inherits cd_apache::params { +) inherits confdroid_apache::params { case $ae_incl_target { false: { notify { 'Nagios Service target for check_httpd has been disabled via parameters / ENC override': } } diff --git a/doc/puppet_classes/cd_apache_3A_3Aparams.html b/doc/puppet_classes/cd_apache_3A_3Aparams.html index 600a981..3bf613d 100644 --- a/doc/puppet_classes/cd_apache_3A_3Aparams.html +++ b/doc/puppet_classes/cd_apache_3A_3Aparams.html @@ -4,7 +4,7 @@- Puppet Class: cd_apache::params + Puppet Class: confdroid_apache::params — Documentation by YARD 0.9.36 @@ -15,7 +15,7 @@ @@ -39,7 +39,7 @@ Index (c) » Puppet Classes » - cd_apache::params + confdroid_apache::params @@ -59,7 +59,7 @@ - -Puppet Class: cd_apache::params
+@@ -59,12 +59,12 @@Puppet Class: confdroid_apache::params
@@ -67,21 +67,21 @@- Inherited by:
- - cd_apache::main::config
@@ -95,14 +95,14 @@
+ confdroid_apache::main::config
- cd_apache::server::dirs
+ confdroid_apache::server::dirs
- cd_apache::server::user
+ confdroid_apache::server::user
- cd_apache::server::files
+ confdroid_apache::server::files
- cd_apache::server::install
+ confdroid_apache::server::install
- cd_apache::server::service
+ confdroid_apache::server::service
- cd_apache::firewall::iptables
+ confdroid_apache::firewall::iptables
- cd_apache::monitoring::target
+ confdroid_apache::monitoring::target
Summary
- This class holds all parameters for the cd_apache module, which are + This class holds all parameters for the confdroid_apache module, which are inherited by all classes except defines.Overview
@@ -270,7 +270,7 @@ inherited by all classes except defines. —-cd_apache::params.pp Module name: cd_apache Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_apache::params.pp Module name: confdroid_apache Author: 12ww1160 (12ww1160@confdroid.com)
-@@ -518,7 +518,7 @@ inherited by all classes except defines.Whether or not to manage the httpd configuration. httpd is very often a sub system used by many other services, and the required configuration depends on the use case. If using httpd as sub-service ( i.e. for phpmyadmin, Nagios etc.), the main configuration should be done on that end, not in cd_apache. IN that case, set
+ae_manage_cfgtofalse.Whether or not to manage the httpd configuration. httpd is very often a sub system used by many other services, and the required configuration depends on the use case. If using httpd as sub-service ( i.e. for phpmyadmin, Nagios etc.), the main configuration should be done on that end, not in confdroid_apache. IN that case, set
ae_manage_cfgtofalse.diff --git a/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Adirs.html b/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Adirs.html index 19339aa..9222dc9 100644 --- a/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Adirs.html +++ b/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Adirs.html @@ -4,7 +4,7 @@ # File 'manifests/params.pp', line 47 -class cd_apache::params ( +class confdroid_apache::params ( # installation String $pkg_ensure = 'latest', @@ -569,20 +569,20 @@ class cd_apache::params ( # files $ae_conf_file = "${ae_conf_dir}/httpd.conf" - $ae_conf_file_erb = 'cd_apache/httpd_conf.erb' + $ae_conf_file_erb = 'confdroid_apache/httpd_conf.erb' $ae_magic_file = "${ae_conf_dir}/magic" - $ae_magic_file_erb = 'cd_apache/magic.erb' + $ae_magic_file_erb = 'confdroid_apache/magic.erb' $ae_ssl_file = "${ae_conf_d_dir}/ssl.conf" - $ae_ssl_file_erb = 'cd_apache/ssl_conf.erb' + $ae_ssl_file_erb = 'confdroid_apache/ssl_conf.erb' $ae_autoindex_file = "${ae_conf_d_dir}/autoindex.conf" - $ae_autoindex_erb = 'cd_apache/autoindex_conf.erb' + $ae_autoindex_erb = 'confdroid_apache/autoindex_conf.erb' $ae_userdir_file = "${ae_conf_d_dir}/userdir.conf" - $ae_userdir_erb = 'cd_apache/userdir_conf.erb' + $ae_userdir_erb = 'confdroid_apache/userdir_conf.erb' $ae_index_file = '/var/www/html/index.html' - $ae_index_erb = 'cd_apache/index_html.erb' + $ae_index_erb = 'confdroid_apache/index_html.erb' # includes must be last - include cd_apache::main::config + include confdroid_apache::main::config }- Puppet Class: cd_apache::server::dirs + Puppet Class: confdroid_apache::server::dirs — Documentation by YARD 0.9.36 @@ -15,7 +15,7 @@ @@ -39,7 +39,7 @@ Index (c) » Puppet Classes » - cd_apache::server::dirs + confdroid_apache::server::dirs Puppet Class: cd_apache::server::dirs
+Puppet Class: confdroid_apache::server::dirs
@@ -84,7 +84,7 @@ httpd service.
- Inherits:
-- cd_apache::params
+- confdroid_apache::params
@@ -298,10 +298,10 @@ httpd service.-cd_apache::server::dirs.pp Module name: cd_apache Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_apache::server::dirs.pp Module name: confdroid_apache Author: 12ww1160 (12ww1160@confdroid.com)
# File 'manifests/server/dirs.pp', line 7 -class cd_apache::server::dirs ( +class confdroid_apache::server::dirs ( -) inherits cd_apache::params { - require cd_apache::server::user +) inherits confdroid_apache::params { + require confdroid_apache::server::user if $ae_manage_dirs == true { # create main dir diff --git a/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Afiles.html b/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Afiles.html index f33c097..95b8f31 100644 --- a/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Afiles.html +++ b/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Afiles.html @@ -4,7 +4,7 @@- Puppet Class: cd_apache::server::files + Puppet Class: confdroid_apache::server::files — Documentation by YARD 0.9.36 @@ -15,7 +15,7 @@ @@ -39,7 +39,7 @@ Index (c) » Puppet Classes » - cd_apache::server::files + confdroid_apache::server::files @@ -59,12 +59,12 @@ - Puppet Class: cd_apache::server::files
+Puppet Class: confdroid_apache::server::files
@@ -83,7 +83,7 @@
- Inherits:
-- cd_apache::params
+- confdroid_apache::params
@@ -210,10 +210,10 @@-cd_apache::server::files.pp Module name: cd_apache Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_apache::server::files.pp Module name: confdroid_apache Author: 12ww1160 (12ww1160@confdroid.com)
# File 'manifests/server/files.pp', line 6 -class cd_apache::server::files ( +class confdroid_apache::server::files ( -) inherits cd_apache::params { - require cd_apache::server::dirs +) inherits confdroid_apache::params { + require confdroid_apache::server::dirs if $ae_manage_cfg == true { # manage main config file diff --git a/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Ainstall.html b/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Ainstall.html index 20a3826..e1d1f6c 100644 --- a/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Ainstall.html +++ b/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Ainstall.html @@ -4,7 +4,7 @@- Puppet Class: cd_apache::server::install + Puppet Class: confdroid_apache::server::install — Documentation by YARD 0.9.36 @@ -15,7 +15,7 @@ @@ -39,7 +39,7 @@ Index (c) » Puppet Classes » - cd_apache::server::install + confdroid_apache::server::install @@ -59,12 +59,12 @@ - Puppet Class: cd_apache::server::install
+Puppet Class: confdroid_apache::server::install
@@ -83,7 +83,7 @@
- Inherits:
-- cd_apache::params
+- confdroid_apache::params
@@ -114,9 +114,9 @@-cd_apache::server::install.pp Module name: cd_apache Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_apache::server::install.pp Module name: confdroid_apache Author: 12ww1160 (12ww1160@confdroid.com)
# File 'manifests/server/install.pp', line 6 -class cd_apache::server::install ( +class confdroid_apache::server::install ( -) inherits cd_apache::params { +) inherits confdroid_apache::params { require cd_resources package { $reqpackages: diff --git a/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Aservice.html b/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Aservice.html index b07250a..1dbb6bb 100644 --- a/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Aservice.html +++ b/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Aservice.html @@ -4,7 +4,7 @@- Puppet Class: cd_apache::server::service + Puppet Class: confdroid_apache::server::service — Documentation by YARD 0.9.36 @@ -15,7 +15,7 @@ @@ -39,7 +39,7 @@ Index (c) » Puppet Classes » - cd_apache::server::service + confdroid_apache::server::service @@ -59,12 +59,12 @@ - Puppet Class: cd_apache::server::service
+Puppet Class: confdroid_apache::server::service
@@ -83,7 +83,7 @@
- Inherits:
-- cd_apache::params
+- confdroid_apache::params
@@ -118,11 +118,11 @@-cd_apache::server::service.pp Module name: cd_apache Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_apache::server::service.pp Module name: confdroid_apache Author: 12ww1160 (12ww1160@confdroid.com)
# File 'manifests/server/service.pp', line 6 -class cd_apache::server::service ( +class confdroid_apache::server::service ( -) inherits cd_apache::params { - require cd_apache::server::files - require cd_apache::firewall::iptables +) inherits confdroid_apache::params { + require confdroid_apache::server::files + require confdroid_apache::firewall::iptables service { $ae_service: ensure => running, diff --git a/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Auser.html b/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Auser.html index ebcdc1d..fff70fb 100644 --- a/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Auser.html +++ b/doc/puppet_classes/cd_apache_3A_3Aserver_3A_3Auser.html @@ -4,7 +4,7 @@- Puppet Class: cd_apache::server::user + Puppet Class: confdroid_apache::server::user — Documentation by YARD 0.9.36 @@ -15,7 +15,7 @@ @@ -39,7 +39,7 @@ Index (c) » Puppet Classes » - cd_apache::server::user + confdroid_apache::server::user @@ -59,12 +59,12 @@ - Puppet Class: cd_apache::server::user
+Puppet Class: confdroid_apache::server::user
@@ -83,7 +83,7 @@
- Inherits:
-- cd_apache::params
+- confdroid_apache::params
@@ -137,10 +137,10 @@-cd_apache::server:;user.pp Module name: cd_apache Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_apache::server:;user.pp Module name: confdroid_apache Author: 12ww1160 (12ww1160@confdroid.com)
# File 'manifests/server/user.pp', line 6 -class cd_apache::server::user ( +class confdroid_apache::server::user ( -) inherits cd_apache::params { - require cd_apache::server::install +) inherits confdroid_apache::params { + require confdroid_apache::server::install if $ae_manage_user == true { group { $ae_user_name: diff --git a/manifests/firewall/iptables.pp b/manifests/firewall/iptables.pp index 7e99fe1..63c91ae 100644 --- a/manifests/firewall/iptables.pp +++ b/manifests/firewall/iptables.pp @@ -1,11 +1,11 @@ -## cd_apache::firewall::iptables.pp -# Module name: cd_apache -# Author: Arne Teuke (arne_teuke@ConfDroid.com) +## confdroid_apache::firewall::iptables.pp +# Module name: confdroid_apache +# Author: 12ww1160 (12ww1160@ConfDroid.com) # @summary manage firewall settings through cd_firewall or puppetlabs-firewall ############################################################################### -class cd_apache::firewall::iptables ( +class confdroid_apache::firewall::iptables ( -) inherits cd_apache::params { +) inherits confdroid_apache::params { if $ae_manage_fw == true { firewall { "${ae_order_no}${ae_http_port} tcp http port ${ae_http_port}": proto => ['tcp','udp'], diff --git a/manifests/init.pp b/manifests/init.pp index c9c95af..9a8eb34 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,8 +1,8 @@ -## cd_apache::init.pp -# Module name: cd_apache -# Author: Arne Teuke (arne_teuke@confdroid.com) -# @summary initializes the cd_apache Puppet module. +## confdroid_apache::init.pp +# Module name: confdroid_apache +# Author: 12ww1160 (12ww1160@confdroid.com) +# @summary initializes the confdroid_apache Puppet module. ############################################################################## -class cd_apache { - include cd_apache::params +class confdroid_apache { + include confdroid_apache::params } diff --git a/manifests/main/config.pp b/manifests/main/config.pp index 3c5ede7..517b767 100644 --- a/manifests/main/config.pp +++ b/manifests/main/config.pp @@ -1,11 +1,11 @@ -## cd_apache::main::config.pp -# Module name: cd_apache -# Author: Arne Teuke (arne_teuke@confdroid.com) +## confdroid_apache::main::config.pp +# Module name: confdroid_apache +# Author: 12ww1160 (12ww1160@confdroid.com) # @summary configure the module classes to be used. ############################################################################## -class cd_apache::main::config ( +class confdroid_apache::main::config ( -) inherits cd_apache::params { - include cd_apache::server::service - include cd_apache::monitoring::target +) inherits confdroid_apache::params { + include confdroid_apache::server::service + include confdroid_apache::monitoring::target } diff --git a/manifests/monitoring/target.pp b/manifests/monitoring/target.pp index 0ea5a60..559ded4 100644 --- a/manifests/monitoring/target.pp +++ b/manifests/monitoring/target.pp @@ -1,11 +1,11 @@ -## cd_apache::monitoring::target.pp -# Module name: cd_apache -# Author: Arne Teuke (arne_teuke@puppetsoft.com) +## confdroid_apache::monitoring::target.pp +# Module name: confdroid_apache +# Author: 12ww1160 (12ww1160@puppetsoft.com) # @summary class manages exports for nagios monitoring ############################################################################## -class cd_apache::monitoring::target ( +class confdroid_apache::monitoring::target ( -) inherits cd_apache::params { +) inherits confdroid_apache::params { case $ae_incl_target { false: { notify { 'Nagios Service target for check_httpd has been disabled via parameters / ENC override': } } diff --git a/manifests/params.pp b/manifests/params.pp index 68c9bc8..1e547b1 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -1,7 +1,7 @@ -## cd_apache::params.pp -# Module name: cd_apache -# Author: Arne Teuke (arne_teuke@confdroid.com) -# @summary This class holds all parameters for the cd_apache module, which are +## confdroid_apache::params.pp +# Module name: confdroid_apache +# Author: 12ww1160 (12ww1160@confdroid.com) +# @summary This class holds all parameters for the confdroid_apache module, which are # inherited by all classes except defines. # @param [String] pkg_ensure Specify which # [package type] (https://confdroid.com/2017/05/puppet-type-package/) @@ -29,7 +29,7 @@ # configuration. httpd is very often a sub system used by many other services, # and the required configuration depends on the use case. If using httpd as # sub-service ( i.e. for phpmyadmin, Nagios etc.), the main configuration -# should be done on that end, not in cd_apache. IN that case, set `ae_manage_cfg` +# should be done on that end, not in confdroid_apache. IN that case, set `ae_manage_cfg` # to `false`. # @param [Boolean] ae_manage_dirs Whether or not main directories required # to run httpd should be managed. Typically this should be set to true. @@ -44,7 +44,7 @@ # @param [Boolean] ae_manage_fw whether to manage firewall settings # @param [String] reqpackages List of packages to install. ########################################################################### -class cd_apache::params ( +class confdroid_apache::params ( # installation String $pkg_ensure = 'latest', @@ -95,18 +95,18 @@ class cd_apache::params ( # files $ae_conf_file = "${ae_conf_dir}/httpd.conf" - $ae_conf_file_erb = 'cd_apache/httpd_conf.erb' + $ae_conf_file_erb = 'confdroid_apache/httpd_conf.erb' $ae_magic_file = "${ae_conf_dir}/magic" - $ae_magic_file_erb = 'cd_apache/magic.erb' + $ae_magic_file_erb = 'confdroid_apache/magic.erb' $ae_ssl_file = "${ae_conf_d_dir}/ssl.conf" - $ae_ssl_file_erb = 'cd_apache/ssl_conf.erb' + $ae_ssl_file_erb = 'confdroid_apache/ssl_conf.erb' $ae_autoindex_file = "${ae_conf_d_dir}/autoindex.conf" - $ae_autoindex_erb = 'cd_apache/autoindex_conf.erb' + $ae_autoindex_erb = 'confdroid_apache/autoindex_conf.erb' $ae_userdir_file = "${ae_conf_d_dir}/userdir.conf" - $ae_userdir_erb = 'cd_apache/userdir_conf.erb' + $ae_userdir_erb = 'confdroid_apache/userdir_conf.erb' $ae_index_file = '/var/www/html/index.html' - $ae_index_erb = 'cd_apache/index_html.erb' + $ae_index_erb = 'confdroid_apache/index_html.erb' # includes must be last - include cd_apache::main::config + include confdroid_apache::main::config } diff --git a/manifests/server/dirs.pp b/manifests/server/dirs.pp index d168ea7..e9c4d9a 100644 --- a/manifests/server/dirs.pp +++ b/manifests/server/dirs.pp @@ -1,13 +1,13 @@ -## cd_apache::server::dirs.pp -# Module name: cd_apache -# Author: Arne Teuke (arne_teuke@confdroid.com) +## confdroid_apache::server::dirs.pp +# Module name: confdroid_apache +# Author: 12ww1160 (12ww1160@confdroid.com) # @summary Manage all aspects of the directory structure required for the # httpd service. ############################################################################## -class cd_apache::server::dirs ( +class confdroid_apache::server::dirs ( -) inherits cd_apache::params { - require cd_apache::server::user +) inherits confdroid_apache::params { + require confdroid_apache::server::user if $ae_manage_dirs == true { # create main dir diff --git a/manifests/server/files.pp b/manifests/server/files.pp index ec8b36a..bd4e384 100644 --- a/manifests/server/files.pp +++ b/manifests/server/files.pp @@ -1,12 +1,12 @@ -## cd_apache::server::files.pp -# Module name: cd_apache -# Author: Arne Teuke (arne_teuke@confdroid.com) +## confdroid_apache::server::files.pp +# Module name: confdroid_apache +# Author: 12ww1160 (12ww1160@confdroid.com) # @summary Manage all aspects for the httpd configuration, if enabled. ############################################################################## -class cd_apache::server::files ( +class confdroid_apache::server::files ( -) inherits cd_apache::params { - require cd_apache::server::dirs +) inherits confdroid_apache::params { + require confdroid_apache::server::dirs if $ae_manage_cfg == true { # manage main config file diff --git a/manifests/server/install.pp b/manifests/server/install.pp index cf5b727..fe8396a 100644 --- a/manifests/server/install.pp +++ b/manifests/server/install.pp @@ -1,11 +1,11 @@ -## cd_apache::server::install.pp -# Module name: cd_apache -# Author: Arne Teuke (arne_teuke@confdroid.com) +## confdroid_apache::server::install.pp +# Module name: confdroid_apache +# Author: 12ww1160 (12ww1160@confdroid.com) # @summary Install required binaries ############################################################################## -class cd_apache::server::install ( +class confdroid_apache::server::install ( -) inherits cd_apache::params { +) inherits confdroid_apache::params { require cd_resources package { $reqpackages: diff --git a/manifests/server/service.pp b/manifests/server/service.pp index 7e262d9..fcc257e 100644 --- a/manifests/server/service.pp +++ b/manifests/server/service.pp @@ -1,13 +1,13 @@ -## cd_apache::server::service.pp -# Module name: cd_apache -# Author: Arne Teuke (arne_teuke@confdroid.com) +## confdroid_apache::server::service.pp +# Module name: confdroid_apache +# Author: 12ww1160 (12ww1160@confdroid.com) # @summary manage the httpd service. ############################################################################## -class cd_apache::server::service ( +class confdroid_apache::server::service ( -) inherits cd_apache::params { - require cd_apache::server::files - require cd_apache::firewall::iptables +) inherits confdroid_apache::params { + require confdroid_apache::server::files + require confdroid_apache::firewall::iptables service { $ae_service: ensure => running, diff --git a/manifests/server/user.pp b/manifests/server/user.pp index 7db0bee..e57d233 100644 --- a/manifests/server/user.pp +++ b/manifests/server/user.pp @@ -1,12 +1,12 @@ -## cd_apache::server:;user.pp -# Module name: cd_apache -# Author: Arne Teuke (arne_teuke@confdroid.com) +## confdroid_apache::server:;user.pp +# Module name: confdroid_apache +# Author: 12ww1160 (12ww1160@confdroid.com) # @summary manage all aspects of the httpd service user, if enabled ############################################################################## -class cd_apache::server::user ( +class confdroid_apache::server::user ( -) inherits cd_apache::params { - require cd_apache::server::install +) inherits confdroid_apache::params { + require confdroid_apache::server::install if $ae_manage_user == true { group { $ae_user_name: