OpenShift: Difference between revisions

Content added Content deleted
Line 26: Line 26:


* Add the IP address, hostname and FQDN of each node to /etc/hosts for each host
* Add the IP address, hostname and FQDN of each node to /etc/hosts for each host
10.1.10.27 opshmaster opshmaster.avifl.com
10.1.10.27 opshmaster Openshift01
10.1.10.28 opshnode1 opshnode1.avifl.com
10.1.10.28 opshnode1 Openshift02
10.1.10.29 opshnode2 opshnode2.avifl.com
10.1.10.29 opshnode2 Openshift03


* Run ssh-keygen, accept the default location of the key and do not set a password for the key.
* Run ssh-keygen, accept the default location of the key and do not set a password for the key.


* Run the following bash script:
* Run the following bash script:
for host in opshmaster.avifl.com \
for host in Openshift01 \
opshnode1.avifl.com \
Openshift02 \
opshnode2.avifl.com; \
Openshift03; \
do ssh-copy-id -i ~/.ssh/id_rsa.pub $host; \
do ssh-copy-id -i ~/.ssh/id_rsa.pub $host; \
done
done