Puppet Class: neutron::quota

Defined in:
manifests/quota.pp

Overview

Class: neutron::quota

Setups neutron quota.

Parameters

default_quota

(optional) Default number of resources allowed per tenant, minus for unlimited. Defaults to $facts.

quota_network

(optional) Number of networks allowed per tenant, and minus means unlimited. Defaults to $facts.

quota_subnet

(optional) Number of subnets allowed per tenant, and minus means unlimited. Defaults to $facts.

quota_port

(optional) Number of ports allowed per tenant, and minus means unlimited. Defaults to $facts.

quota_router

(optional) Number of routers allowed per tenant, and minus means unlimited. Requires L3 extension. Defaults to $facts.

quota_floatingip

(optional) Number of floating IPs allowed per tenant, and minus means unlimited. Requires L3 extension. Defaults to $facts.

quota_security_group

(optional) Number of security groups allowed per tenant, and minus means unlimited. Requires securitygroup extension. Defaults to $facts.

quota_security_group_rule

(optional) Number of security rules allowed per tenant, and minus means unlimited. Requires securitygroup extension. Defaults to $facts.

quota_driver

(optional) Default driver to use for quota checks. Defaults to $facts.

quota_rbac_policy

(optional) Number of rbac policies allowed per tenant. A negative value means unlimited. Defaults to $facts.

Parameters:

  • default_quota (Any) (defaults to: $facts['os_service_default'])
  • quota_network (Any) (defaults to: $facts['os_service_default'])
  • quota_subnet (Any) (defaults to: $facts['os_service_default'])
  • quota_port (Any) (defaults to: $facts['os_service_default'])
  • quota_router (Any) (defaults to: $facts['os_service_default'])
  • quota_floatingip (Any) (defaults to: $facts['os_service_default'])
  • quota_security_group (Any) (defaults to: $facts['os_service_default'])
  • quota_security_group_rule (Any) (defaults to: $facts['os_service_default'])
  • quota_driver (Any) (defaults to: $facts['os_service_default'])
  • quota_rbac_policy (Any) (defaults to: $facts['os_service_default'])


50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'manifests/quota.pp', line 50

class neutron::quota (
  $default_quota             = $facts['os_service_default'],
  $quota_network             = $facts['os_service_default'],
  $quota_subnet              = $facts['os_service_default'],
  $quota_port                = $facts['os_service_default'],
  # l3 extension
  $quota_router              = $facts['os_service_default'],
  $quota_floatingip          = $facts['os_service_default'],
  # securitygroup extension
  $quota_security_group      = $facts['os_service_default'],
  $quota_security_group_rule = $facts['os_service_default'],
  $quota_driver              = $facts['os_service_default'],
  # rbac extension
  $quota_rbac_policy         = $facts['os_service_default'],
) {

  include neutron::deps

  neutron_config {
    'quotas/default_quota':             value => $default_quota;
    'quotas/quota_network':             value => $quota_network;
    'quotas/quota_subnet':              value => $quota_subnet;
    'quotas/quota_port':                value => $quota_port;
    'quotas/quota_router':              value => $quota_router;
    'quotas/quota_floatingip':          value => $quota_floatingip;
    'quotas/quota_security_group':      value => $quota_security_group;
    'quotas/quota_security_group_rule': value => $quota_security_group_rule;
    'quotas/quota_driver':              value => $quota_driver;
    'quotas/quota_rbac_policy':         value => $quota_rbac_policy;
  }
}