From 536c2263e82aaded359b25890fac24f8cc1cd652 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Thu, 24 Apr 2025 18:30:22 +0200 Subject: [PATCH] add bases classes --- manifests/init.pp | 8 ++++++++ manifests/main/config.pp | 9 +++++++++ manifests/params.pp | 18 ++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 manifests/init.pp create mode 100644 manifests/main/config.pp create mode 100644 manifests/params.pp diff --git a/manifests/init.pp b/manifests/init.pp new file mode 100644 index 0000000..f80fdb5 --- /dev/null +++ b/manifests/init.pp @@ -0,0 +1,8 @@ +## php_cd::init.pp +# Module name: php_cd +# Author: Arne Teuke (arne_teuke@confdroid.com) +# @summary Class initializes the php_cd module +############################################################################## +class php_cd::init { + include php_cd::params +} diff --git a/manifests/main/config.pp b/manifests/main/config.pp new file mode 100644 index 0000000..ce142d7 --- /dev/null +++ b/manifests/main/config.pp @@ -0,0 +1,9 @@ +## php_cd::main::config.pp +# Module name: php_cd +# Author: Arne Teuke (arne_teuke@confdroid.com) +# @summary Class manages the module logic +############################################################################## +class php_cd::main::config ( + +) inherits php_cd::params { +} diff --git a/manifests/params.pp b/manifests/params.pp new file mode 100644 index 0000000..45202c2 --- /dev/null +++ b/manifests/params.pp @@ -0,0 +1,18 @@ +## php_cd::params.pp +# Module name: php_cd +# Author: Arne Teuke (arne_teuke@confdroid.com) +# @summary Class contains all class parameters for this module +############################################################################## +class php_cd::params ( + +) { +# Facts + + $fqdn = $facts['networking']['fqdn'] + $domain = $facts['networking']['domain'] + $os_name = $facts['os']['name'] + $os_release = $facts['os']['release']['major'] + + # includes must be last + include php_cd::main::config +}