Browse Source

Add 'page_size' parameter.

it adjusts maximum results per page.

Change-Id: Iaae4b5d08d994c8c364dc88ebfdd213bdac92070
Related-Bug: #1569848
Maksym Yatsenko 2 years ago
parent
commit
7d6afb9957

+ 3
- 0
deployment_scripts/puppet/modules/plugin_ldap/manifests/controller.pp View File

@@ -42,6 +42,8 @@ class plugin_ldap::controller {
42 42
   $group_allow_update     = false
43 43
   $group_allow_delete     = false
44 44
 
45
+  $page_size              = $::fuel_settings['ldap']['page_size']
46
+
45 47
   $domain                 = $::fuel_settings['ldap']['domain']
46 48
   $use_tls                = $::fuel_settings['ldap']['use_tls']
47 49
   $ca_chain               = pick($::fuel_settings['ldap']['ca_chain'], false)
@@ -89,6 +91,7 @@ class plugin_ldap::controller {
89 91
     group_allow_create     => $group_allow_create,
90 92
     group_allow_update     => $group_allow_update,
91 93
     group_allow_delete     => $group_allow_delete,
94
+    page_size              => $page_size,
92 95
   }
93 96
 
94 97
   Plugin_ldap::Keystone<||> ~>

+ 2
- 0
deployment_scripts/puppet/modules/plugin_ldap/manifests/keystone.pp View File

@@ -30,6 +30,7 @@ define plugin_ldap::keystone (
30 30
   $group_allow_create     = undef,
31 31
   $group_allow_update     = undef,
32 32
   $group_allow_delete     = undef,
33
+  $page_size              = undef,
33 34
 ){
34 35
 
35 36
   if $use_tls {
@@ -100,6 +101,7 @@ define plugin_ldap::keystone (
100 101
     "${domain}/ldap/group_allow_create":     value => $group_allow_create;
101 102
     "${domain}/ldap/group_allow_update":     value => $group_allow_update;
102 103
     "${domain}/ldap/group_allow_delete":     value => $group_allow_delete;
104
+    "${domain}/ldap/page_size":              value => $page_size;
103 105
   }
104 106
 
105 107
   keystone_domain { "${domain}":

+ 1
- 0
deployment_scripts/puppet/modules/plugin_ldap/manifests/multiple_domain.pp View File

@@ -35,6 +35,7 @@ define plugin_ldap::multiple_domain (
35 35
     group_allow_create     => $domain_params_hash['group_allow_create'],
36 36
     group_allow_update     => $domain_params_hash['group_allow_update'],
37 37
     group_allow_delete     => $domain_params_hash['group_allow_delete'],
38
+    page_size              => $domain_params_hash['page_size'],
38 39
   }
39 40
 
40 41
 }

+ 10
- 1
environment_config.yaml View File

@@ -153,9 +153,18 @@ attributes:
153 153
     description: 'LDAP attribute mapped to description.'
154 154
     weight: 105
155 155
     type: "text"
156
+  page_size:
157
+    value: '0'
158
+    label: 'Page Size Attribute'
159
+    description: 'Maximum results per page.'
160
+    weight: 110
161
+    type: "text"
162
+    regex:
163
+      source: '^[0-9]+$'
164
+      error: "Page size contains unexpected value. It must contain only numbers."
156 165
   additional_domains:
157 166
     type: "textarea"
158
-    weight: 110
167
+    weight: 115
159 168
     value: ''
160 169
     label: "List of additional Domains"
161 170
     description: "Blocks of additional domains/parameters that should be created"

Loading…
Cancel
Save