puppet-swift/manifests/client.pp
Andrew Woodward 4304c6e7bc Move swift::client to include from declared class
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
2016-10-14 13:02:36 -07:00

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']
}
}