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

Pull ks.cfg manipulation into scripts

This make it easier to customize rather than being
in addons.tgz
This commit is contained in:
Jarrod Johnson 2020-06-11 10:29:22 -04:00
parent 654932efb6
commit 09db9f5a25
2 changed files with 11 additions and 7 deletions

View File

@ -18,10 +18,7 @@ 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
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
/bin/install
/opt/confluent/bin/apiclient /confluent-public/os/$profile/scripts/modinstall > /tmp/modinstall
export node mgr profile
. /tmp/modinstall
exec /bin/install

View File

@ -0,0 +1,7 @@
#!/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