Jarrod Johnson
d40426ff54
More cleanly error on unknown media
...
Rather than raise ugly unexpected
errors and pollute trace log,
cleanly handle the likelihood
of unknown media.
2020-06-18 11:11:53 -04:00
Jarrod Johnson
1c579723cc
Check current SMM IP before pushing config
...
If the user requests the same ip address that
is already present, leave the network configuration
alone.
2020-06-18 09:02:09 -04:00
Jarrod Johnson
e1270b2926
Do not seal to PCR 7
...
At least without secureboot, PCR 7 is not defined.
This would potentially be worth a conditional to
check on secureboot.
2020-06-17 16:23:13 -04:00
Jarrod Johnson
d4736e0aad
Do not respond to deployment calls without quorum
2020-06-17 11:09:05 -04:00
Jarrod Johnson
86de9ce276
Do not answer deploy solicit without quorum
...
If we are not in quorum, we cannot provide
credible answers to deployment.
2020-06-17 11:07:54 -04:00
Jarrod Johnson
231582dd0f
Workaround mtools on cluster fs
...
When a lock is acquired by mtools,
it does not ensure it releases the
lock before exit.
Workaround this by doing a blocking
lock and unlock after any
invocation of mtools.
2020-06-16 16:36:02 -04:00
Jarrod Johnson
895430a89c
Remove systemd management of /var/lib/confluent
...
systemd was too easily confused by the state
directory, remove it.
2020-06-16 09:16:01 -04:00
Jarrod Johnson
e1de56f19b
Correct typo in osimage.py
...
Wrong variable name...
2020-06-12 14:43:00 -04:00
Jarrod Johnson
fc7ad4b028
Generate different boot.cfg for esxi
...
media boot and pxe boot need
two different strategies for module
location. Print the two cfg files
with the respectively useful
values.
2020-06-12 14:27:37 -04:00
Jarrod Johnson
ab04ad85e8
Correct filename typo
2020-06-12 12:13:31 -04:00
Jarrod Johnson
cb19425435
Import media world-readable
...
In the absence of extensions,
libarchive assumes ISO content
is private. Always make content
world readable for the sake of
confluent-public serving.
2020-06-12 11:54:37 -04:00
Jarrod Johnson
b8dcfbae45
Move esxi customization back to include
...
This makes modding the template a bit safer and
more powerful.
It seems it was incorrect that the issue in esxi6
was not due to %include and is just a fact of life.
2020-06-12 11:36:56 -04:00
Jarrod Johnson
92913e1119
Fix path to kernel in boot.cfg
...
esxi was pointed to the wrong
location.
2020-06-12 11:12:57 -04:00
Jarrod Johnson
76f256a344
Fix missing quote that broke build
2020-06-12 10:36:06 -04:00
Jarrod Johnson
207065aab3
Fix more permission problems
...
Some ESXi contents that need to
be world readable are fixed.
2020-06-12 09:55:25 -04:00
Jarrod Johnson
5129b9fe9b
Write more useful boot.cfg
...
ESXi should access using relative
path, rather than going to root
for everything.
2020-06-12 09:34:52 -04:00
Jarrod Johnson
458d6284d1
Dulpicate esxi7 to esxi6
2020-06-11 17:18:28 -04:00
Jarrod Johnson
db7c5adf8d
Add PXE to esxi os images
...
This will attempt to use
ipxe correctly when PXE
initiates the deployment.
2020-06-11 17:14:14 -04:00
Jarrod Johnson
68f000838e
Relocate boot.ipxe
...
It looks a bit weird in the linux and outright bizarre
in the vmware case.
2020-06-11 15:28:45 -04:00
Jarrod Johnson
0849f20d60
Add stub initprofile.sh
...
While not needed, stub it out for code to
be extended if needed.
2020-06-11 13:58:01 -04:00
Jarrod Johnson
85b01ccec5
Switch to overwrite vmfs
...
esxi installs frequently fail unless overwritevmfs is
specified
2020-06-11 13:45:07 -04:00
Jarrod Johnson
198d6a795f
Add runweasel to esxi
...
Early boot behavior is influenced by the
real kernel command line. Without /bootmodules things
fail.
2020-06-11 13:33:15 -04:00
Jarrod Johnson
09db9f5a25
Pull ks.cfg manipulation into scripts
...
This make it easier to customize rather than being
in addons.tgz
2020-06-11 10:29:22 -04:00
Jarrod Johnson
654932efb6
Modify the correct line for ks manipulation
2020-06-11 10:26:16 -04:00
Jarrod Johnson
f78b358cd7
Try to adapt for esxi6.7
...
ESXi 6.7 had further restrictions
2020-06-11 09:26:40 -04:00
Jarrod Johnson
8e203723ef
Further tweak esxi deployment support
...
Try removing the exec, as memory seems
constrained in exec case for some reason.
Specify behavior when dealing with existing
vmfs.
2020-06-10 14:01:07 -04:00
Jarrod Johnson
0a1409ffcf
Amend esxi update
...
Some mistakes were made in the profile
2020-06-10 12:34:46 -04:00
Jarrod Johnson
873190cae9
Fix tgz generation
...
Previous attempt was duplicating files in the
archive, which caused vmware kernel to
fail to unpack them.
2020-06-10 12:17:51 -04:00
Jarrod Johnson
783c6ce7b6
Revise the esxi tar strategy
...
Finally, it has been ascertained
that ESXi rejecting the tar
was due to not having directories
explicitly listed, not because of
forbidding new paths or compression.
2020-06-10 10:37:14 -04:00
Jarrod Johnson
facba645c5
Revert "Switch to tar"
...
This reverts commit c6d0c121d4
.
2020-06-10 10:17:54 -04:00
Jarrod Johnson
c6d0c121d4
Switch to tar
...
esxi seems to be inconsistent with working with
gz compressed tar, see if plain tar fares better
2020-06-10 09:44:44 -04:00
Jarrod Johnson
d4f46a53e0
Fix tar generation of site
...
site content was nat being
correctly packed to tgz.
2020-06-10 09:42:44 -04:00
Jarrod Johnson
3b940b6194
Rename site contents in tgz
...
This moves location of site data for esxi
2020-06-09 16:40:29 -04:00
Jarrod Johnson
ca91e10941
Numerous changes to esxi deployment
2020-06-09 16:12:22 -04:00
Jarrod Johnson
32ff75c86a
Add profile to esxi
2020-06-09 10:28:16 -04:00
Jarrod Johnson
006db24591
Fix more mistakes in the esxi deploy
2020-06-09 09:51:48 -04:00
Jarrod Johnson
6bbe1a49e0
Fix typo in spec file
2020-06-09 08:50:54 -04:00
Jarrod Johnson
197f9950cb
Add ESXi contents to OS deploy
2020-06-08 17:24:48 -04:00
Jarrod Johnson
0bd6aae76f
Construct tgz for site
...
This is needed for vmware
deployment support.
2020-06-08 14:03:58 -04:00
Jarrod Johnson
fa9f9c1d99
Tolerate certain HTTP clients
...
Some HTTP clients put the port
number into the host header.
We don't care about port number.
2020-06-08 11:29:31 -04:00
Jarrod Johnson
0a2ab341a8
Increase root directory size
...
ESXi demands a lot of files, increase
the root directory by a large amount
to fit esxi.
2020-06-04 15:16:45 -04:00
Jarrod Johnson
58e7a1f0b4
Recognize ESXi media
...
Fingerprint ESXi media, at
least tested with ESXi 7 media.
2020-06-04 14:58:52 -04:00
Jarrod Johnson
0016c31fef
Fix encrypted boot on 8.1
...
8.1 requires -f or it will fail.
2020-06-04 13:41:00 -04:00
Jarrod Johnson
f505b3ad16
Fix grub hash bytes
...
In python3, need to coerce the strings
to str or else end up with invalid grub password.
2020-06-04 10:27:55 -04:00
Jarrod Johnson
d17a2054d4
Add warning about encryptboot to Ubuntu
2020-06-03 16:22:41 -04:00
Jarrod Johnson
97e7dbc936
Improve the SUSE encryption error
2020-06-03 16:18:24 -04:00
Jarrod Johnson
7da29c17e1
Try to add error on encryptboot for SUSE
...
We don't support under suse, so let the user know if they try.
2020-06-03 15:33:10 -04:00
Jarrod Johnson
942685b48d
Amend confetty fix
...
shlex.join is not widely
available, switch to just
skipping the split if pre-split
by the calling process.
2020-06-03 14:58:30 -04:00
Jarrod Johnson
21e97689bc
Fix handling of complex embedded args
...
If pulling from argv, it has already been
shell split. Use shlex to join to correctly
requote anything that needs quoting.
2020-06-03 13:52:14 -04:00
Jarrod Johnson
8ddcdf625b
Fix SSDP issue in python3
...
A bytes was split by str, fix this.
2020-06-03 13:05:40 -04:00