2016-06-14 16:21:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
echo master > /var/tmp/role
|
|
|
|
|
|
|
|
sudo apt-get --yes update
|
|
|
|
sudo apt-get --yes upgrade
|
2016-06-14 16:40:41 +00:00
|
|
|
sudo apt-get --yes install ansible git screen vim
|
2016-06-14 16:21:56 +00:00
|
|
|
sudo git clone https://github.com/kubespray/kargo /root/kargo
|
2016-06-14 16:51:43 +00:00
|
|
|
sudo wget https://raw.githubusercontent.com/adidenko/vagrant-k8s/master/kargo/inventory.cfg -O /root/kargo/inventory/inventory.cfg
|
2016-06-14 16:21:56 +00:00
|
|
|
|
|
|
|
sudo rm -rf /root/.ssh
|
|
|
|
sudo mv ~vagrant/ssh /root/.ssh
|
2016-06-14 16:30:30 +00:00
|
|
|
sudo echo -e 'Host 10.210.*\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile=/dev/null' >> /root/.ssh/config
|
2016-06-14 16:21:56 +00:00
|
|
|
sudo chown -R root: /root/.ssh
|