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

add specs for p2s vpn gateway #122

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/networkp2svpngateway/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
P2sVpnGateway: !ruby/object:Provider::Azure::Ansible::ResourceOverride
examples: []
383 changes: 383 additions & 0 deletions specs/networkp2svpngateway/api.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- !ruby/object:Provider::Ansible::Example
task: !ruby/object:Provider::Ansible::Task
name: azure_rm_networkp2svpngateway
description: P2SVpnGatewayDelete
code:
resource_group: myResourceGroup
name: myP2svpnGateway
state: absent

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
--- !ruby/object:Provider::Ansible::Example
task: !ruby/object:Provider::Ansible::Task
name: azure_rm_networkp2svpngateway
description: P2SVpnGatewayPut
code:
resource_group: myResourceGroup
name: myP2svpnGateway
p2svpn_gateway_parameters:
location: West US
tags:
key1: value1
properties:
virtualHub:
id: >-
/subscriptions/{{ subscription_id }}/resourceGroups/{{ resource_group
}}/providers/Microsoft.Network/virtualHubs/{{ virtual_hub_name }}
p2SVpnServerConfiguration:
id: >-
/subscriptions/{{ subscription_id }}/resourceGroups/{{ resource_group
}}/providers/Microsoft.Network/virtualWans/{{ virtual_wan_name
}}/p2sVpnServerConfigurations/{{ p2s_vpn_server_configuration_name }}
vpnClientAddressPool:
addressPrefixes:
- 101.3.0.0/16
customRoutes:
addressPrefixes:
- 101.168.0.6/32
vpnGatewayScaleUnit: '1'

19 changes: 19 additions & 0 deletions specs/networkp2svpngateway/examples/terraform/basic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--- !ruby/object:Provider::Azure::Example
resource: azurerm_p2s_vpn_gateway
prerequisites:
- !ruby/object:Provider::Azure::ExampleReference
product: resourcegroup
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networkp2svpnserverconfiguration
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networkvirtualhub
example: basic
properties:
name: "<%= get_resource_name('p2svpngateway', 'gateway') -%>"
resource_group_name: ${azurerm_resource_group.<%= resource_id_hint -%>.name}
location: ${azurerm_resource_group.<%= resource_id_hint -%>.location}
virtual_hub_id: ${azurerm_virtual_hub.<%= resource_id_hint -%>}.id
p2svpn_server_configuration_id: ${azurerm_p2s_vpn_server_configuration.<%= resource_id_hint -%>.id}
vpn_client_address_pool_prefixes: ["101.3.0.0/16"]
23 changes: 23 additions & 0 deletions specs/networkp2svpngateway/examples/terraform/complete.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
--- !ruby/object:Provider::Azure::Example
resource: azurerm_p2s_vpn_gateway
prerequisites:
- !ruby/object:Provider::Azure::ExampleReference
product: resourcegroup
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networkp2svpnserverconfiguration
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networkvirtualhub
example: basic
properties:
name: "<%= get_resource_name('p2svpngateway', 'gateway') -%>"
resource_group_name: ${azurerm_resource_group.<%= resource_id_hint -%>.name}
location: ${azurerm_resource_group.<%= resource_id_hint -%>.location}
virtual_hub_id: ${azurerm_virtual_hub.<%= resource_id_hint -%>}.id
p2svpn_server_configuration_id: ${azurerm_p2s_vpn_server_configuration.<%= resource_id_hint -%>.id}
vpn_client_address_pool_prefixes: ["101.3.0.0/16"]
custom_route_address_prefixes: ["101.168.0.6/32"]
scale_unit: 1
tags:
env: "test"
47 changes: 47 additions & 0 deletions specs/networkp2svpngateway/terraform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
--- !ruby/object:Provider::Azure::Terraform::Config
overrides: !ruby/object:Overrides::ResourceOverrides
P2sVpnGateway: !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
type: !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]
- !ruby/object:Provider::Azure::Terraform::AccTestDefinition
name: update
steps: [basic, complete]
document_examples:
- !ruby/object:Provider::Azure::Terraform::DocumentExampleReference
title: Example Usage
example_name: basic
resource_name_hints:
resourceGroups: example-rg
p2svpnGateway: example-p2s-vpn-gateway
location: West US2
datasources: !ruby/object:Overrides::ResourceOverrides
P2sVpnGateway: !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]
- !ruby/object:Provider::Azure::Terraform::AccTestDefinition
name: update
steps: [basic, complete]
datasource_example_outputs:
virtual_hub_id: id
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}
20 changes: 20 additions & 0 deletions specs/networkvirtualhub/examples/terraform/basic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- !ruby/object:Provider::Azure::Example
resource: azurerm_virtual_hub
prerequisites:
- !ruby/object:Provider::Azure::ExampleReference
product: resourcegroup
example: basic
- !ruby/object:Provider::Azure::ExampleReference
product: networkvirtualwan
example: basic
properties:
name: "<%= get_resource_name('virtualHubs', 'virtualhub') -%>"
resource_group: "${azurerm_resource_group.<%= resource_id_hint -%>.name}"
location: "${azurerm_resource_group.<%= resource_id_hint -%>.location}"
address_prefix: "10.0.1.0/24"
virtual_wan:
id: "${azurerm_virtual_wan.<%= resource_id_hint -%>.id}"
route_table:
routes:
address_prefixes: ["10.0.2.0/24", "10.0.3.0/24"]
next_hop_ip_address: "10.0.4.5"
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}