Skip to content

Instantly share code, notes, and snippets.

@schowStriim
Last active March 15, 2023 13:31
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 schowStriim/42227167e9036c2fef47b652c73e7a0b to your computer and use it in GitHub Desktop.
Save schowStriim/42227167e9036c2fef47b652c73e7a0b to your computer and use it in GitHub Desktop.
{
"variables":{
"company_name": "{{env `company_name`}}",
"cluster_name": "{{env `cluster_name`}}",
"license_key": "{{env `license_key`}}",
"product_key": "{{env `product_key`}}",
"keystore_pass": "{{env `keystore_pass`}}",
"admin_pass": "{{env `admin_pass`}}",
"sys_pass": "{{env `sys_pass`}}",
"mdr_type": "{{env `mdr_type`}}"
},
"builders":[
{
"type": "googlecompute",
"project_id": "<project_id>",
"source_image": "centos-7-v20220719",
"zone": "us-central1-a",
"image_name": "gcp-custom-striim-image-{{timestamp}}",
"ssh_username": "dev-gcp-image",
"account_file": "account_key.json"
}
],
"provisioners":[
{
"only": ["googlecompute"],
"type": "file",
"source": "./striim_install.sh",
"destination": "/tmp/striim_install.sh"
},
{
"type": "shell",
"inline": ["sudo bash /tmp/striim_install.sh {{user `company_name`}} {{user `cluster_name`}} {{user `license_key`}} {{user `product_key`}} {{user `keystore_pass`}} {{user `sys_pass`}} {{user `admin_pass`}} {{user `mdr_type`}}"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment