80cfe119bb
Change-Id: I4d838802362664563468575dba8e6829b90cef7e
28 lines
585 B
Puppet
28 lines
585 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}.")
|
|
}
|
|
}
|