c12s-kubespray/bootstrap-master.sh
2016-06-14 19:10:20 +02:00

14 lines
531 B
Bash

#!/bin/bash
echo master > /var/tmp/role
sudo apt-get --yes update
sudo apt-get --yes upgrade
sudo apt-get --yes install ansible git screen vim
sudo git clone https://github.com/kubespray/kargo /root/kargo
sudo git clone https://github.com/adidenko/vagrant-k8s /root/vagrant-k8s
sudo cp -a /root/vagrant-k8s/kargo/inv /root/kargo/inv
sudo rm -rf /root/.ssh
sudo mv ~vagrant/ssh /root/.ssh
sudo echo -e 'Host 10.210.*\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile=/dev/null' >> /root/.ssh/config
sudo chown -R root: /root/.ssh