Skip to content

Commit

Permalink
Update Packer stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
damiendart committed Dec 22, 2023
1 parent 74b9b3a commit 4679e47
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,21 @@ tasks:
desc: 'Run all CI-related tasks'

dependencies:
cmds:
- task: 'dependencies:packer'
- task: 'dependencies:python'
desc: 'Install project dependencies'

dependencies:python:
cmds:
- '.venv/bin/python -m pip install -r requirements.txt'
desc: 'Install Python dependencies'

dependencies:packer:
cmds:
- 'packer init misc/packer/*.hcl'
desc: 'Install Packer plugin binaries'

lint:
cmds:
- task: 'lint:ansible'
Expand Down
9 changes: 9 additions & 0 deletions misc/packer/ubuntu-server-virtualbox.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
# free and unencumbered software released into the public domain. For
# more information, please refer to the accompanying "UNLICENCE" file.

packer {
required_plugins {
virtualbox = {
version = "~> 1"
source = "github.com/hashicorp/virtualbox"
}
}
}

variable "netplan_configuration" {
description = "A HCL-formatted netplan network configuration to apply to the virtual machine."
# The default netplan network configuration provided assumes that the
Expand Down
4 changes: 2 additions & 2 deletions roles/development/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ development__binary_archives:

# See <https://developer.hashicorp.com/packer/downloads>.
- binaries: 'packer'
checksum: 'sha256:6cd5269c4245aa8c99e551d1b862460d63fe711c58bec618fade25f8492e80d9'
url: 'https://releases.hashicorp.com/packer/1.9.4/packer_1.9.4_linux_amd64.zip'
checksum: 'sha256:a8442e7041db0a7db48f468e353ee07fa6a7b35276ec62f60813c518ca3296c1'
url: 'https://releases.hashicorp.com/packer/1.10.0/packer_1.10.0_linux_amd64.zip'

# See <https://github.com/koalaman/shellcheck/releases>.
- checksum: 'sha256:700324c6dd0ebea0117591c6cc9d7350d9c7c5c287acbad7630fa17b1d4d9e2f'
Expand Down

0 comments on commit 4679e47

Please sign in to comment.