2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00
confluent/confluent_osdeploy/esxi7/profiles/hypervisor/scripts/modinstall
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

8 lines
365 B
Bash

#!/bin/sh
/opt/confluent/bin/apiclient /confluent-public/os/$profile/scripts/makeksnet >> /tmp/makeksnet
chmod +x /tmp/makeksnet
/tmp/makeksnet >> /etc/confluent/ks.cfg
rootpw=$(grep ^rootpassword: /etc/confluent/confluent.deploycfg|sed -e 's/^rootpassword: //')
echo rootpw --iscrypted $rootpw >> /etc/confluent/ks.cfg
export BOOT_CMDLINE=ks=/etc/confluent/ks.cfg