Created
November 20, 2018 19:04
-
-
Save anyulled/342268dbf7b68c0d9d884ad508e4ac50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports: | |
- path: autonetwork-template.jinja | |
- path: customnetwork-template.jinja | |
- path: subnetwork-template.jinja | |
- path: firewall-template.jinja | |
- path: instance-template.jinja | |
resources: | |
- name: mynetwork | |
type: autonetwork-template.jinja | |
- name: mynetwork-allow-http-ssh-rdp | |
type: firewall-template.jinja | |
properties: | |
network: $(ref.mynetwork.selfLink) | |
IPProtocol: TCP | |
Port: [22, 80, 3389] | |
- name: mynetwork-allow-icmp | |
type: firewall-template.jinja | |
properties: | |
network: $(ref.mynetwork.selfLink) | |
IPProtocol: ICMP | |
Port: [] | |
- name: managementnet | |
type: customnetwork-template.jinja | |
- name: managementsubnet-us | |
type: subnetwork-template.jinja | |
properties: | |
ipCidrRange: 10.130.0.0/20 | |
network: $(ref.managementnet.selfLink) | |
region: us-central1 | |
- name: managementnet-allow-http-ssh-rdp | |
type: firewall-template.jinja | |
properties: | |
network: $(ref.managementnet.selfLink) | |
IPProtocol: TCP | |
Port: [22, 80, 3389] | |
- name: managementnet-allow-icmp | |
type: firewall-template.jinja | |
properties: | |
network: $(ref.managementnet.selfLink) | |
IPProtocol: ICMP | |
Port: [] | |
- name: privatenet | |
type: customnetwork-template.jinja | |
- name: privatesubnet-us | |
type: subnetwork-template.jinja | |
properties: | |
ipCidrRange: 172.16.0.0/24 | |
network: $(ref.privatenet.selfLink) | |
region: us-central1 | |
- name: privatesubnet-eu | |
type: subnetwork-template.jinja | |
properties: | |
ipCidrRange: 172.20.0.0/24 | |
network: $(ref.privatenet.selfLink) | |
region: europe-west1 | |
- name: privatenet-allow-http-ssh-rdp | |
type: firewall-template.jinja | |
properties: | |
network: $(ref.privatenet.selfLink) | |
IPProtocol: TCP | |
Port: [22, 80, 3389] | |
- name: privatenet-allow-icmp | |
type: firewall-template.jinja | |
properties: | |
network: $(ref.privatenet.selfLink) | |
IPProtocol: ICMP | |
Port: [] | |
- name: mynet-us-vm | |
type: instance-template.jinja | |
properties: | |
zone: us-central1-a | |
machineType: n1-standard-1 | |
network: $(ref.mynetwork.selfLink) | |
subnetwork: regions/us-central1/subnetworks/mynetwork | |
- name: mynet-eu-vm | |
type: instance-template.jinja | |
properties: | |
zone: europe-west1-d | |
machineType: n1-standard-1 | |
network: $(ref.mynetwork.selfLink) | |
subnetwork: regions/europe-west1/subnetworks/mynetwork | |
- name: privatenet-us-vm | |
type: instance-template.jinja | |
properties: | |
zone: us-central1-a | |
machineType: n1-standard-1 | |
network: $(ref.privatenet.selfLink) | |
subnetwork: $(ref.privatesubnet-us.selfLink) | |
- name: managementnet-us-vm | |
type: instance-template.jinja | |
properties: | |
zone: us-central1-a | |
machineType: n1-standard-1 | |
network: $(ref.managementnet.selfLink) | |
subnetwork: $(ref.managementsubnet-us.selfLink) |
I would probably need to fix it
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does this deploy? I have been getting this error
(gcloud.deployment-manager.deployments.create) Error in Operation [operation-1566814589133-591027303a2b0-fcb94484-c99d4ebd]: errors:
location: /deployments/gcpnet/manifests/manifest-1566814589204
message: |-
Manifest expansion encountered the following errors: while parsing a block mapping
in "", line 2, column 3:
- name: mynet-us-vm
^
expected , but found ''
in "", line 6, column 5:
zone: us-central1-a
^ Resource: config