-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.default.mk
57 lines (45 loc) · 1.59 KB
/
config.default.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Default make configuration variables
# just in case you want to change it, do it from your Makefile
USER_CONFIG_DIR ?= .
-include $(USER_CONFIG_DIR)/config.local.mk
# Framework self-reference (relative) directory (should be set in Makefile)
#FRAMEWORK_DIR ?= .
# Default / initial goals (may also be set in Makefile)
DEFAULT_GOAL ?= init
INIT_GOAL ?= $(build-vms)
# Packer base build directory
BUILD_DIR ?= $(HOME)/.cache/packer
# Base OS installation .iso image
UBUNTU_22_ISO ?= $(HOME)/Downloads/ubuntu-22.04.3-server-amd64.iso
DEBIAN_12_ISO ?= $(HOME)/Downloads/debian-12.9.0-amd64-netinst.iso
# change default base (optional: only if you use this variable)
#BASE ?= debian
# VM defaults (for base images)
VM_TIMEZONE ?= Europe/Bucharest
VM_LOCALE ?= en_US
#VM_HOSTNAME ?= ubuntu # auto: defaults to distro name
# Default user & password
# (passed as args - NOT SECURE! set something temporary in here!)
VM_USER ?= student
VM_PASSWORD ?= student
VM_CRYPTED_PASSWORD ?= $(shell mkpasswd -m sha-512 '$(VM_PASSWORD)')
# Build modifiers
DELETE ?=
FORCE ?= $(DELETE)
DEBUG ?=
PACKER_DEBUG ?=
PAUSE ?= $(DEBUG)
# Packer invocation arguments
PACKER ?= packer
PACKER_ARGS_EXTRA ?=
PACKER_ARGS ?= -on-error=abort $(if $(PACKER_DEBUG),-debug) \
$(call _packer_var,vm_pause,$(PAUSE)) \
$(call _packer_var,vm_debug,$(DEBUG)) \
$(call _packer_var,ssh_username,$(VM_USER)) \
$(call _packer_var,ssh_password,$(VM_PASSWORD))
PACKER_ARGS += $(PACKER_ARGS_EXTRA)
# ssh goal parameters
SSH ?= ssh
SSH_USER ?= student
SSH_PORT ?= 20022
SSH_ARGS ?= -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null