fuel-library/deployment/puppet/galera/manifests/pkg_add.pp

25 lines
534 B
Puppet

define galera::pkg_add(
$pkg_version,
$pkg_prefix = '/tmp'
) {
include galera::params
case $::osfamily {
'RedHat': {
package { $title :
ensure => present,
provider => $::galera::params::pkg_provider,
source => "${pkg_prefix}/${title}-${pkg_version}.rpm",
}
}
'Debian': {
package { $title :
ensure => present,
provider => $::galera::params::pkg_provider,
source => "${pkg_prefix}/${title}-${pkg_version}.deb",
}
}
}
}