mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Merge pull request #219 from caquino/caquino/builder-version-hostname
fix builder to set image version and hostname on build
This commit is contained in:
@ -1,7 +1,4 @@
|
||||
{
|
||||
"variables": {
|
||||
"home": "{{env `HOME`}}"
|
||||
},
|
||||
"builders": [{
|
||||
"name": "pwnagotchi",
|
||||
"type": "arm-image",
|
||||
@ -22,7 +19,8 @@
|
||||
},
|
||||
{
|
||||
"type":"ansible-local",
|
||||
"playbook_file": "pwnagotchi.yml"
|
||||
"playbook_file": "pwnagotchi.yml",
|
||||
"command": "ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 PWN_VERSION={{user `pwn_version`}} PWN_HOSTNAME={{user `pwn_hostname`}} ansible-playbook"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
|
@ -5,7 +5,7 @@
|
||||
vars:
|
||||
pwnagotchi:
|
||||
hostname: "{{ lookup('env', 'PWN_HOSTNAME') | default('pwnagotchi', true) }}"
|
||||
version: "{{ lookup('env', 'PWN_VERSION') | default('master', true) }} "
|
||||
version: "{{ lookup('env', 'PWN_VERSION') | default('master', true) }}"
|
||||
system:
|
||||
boot_options:
|
||||
- "dtoverlay=dwc2"
|
||||
|
Reference in New Issue
Block a user