puppet-octavia/manifests/roles.pp
Brent Eagles d6c8f91f63 Add keystone roles for Octavia policies
This patch adds creation of the necessary keystone roles to support
using Octavia's access policies.

Related-Bug: #1762774
Change-Id: Ib34ad49d52bb6afba6d035cf966592e0f0fd9a85
2018-04-11 14:18:29 -02:30

29 lines
660 B
Puppet

# == Class: octavia::roles
#
# Configure the octavia roles
#
# === Parameters
#
# [*role_names*]
# (optional) Create keystone roles to comply with Octavia policies.
# Defaults to ['load-balancer_observer', 'load-balancer_global_observer',
# 'load-balancer_member', 'load-balancer_quota_admin', 'load-balancer_admin',
# 'admin']
#
class octavia::roles (
$role_names = [
'load-balancer_observer',
'load-balancer_global_observer',
'load-balancer_member',
'load-balancer_quota_admin',
'load-balancer_admin',
'admin'
]
) {
if $role_names {
keystone_role { $role_names:
ensure => present
}
}
}