4304c6e7bc
We need to be able to include swift::client multiple times in a given catalog. In order to ensure that we get the value of $swift::client_package_ensure, we change it to be the default in swift::client Change-Id: I65fb0736e9fa9e68c3c7877cf6caf228c49eb82d Related-bug: 1632143
31 lines
531 B
Puppet
31 lines
531 B
Puppet
# == Class: swift::client
|
|
#
|
|
# Installs swift client.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*ensure*]
|
|
# (optional) Ensure state of the package.
|
|
# Defaults to 'present'.
|
|
#
|
|
class swift::client (
|
|
$ensure = $::swift::client_package_ensure
|
|
) {
|
|
|
|
if $ensure {
|
|
$real_ensure = $ensure
|
|
} else {
|
|
$real_ensure = 'present'
|
|
}
|
|
|
|
include ::swift::deps
|
|
include ::swift::params
|
|
|
|
package { 'swiftclient':
|
|
ensure => $real_ensure,
|
|
name => $::swift::params::client_package,
|
|
tag => ['openstack','swift-support-package']
|
|
}
|
|
|
|
}
|