|
91 | 91 | - Creates a CDE endpoint (Load Balancer) in a publicly accessible subnet |
92 | 92 | type: bool |
93 | 93 | required: False |
| 94 | + loadbalancer_ips: |
| 95 | + description: |
| 96 | + - List of CIDRs allowed to access the load balancer. |
| 97 | + type: list |
| 98 | + elements: str |
| 99 | + required: False |
94 | 100 | enable_workload_analytics: |
95 | 101 | description: |
96 | 102 | - If set false, diagnostic information about job and query execution is sent to Cloudera Workload Manager |
|
134 | 140 | required: False |
135 | 141 | whitelist_ips: |
136 | 142 | description: |
137 | | - - List of CIDRs that would be allowed to access kubernetes master API server |
| 143 | + - List of CIDRs that would be allowed to access Kubernetes master API server |
138 | 144 | type: array |
139 | 145 | elements: str |
140 | 146 | required: False |
@@ -347,6 +353,7 @@ def __init__(self, module): |
347 | 353 | self.tags = self._get_param('tags') |
348 | 354 | self.use_ssd = self._get_param('use_ssd') |
349 | 355 | self.whitelist_ips = self._get_param('whitelist_ips') |
| 356 | + self.loadbalancer_ips = self._get_param('loadbalancer_ips') |
350 | 357 |
|
351 | 358 | self.state = self._get_param('state') |
352 | 359 | self.force = self._get_param('force') |
@@ -440,6 +447,7 @@ def _enable_service(self): |
440 | 447 | maximum_spot_instances=self.maximum_spot_instances, |
441 | 448 | chart_value_overrides=self.chart_value_overrides, |
442 | 449 | enable_public_endpoint=self.enable_public_endpoint, |
| 450 | + loadbalancer_allowlist=self.loadbalancer_ips, |
443 | 451 | enable_workload_analytics=self.enable_workload_analytics, |
444 | 452 | initial_instances=self.initial_instances, |
445 | 453 | initial_spot_instances=self.initial_spot_instances, |
@@ -493,6 +501,7 @@ def main(): |
493 | 501 | maximum_spot_instances=dict(required=False, type='int', default=0), |
494 | 502 | chart_value_overrides=dict(required=False, type='list', default=None), |
495 | 503 | enable_public_endpoint=dict(required=False, type='bool', default=True), |
| 504 | + loadbalancer_ips=dict(required=False, type='list', elements='str', default=None), |
496 | 505 | enable_workload_analytics=dict(required=False, type='bool', default=True), |
497 | 506 | initial_instances=dict(required=False, type='int', default=1), |
498 | 507 | initial_spot_instances=dict(required=False, type='int', default=0), |
|
0 commit comments