2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-26 19:10:30 +00:00

Have ssh_known_hosts ready post install for ubuntu

This commit is contained in:
Jarrod Johnson 2020-05-01 22:17:27 -04:00
parent fa40793dfa
commit 00eb72a627

View File

@ -1,6 +1,10 @@
cp -a /root/.ssh /target/root/
mkdir -p /target/etc/confluent/ssh/sshd_config.d/
cp /custom-installation/confluent/* /target/etc/confluent/
for i in /custom-installation/ssh/*.ca; do
echo '@cert-authority *' $(cat $i) >> /target/etc/ssh/ssh_known_hosts
done
cp -a /etc/ssh/ssh_host* /target/etc/confluent/ssh/
cp -a /etc/ssh/sshd_config.d/confluent.conf /target/etc/confluent/ssh/sshd_config.d/
cp /custom-installation/firstboot.sh /target/etc/confluent/firstboot.sh