Emilien Macchi 481dde1725 puppet-octavia: Initial commit
This is the initial commit for puppet-octavia.
It has been automatically generated using cookiecutter[1] and msync[2]

[1] https://github.com/openstack/puppet-openstack-cookiecutter
[2] https://github.com/openstack/puppet-modulesync-configs

Change-Id: Ieeb5f5c94f093c163fd15ff80672b1f0e4a66ba0
2016-03-09 18:09:58 -05:00

40 lines
810 B
Puppet

# == Class: octavia::policy
#
# Configure the octavia policies
#
# === Parameters
#
# [*policies*]
# (optional) Set of policies to configure for octavia
# Example :
# {
# 'octavia-context_is_admin' => {
# 'key' => 'context_is_admin',
# 'value' => 'true'
# },
# 'octavia-default' => {
# 'key' => 'default',
# 'value' => 'rule:admin_or_owner'
# }
# }
# Defaults to empty hash.
#
# [*policy_path*]
# (optional) Path to the nova policy.json file
# Defaults to /etc/octavia/policy.json
#
class octavia::policy (
$policies = {},
$policy_path = '/etc/octavia/policy.json',
) {
validate_hash($policies)
Openstacklib::Policy::Base {
file_path => $policy_path,
}
create_resources('openstacklib::policy::base', $policies)
}