OP#409 initial commit after fork

This commit is contained in:
12ww1160
2026-02-03 00:41:35 +01:00
parent 3fe5000d8e
commit 526aed6b88
27 changed files with 256 additions and 221 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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:

View File

@@ -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,

View File

@@ -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: