From 1d407bacde791dde95c80c4a2a0d6427e4d53f5a Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Wed, 4 Feb 2026 10:01:29 +0100 Subject: [PATCH] OP#414 finish basic class structure --- manifests/firewall/iptables.pp | 10 ++++++++++ manifests/main/config.pp | 10 ++++++++++ manifests/main/dirs.pp | 10 ++++++++++ manifests/main/files.pp | 10 ++++++++++ manifests/main/install.pp | 10 ++++++++++ manifests/main/service.pp | 12 ++++++++++++ manifests/main/user.pp | 10 ++++++++++ manifests/params.pp | 4 +++- 8 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 manifests/firewall/iptables.pp create mode 100644 manifests/main/config.pp create mode 100644 manifests/main/dirs.pp create mode 100644 manifests/main/files.pp create mode 100644 manifests/main/install.pp create mode 100644 manifests/main/service.pp create mode 100644 manifests/main/user.pp diff --git a/manifests/firewall/iptables.pp b/manifests/firewall/iptables.pp new file mode 100644 index 0000000..47e3508 --- /dev/null +++ b/manifests/firewall/iptables.pp @@ -0,0 +1,10 @@ +## confdroid_gitea::firewall::iptables.pp +# Module name: confdroid_gitea +# Author: 12ww1160 (12ww1160@confdroid.com) +# @summary manages the firewall rules for the confdroid_gitea Puppet module. +############################################################################## +class confdroid_gitea::firewall::iptables ( + +) inherits confdroid_gitea::params { + +} diff --git a/manifests/main/config.pp b/manifests/main/config.pp new file mode 100644 index 0000000..e2b9c4b --- /dev/null +++ b/manifests/main/config.pp @@ -0,0 +1,10 @@ +## confdroid_gitea::main::config.pp +# Module name: confdroid_gitea +# Author: 12ww1160 (12ww1160@confdroid.com) +# @summary manages the logic for the confdroid_gitea Puppet module. +############################################################################## +class confdroid_gitea::main::config ( + +) inherits confdroid_gitea::params { + include confdroid_gitea::main::service +} diff --git a/manifests/main/dirs.pp b/manifests/main/dirs.pp new file mode 100644 index 0000000..746a71e --- /dev/null +++ b/manifests/main/dirs.pp @@ -0,0 +1,10 @@ +## confdroid_gitea::main::dirs.pp +# Module name: confdroid_gitea +# Author: 12ww1160 (12ww1160@confdroid.com) +# @summary manages the directories for the confdroid_gitea Puppet module. +############################################################################## +class confdroid_gitea::main::dirs ( + +) inherits confdroid_gitea::params { + require confdroid_gitea::main::files +} diff --git a/manifests/main/files.pp b/manifests/main/files.pp new file mode 100644 index 0000000..91769b9 --- /dev/null +++ b/manifests/main/files.pp @@ -0,0 +1,10 @@ +## confdroid_gitea::main::files.pp +# Module name: confdroid_gitea +# Author: 12ww1160 (12ww1160@confdroid.com) +# @summary manages the files for the confdroid_gitea Puppet module. +############################################################################## +class confdroid_gitea::main::files ( + +) inherits confdroid_gitea::params { + require confdroid_gitea::main::user +} diff --git a/manifests/main/install.pp b/manifests/main/install.pp new file mode 100644 index 0000000..e3d4485 --- /dev/null +++ b/manifests/main/install.pp @@ -0,0 +1,10 @@ +## confdroid_gitea::main::install.pp +# Module name: confdroid_gitea +# Author: 12ww1160 (12ww1160@confdroid.com) +# @summary manages the installation for the confdroid_gitea Puppet module. +############################################################################## +class confdroid_gitea::main::install ( + +) inherits confdroid_gitea::params { + +} diff --git a/manifests/main/service.pp b/manifests/main/service.pp new file mode 100644 index 0000000..be141bc --- /dev/null +++ b/manifests/main/service.pp @@ -0,0 +1,12 @@ +## confdroid_gitea::main::service.pp +# Module name: confdroid_gitea +# Author: 12ww1160 (12ww1160@confdroid.com) +# @summary manages the services for the confdroid_gitea Puppet module. +############################################################################## +class confdroid_gitea::main::service ( + +) inherits confdroid_gitea::params { + require confdroid_gitea::firewall::iptables + require confdroid_gitea::main::dirs + +} diff --git a/manifests/main/user.pp b/manifests/main/user.pp new file mode 100644 index 0000000..2ffaec7 --- /dev/null +++ b/manifests/main/user.pp @@ -0,0 +1,10 @@ +## confdroid_gitea::main::user.pp +# Module name: confdroid_gitea +# Author: 12ww1160 (12ww1160@confdroid.com) +# @summary manages the user for the confdroid_gitea Puppet module. +############################################################################## +class confdroid_gitea::main::user ( + +) inherits confdroid_gitea::params { + require confdroid_gitea::main::install +} diff --git a/manifests/params.pp b/manifests/params.pp index 1034504..f9b985b 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -1,7 +1,7 @@ ## confdroid_gitea::params.pp # Module name: confdroid_gitea # Author: 12ww1160 (12ww1160@confdroid.com) -# @summary initializes the confdroid_gitea Puppet module. +# @summary holds all parameters for the confdroid_gitea Puppet module. ############################################################################## class confdroid_gitea::params ( @@ -12,4 +12,6 @@ class confdroid_gitea::params ( $os_name = $facts['os']['name'] $os_release = $facts['os']['release']['major'] +# includes must be last + include confdroid_gitea::main::config }