Skip to content

Commit 84f473a

Browse files
authored
Azure AuthZ/Single Resource Group Work - CLOUD (#43)
* Update env.py to take another param for single resource group * Updates for PR comments. Add authorship. Update some docs. etc. Signed-off-by: Chris Perro <cmperro@gmail.com>
1 parent 5b64506 commit 84f473a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

plugins/modules/datahub_definition_info.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@
3232
- "Chris Perro (@cmperro)"
3333
- "Webster Mudge (@wmudge)"
3434
- "Dan Chaffelson (@chaffelson)"
35+
- "Chris Perro (@cmperro)"
3536
requirements:
3637
- cdpy
3738
options:
3839
name:
3940
description:
40-
- If a name or CRN is provided, that Definition will be described.
41-
- If no name or CRN is provided, all Definitions will be listed.
41+
- If a name is provided, that Definition will be described.
42+
- If a crn is provided, that Definition will be described.
43+
- If no name provided, all Definitions will be listed.
4244
type: str
4345
required: False
4446
aliases:

plugins/modules/env.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,8 @@ def __init__(self, module):
655655
self.endpoint_access_scheme = self._get_param('endpoint_access_scheme')
656656
self.endpoint_access_subnets = self._get_param('endpoint_access_subnets')
657657

658+
self.use_single_resource_group=self._get_param('use_single_resource_group')
659+
658660
# Initialize the return values
659661
self.environment = dict()
660662

@@ -890,6 +892,8 @@ def _configure_payload(self):
890892
)
891893
if self.freeipa is not None:
892894
payload['freeIpa'] = dict(instanceCountByGroup=self.freeipa['instanceCountByGroup'])
895+
if self.use_single_resource_group:
896+
payload['resourceGroupName'] = self.resource_gp
893897

894898
return payload
895899

@@ -1007,7 +1011,8 @@ def main():
10071011
delay=dict(required=False, type='int', aliases=['polling_delay'], default=15),
10081012
timeout=dict(required=False, type='int', aliases=['polling_timeout'], default=3600),
10091013
endpoint_access_subnets=dict(required=False, type='list', elements='str'),
1010-
endpoint_access_scheme=dict(required=False, type='str', choices=['PUBLIC', 'PRIVATE'])
1014+
endpoint_access_scheme=dict(required=False, type='str', choices=['PUBLIC', 'PRIVATE']),
1015+
use_single_resource_group=dict(required=False, type='bool', default=False),
10111016

10121017
),
10131018
# TODO: Update for Azure

0 commit comments

Comments
 (0)