Jarrod Johnson
17ec74dcf8
Add binary output to apiclient
...
It is convenient to use apiclient as
a downloader, it's shorter and to the point
than curl.
2020-06-19 07:49:05 -04:00
Jarrod Johnson
e7b93dba50
Have apiclient use first rather than last
...
apiclient was preferring the slowest rather than
the fastest respondant, inconsistent with intent
and everything else.
2020-06-19 07:29:14 -04:00
Jarrod Johnson
5bc9cb57d1
Amend RH initqueue
...
We may be called before drivers have manifested interfaces.
On each iteration make sure all nics are up before proceeding.
2020-06-18 16:45:24 -04:00
Jarrod Johnson
889b6a9930
Keep yum repo away from RHV
...
It must not think it has a yum repo to consider
2020-06-18 15:33:38 -04:00
Jarrod Johnson
5b605aa9d7
Further address EL7/RHV peculiarities
...
EL7 tends to skip the initqueue. Hook finished to
prevent that.
2020-06-18 15:26:35 -04:00
Jarrod Johnson
ad5faf144e
Fix more RHV4 issues with the profile
2020-06-18 14:28:44 -04:00
Jarrod Johnson
b6c017ef1a
Adjust some paths for compatibility
...
The profile expectations were not being met
2020-06-18 13:50:27 -04:00
Jarrod Johnson
095a831c0b
Fix source of abnormal console exit
...
If using ctrl-e, c, then a delay while
there is console output to do,
console would crash.
Fix by catching the flush problem
and ignoring it.
2020-06-18 13:09:48 -04:00
Jarrod Johnson
9cc5b5f98c
Add rhvh4 to profile list
2020-06-18 12:49:05 -04:00
Jarrod Johnson
ac2e41bd78
First pass at RHV4 support
...
Derive from EL8 with some EL7 vintage accomodations
2020-06-18 12:36:00 -04:00
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