Skip to content

Instantly share code, notes, and snippets.

@wkharold
Created April 3, 2016 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wkharold/46d2835392d0c9ec57c3a7dffafcd485 to your computer and use it in GitHub Desktop.
Save wkharold/46d2835392d0c9ec57c3a7dffafcd485 to your computer and use it in GitHub Desktop.
top level deployment manager vpn template
{% set HD_CLUSTER = "qa" %}
resources:
- name: {{ HD_CLUSTER }}
type: network-template.jinja
properties:
ip_range: 10.xyz.0.40/29
- name: gateway-{{ HD_CLUSTER }}-vpn
type: vpn-template.jinja
properties:
address: 104.x.y.z
destcidr: 10.xyz.0.40/29
network: projects/mycluster/global/networks/gateway
peerip: 130.x.y.z
region: us-central1
- name: gateway-{{ HD_CLUSTER }}-vpn-tunnel-1
type: vpn-tunnel-template.jinja
properties:
destcidr: 10.xyz.0.40/29
network: projects/mycluster/global/networks/gateway
peerip: 104.x.y.z
region: us-central1
secret: supersecret
target: gateway-{{ HD_CLUSTER }}-vpn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment