changes for gcp

This commit is contained in:
Dave Horton
2023-04-09 21:17:16 -04:00
parent a7c921e700
commit bece52b40e
3 changed files with 9 additions and 12 deletions
+5 -6
View File
@@ -1,7 +1,10 @@
{ {
"variables": { "variables": {
"cloud_provider": "gcp", "cloud_provider": "gcp",
"region": "us-east-1", "project_id": "drachtio-cpaas",
"source_image_family": "debian-11",
"source_image_project_id": "debian-cloud",
"image_zone": "us-central1-c",
"ssh_username": "admin", "ssh_username": "admin",
"ami_description": "jambonz-mini (all-in-one server)", "ami_description": "jambonz-mini (all-in-one server)",
"instance_type": "c2-standard-4", "instance_type": "c2-standard-4",
@@ -22,11 +25,7 @@
"rtp_engine_min_port": "40000", "rtp_engine_min_port": "40000",
"rtp_engine_max_port": "60000", "rtp_engine_max_port": "60000",
"mediaserver_name" : "jambonz", "mediaserver_name" : "jambonz",
"preferred_codec_list" : "PCMU,PCMA,OPUS,G722", "preferred_codec_list" : "PCMU,PCMA,OPUS,G722"
"project_id": "drachtio-cpaas",
"source_image_family": "debian-11",
"source_image_project_id": "debian-cloud",
"image_zone": "us-central1-c"
}, },
"builders": [ "builders": [
{ {
+1 -1
View File
@@ -79,7 +79,7 @@ uuid=$(uuidgen)
sudo sed -i -e "s/\(.*\)JWT-SECRET-GOES_HERE\(.*\)/\1$uuid\2/g" /home/admin/apps/ecosystem.config.js sudo sed -i -e "s/\(.*\)JWT-SECRET-GOES_HERE\(.*\)/\1$uuid\2/g" /home/admin/apps/ecosystem.config.js
#Add BasicAuth password for Jaeger #Add BasicAuth password for Jaeger
sudo htpasswd -b -c /etc/nginx/.htpasswd $JAEGER_USERNAME "$JAEGER_PASSWORD" sudo htpasswd -b -c /etc/nginx/.htpasswd admin "JambonzR0ck$"
# configure webapp # configure webapp
if [[ -z $DNS_NAME ]]; then if [[ -z $DNS_NAME ]]; then
+3 -5
View File
@@ -1,8 +1,6 @@
image = "packer-1680730500" image = "packer-1681065267"
region = "us-central1" region = "us-central1"
zone = "us-central1-b" zone = "us-central1-a"
project = "drachtio-cpaas" project = "drachtio-cpaas"
dns_name = "jambonz.me" dns_name = "jambonz.me"
instance_type = "e2-medium" instance_type = "e2-medium"
jaeger_username = "admin"
jaeger_password = "JambonzR0ck$"