SHARE
TWEET

Untitled

a guest Mar 13th, 2017 133 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ==== Build Process (New Working) ====
  2. ===== Standards =====
  3. Passwords & Keys
  4.  Crunchtools Root Password (lastpass)
  5.  
  6.  mkdir /root/.ssh
  7.  chmod 700 /root/.ssh/
  8.  echo "ssh-rsa XXXXXXXXXXXXXXXXXXXXXXXXXXXXX smccarty@keith.crunchtools.com" > /root/.ssh/authorized_keys
  9.  chmod 600 /root/.ssh/authorized_keys
  10.  
  11. Configure Networking
  12.  manually
  13.  
  14. Hosts File
  15.  45.33.26.51    pidge.ext.dc2.crunchtools.com pidge.dc2.crunchtools.com
  16.  45.33.114.128  hunk.ext.dc2.crunchtools.com hunk.dc2.crunchtools.com
  17.  45.56.79.20    lance.ext.dc2.crunchtools.com lance.dc2.crunchtools.com
  18.  
  19. Bash
  20.  # Customizations
  21.  shopt -s histappend
  22.  export PROMPT_COMMAND='history -a'
  23.  export HISTSIZE="200000"
  24.  export EDITOR="vim"
  25.  
  26. Subscription Management
  27.  subscription-manager register --auto-attach
  28.  subscription-manager repos --disable="*"
  29.  subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-optional-rpms --enable=rhel-7-server-supplementary-rpms --enable=rhel-7-server-rh-common-rpms
  30.  
  31. Updates
  32.  yum -y update
  33.  
  34. Standard Packages
  35.  yum -y install wget vim-enhanced subversion rsync openssh-clients ipa-client keychain
  36.  
  37. ===== Docker =====
  38.  yum -y install docker
  39.  systemctl enable docker
  40.  systemctl start docker
  41.  docker pull rhel7-atomic
  42.  docker images
  43.  
  44. ===== OpenShift =====
  45. Subscription Manager
  46.  subscription-manager attach --pool=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
  47.  subscription-manager repos --disable="*"
  48.  subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-optional-rpms --enable=rhel-7-server-supplementary-rpms --enable=rhel-7-server-rh-common-rpms --enable="rhel-7-server-ose-3.4-rpms"
  49.  
  50. Packages
  51.  yum -y install wget git net-tools bind-utils iptables-services bridge-utils bash-completion atomic-openshift-utils
  52.  yum -y update
  53.  
  54. Prep Work
  55.  yum install -y atomic-openshift-excluder atomic-openshift-docker-excluder
  56.  atomic-openshift-excluder unexclude
  57.  sed -i '/OPTIONS=.*/c\OPTIONS="--selinux-enabled --insecure-registry 172.30.0.0/16 --log-opt max-size=1M --log-opt max-file=3"' /etc/sysconfig/docker
  58.  systemctl restart docker
  59.  
  60. On Master
  61.  ssh-keygen
  62.  for host in pidge.ext.dc2.crunchtools.com \
  63.     lance.ext.dc2.crunchtools.com \
  64.     hunk.ext.dc2.crunchtools.com; \
  65.     do ssh-copy-id -i ~/.ssh/id_rsa.pub $host; \
  66.     done
  67.  atomic-openshift-installer install
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top