Skip to content

Instantly share code, notes, and snippets.

@justindav1s
Last active September 26, 2018 11:06
Show Gist options
  • Save justindav1s/a8d58d70b7d67a9ecfcb602f686e0af8 to your computer and use it in GitHub Desktop.
Save justindav1s/a8d58d70b7d67a9ecfcb602f686e0af8 to your computer and use it in GitHub Desktop.
#!/bin/bash
subscription-manager register
subscription-manager attach --pool=8a85f98460bfb0470160c2ff250f3e66
subscription-manager repos --disable=rhel-7-server-htb-rpms
yum update -y
subscription-manager repos \
--enable="rhel-7-server-rpms" \
--enable="rhel-7-server-extras-rpms" \
--enable="rhel-7-server-ose-3.10-rpms" \
--enable="rhel-7-server-ansible-2.4-rpms" \
--enable="rh-gluster-3-client-for-rhel-7-server-rpms"
yum update -y
yum install -y wget git net-tools bind-utils yum-utils iptables-services bridge-utils bash-completion kexec-tools sos psacct glusterfs-fuse
yum install -y openshift-ansible docker-1.13.1
cat <<EOF > /etc/sysconfig/docker-storage-setup
DEVS=/dev/vdb
VG=docker-vg
EOF
docker-storage-setup
systemctl enable docker
systemctl start docker
systemctl is-active docker
##Add Certs
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment