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