summaryrefslogtreecommitdiffstats
path: root/compass-tasks-k8s/run.sh
blob: 3a7c0c8a5827982393c6a8e83ca4b0ad8bf59e59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

yum install git ntp wget ntpdate openssh-server python-devel sudo '@Development Tools' -y
#yum install -y python-yaml
systemctl stop firewalld
systemctl mask firewalld

# get kubespray code and install requirement
rm -rf  /opt/kargo_k8s
git clone https://github.com/kubernetes-incubator/kubespray.git /opt/kargo_k8s
cd /opt/kargo_k8s
git checkout f4180503c891bea4b4b77a2f7cc93923411a7449 -b k8s1.9.1
pip install ansible==2.4.2.0