fc7dbda80c
This patch adds new class octavia::client to manage client, note that it only supports Debian and Ubuntu, b/c there is no available rpm package in CentOS currently. Change-Id: I8f44676a3923702cfdaffa3a0aee3f84074321d1
27 lines
547 B
Puppet
27 lines
547 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',
|
|
}
|
|
} else {
|
|
fail("There is no avaiable client package in osfamily: ${::osfamily}.")
|
|
}
|
|
}
|