Azure / azure_preview_modules

Azure preview modules for Ansible
https://galaxy.ansible.com/azure/azure_preview_modules
43 stars 49 forks source link

Feature Idea - modules local_network_gateways + virtual_network_gateway_connections #311

Open nergalex opened 5 years ago

nergalex commented 5 years ago
ISSUE TYPE
SUMMARY

Thank you for the module "azure_rm_virtualnetworkgateway". In order to complete the setup of a VPN GW connection, have you already developed modules associated to the Python classes below ?

Example of Python script currently used:

NetworkManagementClient(credentials, subscription_id).local_network_gateways.create_or_update(
                resource_group_name=local_gw['resource_group_name'],
                local_network_gateway_name=local_gw['local_network_gateway_name'],
                parameters={
                    'location': local_gw['location'],
                    'local_network_address_space': {
                        'address_prefixes': local_gw['local_network_address_space']
                    },
                    'gateway_ip_address': local_gw['gateway_ip_address'],
                    'tags': local_gw['tags']
                }

NetworkManagementClient(credentials, subscription_id).virtual_network_gateway_connections .create_or_update(
                resource_group_name=local_gw['resource_group_name'],
              virtual_network_gateway_connection_name=virtual_network_gateway_connection_name,
                parameters={
                    'location': local_gw['location'],
                    'tags': local_gw['tags'],
                    'virtual_network_gateway1': virtual_network_gateway,
                    'local_network_gateway2': local_network_gateway,
                    'connection_type': 'IPsec',
                    'connection_protocol': 'IKEv2',
                    'shared_key': local_gw['shared_key']
                }
            )
Fred-sun commented 5 years ago

@MyronFanQiu Please help take a look this issue when you're free! Thanks a lot!

Fred-sun commented 5 years ago

@mybayern1974 Would you please help take a look this issue when you're free! Thank you very much!

Fred-sun commented 4 years ago

@nergalex Thank you for reporting this question, but what is the purpose of reporting this question? Could you tell me more clear about it? Thank you very much!

nergalex commented 4 years ago

Hi, Use Case: connect another Cloud (private/public) to Azure with an IPsec VPN GW Action needed to automate:

Fred-sun commented 4 years ago

@haiyuazhang @gavinfish Would you please help take a look this issue? Thank you very much!

Fred-sun commented 4 years ago

@Fred-sun Thank you very much for your interest in Ansible. This repo is no longer maintained in this repository and has been migrated to https://github.com/ansible-collections/azure Please re-submit this Issue in the above repository and closed this. Thank you very much!