puppet-octavia/manifests/client.pp
Tobias Urdin 80cfe119bb Change to relative include
Change-Id: I4d838802362664563468575dba8e6829b90cef7e
2020-07-13 21:22:31 +02:00

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}.")
}
}