This is meant to initialize (2) virgin jenkins servers in a master/slave setup running on the default CentOS7 vagrant boxes. Useful for lab testing, learning or whatever. It will install Jenkins latest, openjdk 1.8, python3/pip, awscli,
- Modify the VagrantFile if needed
- 'vagrant up' to start the boxes and complete initial provisioning
- To complete the slave node addition to the master, manually exchange keys
- On the master ('jenkins') - copy generated public key:
vi /var/lib/jenkins/.ssh/id_rsa.pub
- On the slave ('jenkins-slave'), paste the key into authorized_keys
vi /var/lib/jenkins-slave/.ssh/authorized_keys
TODO - update this to use ssh copy key, this is hacky!!
NOTE: Both boxes use the default vagrant logins (vagrant/vagrant). Both servers have a 'jenkins' user with no password set. You can sudo/su to the 'jenkins' user as needed.
- gain access via the default admin pwd; finish setup with default plugins
- create your admin user
- switch to matrix security
- give admin user all rights in the matrix
- add a restricted dev user
- give this restricted user the following permissions: OVERALL: read CREDENTIALS: NONE AGENT: NONE JOB: build,cancel,configure,discover,read, workspace (maybe give create...) RUN: update VIEW: configure, create, read SCM: NONE
- Additional Plugins:
- Amazon EC2 plugin
- Attach the slave node (user is 'jenkins' and slave server = 'jenkins-slave')