
* integrate bootstrap.sh into the Vagrantfile * remove deprecated patches * remove unused files * remove support for local Squid installation * fix several syntax issues identified by Rubocop Change-Id: I45d7aada7a9c5d1b7affcc3e3d246bebecd02fc4
19 lines
828 B
Bash
19 lines
828 B
Bash
#!/bin/sh
|
|
|
|
for node in $(sed -n '/<<< Packstack >>>/{:a;n;/>>> Packstack <<</b;p;ba}' /etc/hosts | awk '{ print $2 }'); do
|
|
ssh-keyscan $node >> /home/vagrant/.ssh/known_hosts
|
|
done
|
|
|
|
for node in $(sed -n '/<<< Packstack >>>/{:a;n;/>>> Packstack <<</b;p;ba}' /etc/hosts | awk '{ print $3 }'); do
|
|
ssh-keyscan $node >> /home/vagrant/.ssh/known_hosts
|
|
done
|
|
|
|
chown vagrant:vagrant /home/vagrant/.ssh/known_hosts
|
|
|
|
for node in $(sed -n '/<<< Packstack >>>/{:a;n;/>>> Packstack <<</b;p;ba}' /etc/hosts | awk '{ print $2 }'); do
|
|
ssh -i $HOME/.ssh/id_packstack $node "sudo mkdir -p /root/.ssh"
|
|
ssh -i $HOME/.ssh/id_packstack $node "sudo chmod 700 /root/.ssh"
|
|
ssh -i $HOME/.ssh/id_packstack $node "sudo cp /home/vagrant/.ssh/* /root/.ssh"
|
|
ssh -i $HOME/.ssh/id_packstack $node "sudo chown -R root:root /root/.ssh"
|
|
done
|