This document is specific to the London RedCentric lab, but should evolve to a more generic setup once we have more labs. For now, there are some hard-coded logic in the wiki as well as the scripts, to make sure we can reproduce at least the one lab we have. Once we have more labs, we'll work to automate that using configuration files, command line options, etc.
...
Code Block | ||
---|---|---|
| ||
root@hpc-admin # git clone ssh://git@dev-private-git.linaro.org/hpc/labconf.git |
Two other repositories are necessary for now, but we'll move them into labconf
soon:
Code Block | ||
---|---|---|
| ||
root@hpc-admin # git clone https://github.com/BaptisteGerondeau/ans_setup_jenkins.git root@hpc-admin # git clone https://github.com/BaptisteGerondeau/ans_setup_mrp.gitsubmodule update --init --recursive |
Once the repos are checked out, update the system and install the required packages:
...
Code Block | ||||
---|---|---|---|---|
| ||||
root@hpc-admin # cd ~/labconf/ans_setup_mrp/ansible
root@hpc-admin # ./pre-setup.sh
root@hpc-admin # ansible-playbook playbooks/mrp_setup.yml -vvv -u root |
...
Code Block | ||||
---|---|---|---|---|
| ||||
root@hpc-admin # cp -r ~/labconf/roles/ ~/labconf/ans_set_jenkins/ |
Then run Ansible and wait until it exists with no errors:
Code Block | ||||
---|---|---|---|---|
| ||||
root@hpc-admin # cd ~/labconf/ans_setup_jenkins &&root@hpc-admin # ansible-playbook configure-jenkins.yml -vvv -u root |
...
You may get two warnings when you log in to Jenkins, which can be corrected on the Global Security screen:
- Agent to master security subsystem is currently off: Check the box saying "Enable Agent → Master Access Control"
- Jenkins instance uses deprecated protocols: JNLP3-connect: Uncheck the box "Java Web Start Agent Protocol/3" in "Agent Protocols"
Save the configuration and you should be all set.