add install

This commit is contained in:
Arne Teuke
2025-02-23 17:25:46 +01:00
parent b3972648a6
commit a66217afb6
3 changed files with 21 additions and 1 deletions

View File

@@ -6,6 +6,6 @@ class cd_alloy::main::config (
) inherits cd_alloy::params {
include cd_alloy::main::yumrepo
include cd_alloy::main::install
}

15
manifests/main/install.pp Normal file
View 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,
}
}

View File

@@ -1,10 +1,15 @@
## cd_alloy::params.pp
# Module name: cd_alloy
# 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.
##############################################################################
class cd_alloy::params (
$reqpackages = 'alloy',
$pkg_ensure = 'latest',
) {
# includes must be last