add bases classes
This commit is contained in:
8
manifests/init.pp
Normal file
8
manifests/init.pp
Normal file
@@ -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
|
||||||
|
}
|
||||||
9
manifests/main/config.pp
Normal file
9
manifests/main/config.pp
Normal file
@@ -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 {
|
||||||
|
}
|
||||||
18
manifests/params.pp
Normal file
18
manifests/params.pp
Normal file
@@ -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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user