Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 705 Bytes

README.md

File metadata and controls

41 lines (35 loc) · 705 Bytes

packer-digitalocean

  • Developed with Packer 1.3.5.

1. Create variables.json

{
  "token": "DIGITALOCEAN_API_TOKEN",
  "build_region": "nyc1",
  "snapshot_regions": "nyc1,sfo2"
}

2. Install Ansible Roles from Ansible Galaxy

$ make install
or
$ ansible-galaxy install -r ansible/requirements.yml

3. (Optional) Inspect Packer Images

$ make inspect
or
$ packer inspect images/ubuntu/base.json

4. Validate Packer Template

$ make validate
or
$ packer validate -var-file variables.json images/ubuntu/base.json

5. Build Packer Template

$ make build
or
$ packer build -var-file variables.json images/ubuntu/base.json