add installation
This commit is contained in:
@@ -6,4 +6,5 @@
|
|||||||
class php_cd::main::config (
|
class php_cd::main::config (
|
||||||
|
|
||||||
) inherits php_cd::params {
|
) inherits php_cd::params {
|
||||||
|
include php_cd::main::install
|
||||||
}
|
}
|
||||||
|
|||||||
12
manifests/main/install.pp
Normal file
12
manifests/main/install.pp
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
## php_cd::main::install.pp
|
||||||
|
# Module name: php_cd
|
||||||
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||||
|
# @summary Class manages the module logic
|
||||||
|
##############################################################################
|
||||||
|
class php_cd::main::install (
|
||||||
|
|
||||||
|
) inherits php_cd::params {
|
||||||
|
package { $reqpackages:
|
||||||
|
ensure => $pkg_ensure,
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,9 +2,14 @@
|
|||||||
# Module name: php_cd
|
# Module name: php_cd
|
||||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||||
# @summary Class contains all class parameters for this module
|
# @summary Class contains all class parameters for this module
|
||||||
|
# @param [string] reqpackages which packages to install
|
||||||
|
# @param [string] pkg_ensure which version of packages to install
|
||||||
##############################################################################
|
##############################################################################
|
||||||
class php_cd::params (
|
class php_cd::params (
|
||||||
|
|
||||||
|
String $reqpackages = 'php',
|
||||||
|
String $pkg_ensure = 'latest',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# Facts
|
# Facts
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user