Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion plugins/modules/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@
aliases:
- proxy_config
- proxy_config_name
vpc_project_id:
description:
- GCP project id that hosts the VPC when using shared VPC.
type: str
required: False
force:
description:
- Flag to remove CDP and cloud provider resources, but ignore cloud provider resources deletion errors.
Expand Down Expand Up @@ -670,6 +675,7 @@ def __init__(self, module):
self.freeipa = self._get_param('freeipa')
self.proxy = self._get_param('proxy')
self.project = self._get_param('project')
self.vpc_project_id = self._get_param('vpc_project_id')

self.delay = self._get_param('delay')
self.timeout = self._get_param('timeout')
Expand Down Expand Up @@ -900,7 +906,7 @@ def _configure_payload(self):
payload['existingNetworkParams'] = dict(
networkName=self.vpc_id,
subnetNames=self.subnet_ids,
sharedProjectId=self.project
sharedProjectId=self.vpc_project_id if self.vpc_project_id else self.project
)
payload['usePublicIp'] = self.public_ip
payload['logStorage'] = dict(serviceAccountEmail=self.log_identity, storageLocationBase=self.log_location)
Expand Down Expand Up @@ -1033,6 +1039,7 @@ def main():
), default=dict(instanceCountByGroup=2)),
project=dict(required=False, type='str'),
proxy=dict(required=False, type='str', aliases=['[proxy_config', 'proxy_config_name']),
vpc_project_id=dict(required=False, type='str'),
cascade=dict(required=False, type='bool', default=False, aliases=['cascading']),
force=dict(required=False, type='bool', default=False),
wait=dict(required=False, type='bool', default=True),
Expand Down