ff89c950a0
Openstackclient should be installed in the client class, not the main class. It should be possible to use keystone as a client without the main class. For example, it may be necessary to create cinder keystone endpoints on a Cinder node, but not require all of Keystone. Change-Id: Ic9e688d698adffb24f99e9d75a8754391940a7b4 Partial-Bug: #1479317
28 lines
487 B
Puppet
28 lines
487 B
Puppet
# == Class: keystone::client
|
|
#
|
|
# Installs Keystone client.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*ensure*]
|
|
# (optional) Ensure state of the package.
|
|
# Defaults to 'present'.
|
|
#
|
|
class keystone::client (
|
|
$ensure = 'present'
|
|
) {
|
|
|
|
package { 'python-keystoneclient':
|
|
ensure => $ensure,
|
|
tag => 'openstack',
|
|
}
|
|
|
|
if $ensure == 'present' {
|
|
include '::openstacklib::openstackclient'
|
|
} else {
|
|
class { '::openstacklib::openstackclient':
|
|
package_ensure => $ensure,
|
|
}
|
|
}
|
|
}
|