add install
This commit is contained in:
@@ -6,6 +6,6 @@ class cd_alloy::main::config (
|
|||||||
|
|
||||||
) inherits cd_alloy::params {
|
) inherits cd_alloy::params {
|
||||||
|
|
||||||
include cd_alloy::main::yumrepo
|
include cd_alloy::main::install
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
15
manifests/main/install.pp
Normal file
15
manifests/main/install.pp
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
Module name: cd_alloy
|
||||||
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||||
|
# @summary Class manages module logic for the cd_alloy module
|
||||||
|
###############################################################################
|
||||||
|
class cd_alloy::main::install (
|
||||||
|
|
||||||
|
) inherits cd_alloy::params {
|
||||||
|
|
||||||
|
require cd_alloy::main::yumrepo
|
||||||
|
|
||||||
|
package {$reqpackages:
|
||||||
|
ensure => $pkg_ensure,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,10 +1,15 @@
|
|||||||
## cd_alloy::params.pp
|
## cd_alloy::params.pp
|
||||||
# Module name: cd_alloy
|
# Module name: cd_alloy
|
||||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||||
|
# @param [string] reqpackages which packages to install
|
||||||
|
# @param [string] pkg_ensure 'latest' or 'present'
|
||||||
# @summary Class contains all parameters for the cd_alloy module.
|
# @summary Class contains all parameters for the cd_alloy module.
|
||||||
##############################################################################
|
##############################################################################
|
||||||
class cd_alloy::params (
|
class cd_alloy::params (
|
||||||
|
|
||||||
|
$reqpackages = 'alloy',
|
||||||
|
$pkg_ensure = 'latest',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
|
|||||||
Reference in New Issue
Block a user