adamrushuk / Packer-Templates

Packer Template examples

Home Page:https://adamrushuk.github.io/packer-example-windows/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Packer-Templates

Packer Template examples to accompany https://adamrushuk.github.io/packer-example-windows/

Azure Windows Image

To create an example Azure Windows image, complete the following steps:

  1. Set required values in variables section of azure-windows-2012r2.json
  2. Run commands in Scripts\azure-prep.ps1 to:
    1. Login to Azure
    2. Create a Service Principle for Packer
    3. Set Azure environment variables
    4. Create a Resource Group for VM image
  3. Run .\Invoke-Packer.ps1 -Path "azure-windows-2012r2.json"

Azure Ubuntu Image

To create an example Azure Ubuntu image, complete the following steps:

  1. Set required values in variables section of azure-ubuntu.json
  2. Run commands in Scripts\azure-prep.ps1 to:
    1. Login to Azure
    2. Create a Service Principle for Packer
    3. Set Azure environment variables
    4. Create a Resource Group for VM image
  3. Run .\Invoke-Packer.ps1 -Path "azure-ubuntu.json"

About

Packer Template examples

https://adamrushuk.github.io/packer-example-windows/

License:MIT License


Languages

Language:PowerShell 67.7%Language:Shell 24.0%Language:Batchfile 5.0%Language:Ruby 3.4%