-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
146 lines (105 loc) · 4.33 KB
/
Makefile
File metadata and controls
146 lines (105 loc) · 4.33 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
.if !defined(BSDKIT_ROOT_URL)
BSDKIT_ROOT_URL=https://hub.olgeni.com/FreeBSD
.endif
.if !defined(BSDKIT_VERSION)
BSDKIT_VERSION=14.3
.endif
.if !defined(BSDKIT_PKGSET)
BSDKIT_PKGSET=nox11
.endif
DISK0=da0
DISK1=da1
DISK2=da2
all:
lint:
@ansible-lint -c ansible-lint.yml
start-vm:
@${.CURDIR}/bsdkit-vbox start
stop-vm:
@${.CURDIR}/bsdkit-vbox stop
rebuild-vm:
@${.CURDIR}/bsdkit-vbox poweroff || :
@${.CURDIR}/bsdkit-vbox destroy || :
@${.CURDIR}/bsdkit-vbox create
@${.CURDIR}/bsdkit-vbox start
restart-vm:
@${.CURDIR}/bsdkit-vbox stop || :
@${.CURDIR}/bsdkit-vbox start
purge-vm:
@${.CURDIR}/bsdkit-vbox purge || :
destroy-vm:
@${.CURDIR}/bsdkit-vbox poweroff || :
@${.CURDIR}/bsdkit-vbox destroy || :
take-snapshot:
@${.CURDIR}/bsdkit-vbox take-snapshot
list-snapshots:
@${.CURDIR}/bsdkit-vbox list-snapshots
restore-snapshot:
@${.CURDIR}/bsdkit-vbox restore-snapshot
delete-snapshot:
@${.CURDIR}/bsdkit-vbox delete-snapshot
sync-vm:
@${.CURDIR}/bsdkit-vbox sync-vm
logcat:
@${.CURDIR}/bsdkit-vbox logcat
shell:
@${.CURDIR}/bsdkit-vbox shell
install-gpt-zfs-1:
${.CURDIR}/bsdkit-vbox remote-deploy install-gpt-zfs -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} ${DISK0}
install-gpt-zfs-2:
${.CURDIR}/bsdkit-vbox remote-deploy install-gpt-zfs -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} ${DISK0} ${DISK1}
install-gpt-zfs-3:
${.CURDIR}/bsdkit-vbox remote-deploy install-gpt-zfs -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} ${DISK0} ${DISK1} ${DISK2}
install-mbr-zfs-1:
${.CURDIR}/bsdkit-vbox remote-deploy install-mbr-zfs -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} ${DISK0}
install-mbr-zfs-2:
${.CURDIR}/bsdkit-vbox remote-deploy install-mbr-zfs -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} ${DISK0} ${DISK1}
install-mbr-zfs-3:
${.CURDIR}/bsdkit-vbox remote-deploy install-mbr-zfs -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} ${DISK0} ${DISK1} ${DISK2}
install-zfs-1:
${.CURDIR}/bsdkit-vbox remote-deploy install-zfs -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} ${DISK0}
install-zfs-2:
${.CURDIR}/bsdkit-vbox remote-deploy install-zfs -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} ${DISK0} ${DISK1}
install-zfs-3:
${.CURDIR}/bsdkit-vbox remote-deploy install-zfs -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} ${DISK0} ${DISK1} ${DISK2}
install-mbr-ufs-single-1:
${.CURDIR}/bsdkit-vbox remote-deploy install-mbr-ufs -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} single ${DISK0}
install-gpt-ufs-single-1:
${.CURDIR}/bsdkit-vbox remote-deploy install-gpt-ufs -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} single ${DISK0}
install-gpt-ufs-multi-1:
${.CURDIR}/bsdkit-vbox remote-deploy install-gpt-ufs -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} multi ${DISK0}
install-mbr-ufs-multi-1:
${.CURDIR}/bsdkit-vbox remote-deploy install-mbr-ufs -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} multi ${DISK0}
install-mbr-ufs-gmirror-single-2:
${.CURDIR}/bsdkit-vbox remote-deploy install-mbr-ufs-gmirror -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} single gm0 ${DISK0} ${DISK1}
install-mbr-ufs-gmirror-single-3:
${.CURDIR}/bsdkit-vbox remote-deploy install-mbr-ufs-gmirror -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} single gm0 ${DISK0} ${DISK1} ${DISK2}
install-mbr-ufs-gmirror-multi-2:
${.CURDIR}/bsdkit-vbox remote-deploy install-mbr-ufs-gmirror -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} multi gm0 ${DISK0} ${DISK1}
install-mbr-ufs-gmirror-multi-3:
${.CURDIR}/bsdkit-vbox remote-deploy install-mbr-ufs-gmirror -r ${BSDKIT_ROOT_URL} \
-z ${BSDKIT_PKGSET} -v ${BSDKIT_VERSION} multi gm0 ${DISK0} ${DISK1} ${DISK2}
sysprep-aws:
${.CURDIR}/bsdkit-vbox remote-exec sysprep -t aws
sysprep-digitalocean:
${.CURDIR}/bsdkit-vbox remote-exec sysprep -t digitalocean
image-aws-zfs: rebuild-vm install-gpt-zfs-1 restart-vm sync-vm sysprep-aws
image-aws-ufs: rebuild-vm install-gpt-ufs-single-1 restart-vm sync-vm sysprep-aws
image-digitalocean-zfs: rebuild-vm install-gpt-zfs-1 restart-vm sync-vm sysprep-digitalocean
image-digitalocean-ufs: rebuild-vm install-gpt-ufs-single-1 restart-vm sync-vm sysprep-digitalocean