Files
puppet-octavia/manifests/client.pp
ZhongShengping f6f355dcfe Add openstackclient installation to the client class
The repo is inside the openstackclient plugin commands[1].

[1]https://docs.openstack.org/python-openstackclient/latest/cli/plugin-commands.html

Change-Id: I46eac78b8213cb5c3b61e2ae9e73c30d5fd420a1
2019-05-17 16:31:20 +08:00

28 lines
593 B
Puppet

# == Class: octavia::client
#
# Installs the octavia python library.
#
# === Parameters
#
# [*ensure*]
# (Optional) Ensure state for package.
#
class octavia::client (
$ensure = 'present'
) {
include ::octavia::deps
include ::octavia::params
if $::octavia::params::client_package_name {
package { 'python-octaviaclient':
ensure => $ensure,
name => $::octavia::params::client_package_name,
tag => 'openstack',
}
include '::openstacklib::openstackclient'
} else {
fail("There is no avaiable client package in osfamily: ${::osfamily}.")
}
}