Skip to content

Commit

Permalink
Add Image ID as a parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
muratugureminoglu committed May 30, 2024
1 parent 6c26336 commit 663e99e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcp-jinja-template/antmedia-instance-template.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resources:
boot: true
autoDelete: true
initializeParams:
sourceImage: projects/{{ env["project"] }}/global/images/ams-marketplace282
sourceImage: projects/{{ env["project"] }}/global/images/{{ properties["image_id"] }}
networkInterfaces:
- network: $(ref.antmedia-vpc-network.selfLink)
subnetwork: $(ref.origin-subnet.selfLink)
Expand Down Expand Up @@ -53,7 +53,7 @@ resources:
boot: true
autoDelete: true
initializeParams:
sourceImage: projects/{{ env["project"] }}/global/images/ams-marketplace282
sourceImage: projects/{{ env["project"] }}/global/images/{{ properties["image_id"] }}
networkInterfaces:
- network: $(ref.antmedia-vpc-network.selfLink)
subnetwork: $(ref.edge-subnet.selfLink)
Expand Down
4 changes: 4 additions & 0 deletions gcp-jinja-template/antmedia.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ limitations under the License.
{% set mongodb_machine_type = "e2-standard-2" %}
{% set origin_machine_type = "c2d-standard-4" %}
{% set edge_machine_type = "c2d-standard-4" %}
{% set image_id = "ams-latest" %}



resources:
Expand All @@ -32,6 +34,8 @@ resources:
zone: {{ default_zone }}
origin_machine_type: {{ origin_machine_type }}
edge_machine_type: {{ edge_machine_type }}
image_id: {{ image_id }}

- name: antmedia-instance-group
type: antmedia-instance-group-template.jinja
properties:
Expand Down

0 comments on commit 663e99e

Please sign in to comment.