Skip to content

Commit

Permalink
add 2 quota variables for openstack: loadbalancer and pool (ansible#2…
Browse files Browse the repository at this point in the history
…6010)

* add 2 quota variables for openstack: loadbalancer and pool. In neutron, they're set to 10 by default. So in the real production environment, you would hit this limit very soon.

* specify version_added for new options
  • Loading branch information
pshen authored and samdoran committed Sep 5, 2017
1 parent 534c1b8 commit 1b8f455
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion lib/ansible/modules/cloud/openstack/os_quota.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@
required: False
default: None
description: Number of key pairs to allow.
loadbalancer:
required: False
default: None
description: Number of load balancers to allow.
version_added: "2.4"
network:
required: False
default: None
Expand All @@ -103,6 +108,11 @@
required: False
default: None
description: Maximum size in GB's of individual volumes.
pool:
required: False
default: None
description: Number of load balancer pools to allow.
version_added: "2.4"
port:
required: False
default: None
Expand Down Expand Up @@ -215,9 +225,11 @@
injected_files: "{{ item.injected_files }}"
injected_path_size: "{{ item.injected_path_size }}"
instances: "{{ item.instances }}"
port: "{{ item.port }}"
key_pairs: "{{ item.key_pairs }}"
loadbalancer: "{{ item.loadbalancer }}"
per_volume_gigabytes: "{{ item.per_volume_gigabytes }}"
pool: "{{ item.pool }}"
port: "{{ item.port }}"
properties: "{{ item.properties }}"
ram: "{{ item.ram }}"
security_group_rule: "{{ item.security_group_rule }}"
Expand Down Expand Up @@ -262,7 +274,9 @@
},
network: {
floatingip: 50,
loadbalancer: 10,
network: 10,
pool: 10,
port: 160,
rbac_policy: 10,
router: 10,
Expand Down Expand Up @@ -398,8 +412,10 @@ def main():
injected_path_size=dict(required=False, type='int', default=None),
instances=dict(required=False, type='int', default=None),
key_pairs=dict(required=False, type='int', default=None),
loadbalancer=dict(required=False, type='int', default=None),
network=dict(required=False, type='int', default=None),
per_volume_gigabytes=dict(required=False, type='int', default=None),
pool=dict(required=False, type='int', default=None),
port=dict(required=False, type='int', default=None),
project=dict(required=False, type='int', default=None),
properties=dict(required=False, type='int', default=None),
Expand Down

0 comments on commit 1b8f455

Please sign in to comment.