2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Try to adapt for esxi6.7

ESXi 6.7 had further restrictions
This commit is contained in:
Jarrod Johnson 2020-06-11 09:26:40 -04:00
parent 8e203723ef
commit f78b358cd7
3 changed files with 3 additions and 5 deletions

View File

@ -18,10 +18,10 @@ cat /tls/*.pem > /etc/confluent/ca.pem
/opt/confluent/bin/apiclient /confluent-api/self/deploycfg > /etc/confluent/confluent.deploycfg
profile=$(grep ^profile: /etc/confluent/confluent.deploycfg | sed -e 's/^profile: //')
/opt/confluent/bin/apiclient /confluent-public/os/$profile/kickstart > /etc/confluent/ks.cfg
/opt/confluent/bin/apiclient /confluent-public/os/$profile/scripts/makeksnet > /tmp/makeksnet
/opt/confluent/bin/apiclient /confluent-public/os/$profile/scripts/makeksnet >> /etc/confluent/ks.cfg
chmod +x /tmp/makeksnet
/tmp/makeksnet > /tmp/ksnet
rootpw=$(grep ^rootpassword: /etc/confluent/confluent.deploycfg|sed -e 's/^rootpassword: //')
echo rootpw --iscrypted $rootpw > /tmp/rootuser
echo rootpw --iscrypted $rootpw >> /etc/confluent/ks.cfg
export BOOT_CMDLINE=ks=/etc/confluent/ks.cfg
/bin/install

View File

@ -1,5 +1,4 @@
accepteula
clearpart --firstdisk --preservevmfs
install --firstdisk --preservevmfs
%include /tmp/ksnet
%include /tmp/rootuser
reboot

View File

@ -87,7 +87,6 @@ def update_boot_esxi(profiledir, profile, label):
sourcefile = '{0}/distribution/{1}'.format(profiledir, fn.upper())
os.symlink(sourcefile, '{0}/boot/{1}'.format(profiledir, fn))
os.symlink('{0}/distribution/EFI/BOOT/BOOTX64.EFI'.format(profiledir), '{0}/boot/efi/boot/bootx64.efi'.format(profiledir))
os.symlink('{0}/distribution/EFI/BOOT/SAFEBOOT.EFI'.format(profiledir), '{0}/boot/efi/boot/safe.efi'.format(profiledir))
subprocess.check_call(
['/opt/confluent/bin/dir2img', '{0}/boot'.format(profiledir),
'{0}/boot.img'.format(profiledir)], preexec_fn=relax_umask)