-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprereqs-script.sh
More file actions
31 lines (26 loc) · 1.26 KB
/
prereqs-script.sh
File metadata and controls
31 lines (26 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
#https://docs.okd.io/3.11/install/prerequisites.html#install-config-network-using-firewalld
systemctl stop firewalld && systemctl disable firewalld
#https://docs.okd.io/3.11/install/prerequisites.html#prereq-dns
echo -e "NM_CONTROLLED=yes" >> /etc/sysconfig/network-scripts/ifcfg-ens160
cat /etc/sysconfig/network-scripts/ifcfg-ens160
sleep 3
#https://docs.okd.io/3.11/install/host_preparation.html#installing-base-packages
yum install -y wget git net-tools bind-utils yum-utils iptables-services bridge-utils bash-completion kexec-tools sos psacct
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sed -i -e "s/^enabled=1/enabled=0/" /etc/yum.repos.d/epel.repo
yum -y --enablerepo=epel install ansible pyOpenSSL
#https://docs.okd.io/3.11/install/host_preparation.html#installing-docker
yum install -y docker-1.13.1 && rpm -V docker-1.13.1 && docker version
sleep 3
#https://docs.okd.io/3.11/install/host_preparation.html#configuring-docker-thin-pool
echo -e "DEVS=/dev/sdb\nVG=docker-vg" > /etc/sysconfig/docker-storage-setup && docker-storage-setup
sleep 3
echo "Verificando docker-storage-setup"
cat /etc/sysconfig/docker-storage
echo -e "\n\n"
lvs
sleep 3
systemctl enable docker
systemctl start docker
systemctl is-active docker