-
Notifications
You must be signed in to change notification settings - Fork 5
/
vagrant.yml
54 lines (49 loc) · 1008 Bytes
/
vagrant.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
- name: Disable requiretty in sudoers
hosts: all
tasks:
- name: Disable requiretty in sudoers
lineinfile: dest=/etc/sudoers state=absent regexp="^Defaults requiretty.*"
sudo: yes
tags:
- jenkins
- openshift
- name: Configure Jenkins nodes
hosts: all
roles:
- jenkins/common
tags:
- jenkins
- name: Setup openshift
hosts: openshift
roles:
- openshift
tags:
- openshift
- name: Setup jenkins slaves
hosts: jenkins_slaves
roles:
- jenkins/slave
- registry
- nginx
tags:
- jenkins
- jenkins/slaves
- name: Setup jenkins master
hosts: jenkins_master
roles:
- jenkins/master
tags:
- jenkins
- jenkins/master
- name: Restart workers
hosts: jenkins_slaves
tasks:
- name: Enable and start beanstalk worker services
service: name="{{ item }}" state=restarted enabled=yes
with_items:
- cccp-build-worker
- cccp-worker-test
tags:
- openshift
- jenkins/slaves