1 # == Class: barometer::policy
3 # Configure the barometer policies
8 # (optional) Set of policies to configure for barometer
11 # 'barometer-context_is_admin' => {
12 # 'key' => 'context_is_admin',
15 # 'barometer-default' => {
17 # 'value' => 'rule:admin_or_owner'
20 # Defaults to empty hash.
23 # (optional) Path to the nova policy.json file
24 # Defaults to /etc/barometer/policy.json
26 class barometer::policy (
28 $policy_path = '/etc/barometer/policy.json',
31 validate_hash($policies)
33 Openstacklib::Policy::Base {
34 file_path => $policy_path,
37 create_resources('openstacklib::policy::base', $policies)
39 oslo::policy { 'barometer_config': policy_file => $policy_path }