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 +}