Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

[WIP] Add specs for p2s vpn server configuration #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions specs/networkp2svpnserverconfiguration/ansible.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--- !ruby/object:Provider::Azure::Ansible::Config
author: audevbot
version_added: "2.9"
overrides: !ruby/object:Overrides::ResourceOverrides
P2sVpnServerConfiguration: !ruby/object:Provider::Azure::Ansible::ResourceOverride
examples: []
925 changes: 925 additions & 0 deletions specs/networkp2svpnserverconfiguration/api.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- !ruby/object:Provider::Ansible::Example
task: !ruby/object:Provider::Ansible::Task
name: azure_rm_networkp2svpnserverconfiguration
description: P2SVpnServerConfigurationDelete
code:
resource_group: myResourceGroup
virtual_wan_name: myVirtualWan
name: myP2sVpnServerConfiguration
state: absent

Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
--- !ruby/object:Provider::Ansible::Example
task: !ruby/object:Provider::Ansible::Task
name: azure_rm_networkp2svpnserverconfiguration
description: P2SVpnServerConfigurationPut
code:
resource_group: myResourceGroup
virtual_wan_name: myVirtualWan
name: myP2sVpnServerConfiguration
p2svpn_server_configuration_parameters:
properties:
vpnProtocols:
- IkeV2
vpnClientIpsecPolicies:
- saLifeTimeSeconds: '86472'
saDataSizeKilobytes: '429497'
ipsecEncryption: AES256
ipsecIntegrity: SHA256
ikeEncryption: AES256
ikeIntegrity: SHA384
dhGroup: DHGroup14
pfsGroup: PFS14
p2SVpnServerConfigVpnClientRootCertificates:
- name: p2sVpnServerConfigVpnClientRootCert1
properties:
publicCertData: >-
MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN
p2SVpnServerConfigVpnClientRevokedCertificates:
- name: p2sVpnServerConfigVpnClientRevokedCert1
properties:
thumbprint: 83FFBFC8848B5A5836C94D0112367E16148A286F
radiusServerAddress: 8.9.9.9
radiusServerSecret: 123_abc
p2SVpnServerConfigRadiusServerRootCertificates:
- name: p2sVpnServerConfigRadiusServerRootCert1
properties:
publicCertData: >-
MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM
p2SVpnServerConfigRadiusClientRootCertificates:
- name: p2sVpnServerConfigRadiusClientRootCert1
properties:
thumbprint: 83FFBFC8848B5A5836C94D0112367E16148A286F

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- !ruby/object:Provider::Azure::Example
resource: azurerm_p2s_vpn_server_configuration
prerequisites:
- !ruby/object:Provider::Azure::ExampleReference
product: resourcegroup
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networkvirtualwan
example: basic
properties:
name: "<%= get_resource_name('p2sVpnServerConfiguration', 'p2svpnserverconfig') -%>"
resource_group_name: ${azurerm_resource_group.<%= resource_id_hint -%>.name}
virtualWanName: ${azurerm_virtual_wan.<%= resource_id_hint -%>.name}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
--- !ruby/object:Provider::Azure::Example
resource: azurerm_p2s_vpn_server_configuration
prerequisites:
- !ruby/object:Provider::Azure::ExampleReference
product: resourcegroup
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networkvirtualwan
example: basic
properties:
name: "<%= get_resource_name('p2sVpnServerConfiguration', 'p2svpnserverconfig') -%>"
resource_group_name: ${azurerm_resource_group.<%= resource_id_hint -%>.name}
virtualWanName: ${azurerm_virtual_wan.<%= resource_id_hint -%>.name}
vpnProtocols: [IkeV2]
ipsecPolicies:
saLifeTimeSeconds: 86472
saDataSizeKilobytes: 429497
ipsecEncryption: AES256
ipsecIntegrity: SHA256
ikeEncryption: AES256
ikeIntegrity: SHA384
dhGroup: DHGroup14
pfsGroup: PFS14
vpnClientRootCertificates:
name: p2sVpnServerConfigVpnClientRootCert1
publicCert: MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN
clientRevokedCertificates:
name: p2sVpnServerConfigVpnClientRevokedCert1
thumbprint: 83FFBFC8848B5A5836C94D0112367E16148A286F
serverAddress: "8.9.9.9"
serverSecret: 123_abc
radiusServerRootCertificates:
name: p2sVpnServerConfigRadiusServerRootCert1
publicCert: MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM
radiusClientRootCertificates:
name: p2sVpnServerConfigRadiusClientRootCert1
thumbprint: 83FFBFC8848B5A5836C94D0112367E16148A286F
31 changes: 31 additions & 0 deletions specs/networkp2svpnserverconfiguration/terraform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
--- !ruby/object:Provider::Azure::Terraform::Config
overrides: !ruby/object:Overrides::ResourceOverrides
P2sVpnServerConfiguration: !ruby/object:Provider::Azure::Terraform::ResourceOverride
properties:
resourceGroup: !ruby/object:Provider::Azure::Terraform::PropertyOverride
name: resourceGroupName
etag: !ruby/object:Provider::Azure::Terraform::PropertyOverride
exclude: true
provisioningState: !ruby/object:Provider::Azure::Terraform::PropertyOverride
exclude: true
p2svpnGateways: !ruby/object:Provider::Azure::Terraform::PropertyOverride
exclude: true
acctests:
- !ruby/object:Provider::Azure::Terraform::AccTestDefinition
name: basic
steps: [basic]
- !ruby/object:Provider::Azure::Terraform::AccTestDefinition
name: complete
steps: [complete]
datasources: !ruby/object:Overrides::ResourceOverrides
P2sVpnServerConfiguration: !ruby/object:Provider::Azure::Terraform::ResourceOverride
properties:
resourceGroupName: !ruby/object:Provider::Azure::Terraform::PropertyOverride
description: The Name of the Resource Group where the App Service exists.
acctests:
- !ruby/object:Provider::Azure::Terraform::AccTestDefinition
name: basic
steps: [basic]
- !ruby/object:Provider::Azure::Terraform::AccTestDefinition
name: complete
steps: [complete]
10 changes: 10 additions & 0 deletions specs/networkvirtualwan/examples/terraform/basic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- !ruby/object:Provider::Azure::Example
resource: azurerm_virtual_wan
prerequisites:
- !ruby/object:Provider::Azure::ExampleReference
product: resourcegroup
example: basic
properties:
name: "<%= get_resource_name('virtualwan', 'vwan') -%>"
resource_group_name: ${azurerm_resource_group.<%= resource_id_hint -%>.name}
location: ${azurerm_resource_group.<%= resource_id_hint -%>.location}