OP#413 initial classes
This commit is contained in:
8
manifests/init.pp
Normal file
8
manifests/init.pp
Normal file
@@ -0,0 +1,8 @@
|
||||
## confdroid_gitea::init.pp
|
||||
# Module name: confdroid_gitea
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary initializes the confdroid_gitea Puppet module.
|
||||
##############################################################################
|
||||
class confdroid_gitea {
|
||||
include confdroid_gitea::params
|
||||
}
|
||||
15
manifests/params.pp
Normal file
15
manifests/params.pp
Normal file
@@ -0,0 +1,15 @@
|
||||
## confdroid_gitea::params.pp
|
||||
# Module name: confdroid_gitea
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary initializes the confdroid_gitea Puppet module.
|
||||
##############################################################################
|
||||
class confdroid_gitea::params (
|
||||
|
||||
) {
|
||||
# facts
|
||||
$fqdn = $facts['networking']['fqdn']
|
||||
$domain = $facts['networking']['domain']
|
||||
$os_name = $facts['os']['name']
|
||||
$os_release = $facts['os']['release']['major']
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user