Difference between revisions of "Distributed Jenkins"

From Lingoport Wiki
Jump to: navigation, search
Line 2: Line 2:
   
 
# on master:
 
# on master:
Generate a key
+
Generate an id_rsa key, for example:
  +
ssh-keygen -t rsa -C "The access key for Jenkins slaves"
make sure the chmod's are right
 
copy the public key
+
make sure the chmod's are right
  +
copy the public key
  +
  +
'''Important:'''
  +
This is all based on the key under /var/lib/jenkins/.ssh/ being with the following owner and access permissions:
  +
-rw-------. 1 jenkins jenkins 1675 Dec 21 21:20 id_rsa
  +
-rw-r--r--. 1 jenkins jenkins 419 Dec 21 21:20 id_rsa.pub
  +
  +
(see credentials below based on file)
   
 
# on slave
 
# on slave
copy the public key into
+
copy the public key (id_rsa.pub) into
 
.ssh/authorized_keys
 
.ssh/authorized_keys
 
make sure the chmod is 600, as in:
 
make sure the chmod is 600, as in:
 
-rw-------. 1 jenkins jenkins 831 Dec 21 23:05 authorized_keys
 
-rw-------. 1 jenkins jenkins 831 Dec 21 23:05 authorized_keys
   
  +
'''Note''': Make sure in the copy you have one line for the copy. Sometimes, copying may break the key into multiple lines.
# In AWS console:
 
  +
  +
# In AWS console / the master and slave nodes:
 
Open the 22 ports to and from the two systems.
 
Open the 22 ports to and from the two systems.
 
# On Master:
 
Use the ~/.ssh on file
 
 
# On master:
 
 
sudo -u jenkins -H ssh-keygen
 
 
   
 
# On slave:
 
# On slave:

Revision as of 15:47, 22 December 2016

Notes on the Jenkins Deployment for Scalability around Pull Requests from GitHub.

  1. on master:

Generate an id_rsa key, for example:

 ssh-keygen -t rsa -C "The access key for Jenkins slaves" 

make sure the chmod's are right copy the public key

Important:

This is all based on the key under /var/lib/jenkins/.ssh/  being with the following owner and access permissions:
  -rw-------.  1 jenkins jenkins 1675 Dec 21 21:20 id_rsa
  -rw-r--r--.  1 jenkins jenkins  419 Dec 21 21:20 id_rsa.pub

(see credentials below based on file)

  1. on slave
copy the public key (id_rsa.pub) into 
.ssh/authorized_keys
make sure the chmod is 600, as in:
-rw-------. 1 jenkins jenkins  831 Dec 21 23:05 authorized_keys
Note: Make sure in the copy you have one line for the copy. Sometimes, copying may break the key into multiple lines.
  1. In AWS console / the master and slave nodes:
 Open the 22 ports to and from the two systems. 
  1. On slave:


On your master machine go to Manage Jenkins > Manage Nodes.