Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1.  
  2. subscription-manager register --username <username> --password <password> --auto-attach
  3.  
  4. subscription-manager list --available --all
  5.  
  6. # subscription-manager subscribe --pool=Red_Hat_Satellite_Pool_Id \
  7. && subscription-manager subscribe --pool=Red_Hat_Enterprise_Linux_Pool_Id \
  8. && subscription-manager subscribe \
  9. --pool=Red_Hat_Enterprise_Linux_Software_Collections_Pool_Id
  10.  
  11. # subscription-manager repos --disable "*"
  12.  
  13. # subscription-manager repos --enable rhel-6-server-rpms \
  14. --enable rhel-server-rhscl-6-rpms \
  15. --enable rhel-6-server-satellite-6.1-rpms
  16.  
  17. iptables -A INPUT -m state --state NEW -p udp --dport 53 -j ACCEPT \
  18. && iptables -A INPUT -m state --state NEW -p tcp --dport 53 -j ACCEPT \
  19. && iptables -A INPUT -m state --state NEW -p udp --dport 67 -j ACCEPT \
  20. && iptables -A INPUT -m state --state NEW -p udp --dport 68 -j ACCEPT \
  21. && iptables -A INPUT -m state --state NEW -p udp --dport 69 -j ACCEPT \
  22. && iptables -A INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT \
  23. && iptables -A INPUT -m state --state NEW -p tcp --dport 443 -j ACCEPT \
  24. && iptables -A INPUT -m state --state NEW -p tcp --dport 5647 -j ACCEPT \
  25. && iptables -A INPUT -m state --state NEW -p tcp --dport 8140 -j ACCEPT \
  26. && iptables-save > /etc/sysconfig/iptables
  27.  
  28. # service iptables start
  29. # chkconfig iptables on
  30.  
  31.  
  32. # yum install katello
  33.  
  34.  
  35.  
  36. katello-installer \
  37. -v \
  38. --foreman-initial-organization "OrgName" \
  39. --foreman-initial-location "mlk" \
  40. --foreman-admin-username admin \
  41. --foreman-admin-password admin-password \
  42. --katello-proxy-url=http://myproxy.example.com \
  43. --katello-proxy-port=8080 \
  44. --katello-proxy-username=proxy_username \
  45. --katello-proxy-password=proxy_password \
  46. --certs-server-cert ~/path/to/server.crt \
  47. --certs-server-cert-req ~/path/to/server.crt.req \
  48. --certs-server-key ~/path/to/server.crt.key \
  49. --certs-server-ca-cert ~/path/to/cacert.crt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement