github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/terraform/gcp/packer.json (about) 1 { 2 "variables": { 3 "project": "{{env `GOOGLE_PROJECT`}}", 4 "account_file": "{{env `GOOGLE_APPLICATION_CREDENTIALS`}}", 5 "zone": "us-east1-b", 6 "disk_size_gb": "10", 7 "source_image_family": "ubuntu-1604-lts" 8 }, 9 "builders": [ 10 { 11 "name": "hashistack", 12 "type": "googlecompute", 13 "account_file": "{{user `account_file`}}", 14 "project_id": "{{user `project`}}", 15 "source_image_family": "{{user `source_image_family`}}", 16 "image_description": "HashiStack Image for Getting Started with HashiCorp Nomad", 17 "image_name": "hashistack", 18 "disk_size": "{{user `disk_size_gb`}}", 19 "machine_type": "n1-standard-1", 20 "state_timeout": "15m", 21 "ssh_username": "ubuntu", 22 "zone": "{{user `zone`}}" 23 } 24 ], 25 "provisioners": [ 26 { 27 "type": "shell", 28 "inline": [ 29 "sudo mkdir /ops", 30 "sudo chmod 777 /ops" 31 ] 32 }, 33 { 34 "type": "file", 35 "source": "../shared", 36 "destination": "/ops" 37 }, 38 { 39 "type": "file", 40 "source": "../examples", 41 "destination": "/ops" 42 }, 43 { 44 "type": "shell", 45 "script": "../shared/scripts/setup.sh" 46 } 47 ] 48 } 49