This repository has been archived by the owner on Oct 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
site.yml
93 lines (86 loc) · 2.36 KB
/
site.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
- name: openssl
hosts: localhost
connection: local
gather_facts: false
vars_files:
- hackathons/default.yml
- hackathons/{{ hackathon_edition }}.yml
tasks:
- name: generate certificates for logstash forwarder
command: >
openssl req -days 356 -x509 -batch -nodes -newkey rsa:2048
-keyout {{ logstash_forwarder_key }}
-out {{ logstash_forwarder_cert }}
-subj '/C=PL/ST=mazowieckie/L=Warszawa/CN={{ logstash_lumberjack_host }}'
args:
creates: "{{ logstash_forwarder_cert }}"
- name: generate SSH keys for rundeck
command: >
ssh-keygen -q -N "" -f {{ rundeck_ssh_private_key }}
args:
creates: "{{ rundeck_ssh_private_key }}"
- name: sshd
hosts: all
gather_facts: false
tasks:
- name: Wait for sshd to be running
local_action: "wait_for host={{ inventory_hostname }} delay=0 port={{ ansible_ssh_port|default(22) }} timeout=90 state=started"
when: is_vagrant is not defined
- name: Server for applications
hosts: apps
sudo: yes
vars_files:
- hackathons/default.yml
- hackathons/{{ hackathon_edition }}.yml
roles:
- { role: common }
- { role: deploy }
- { role: oracle_jdk, oracle_jdk_version: '8u5-b13' }
- { role: zookeeper }
- { role: logstash_forwarder }
- { role: hystrix_dashboard }
- name: Server for monitoring
hosts: monitoring
sudo: true
vars_files:
- hackathons/default.yml
- hackathons/{{ hackathon_edition }}.yml
roles:
- { role: common }
- { role: apache }
- { role: elasticsearch }
- { role: logstash }
- { role: kibana }
- { role: graphite }
- { role: grafana }
- { role: seyren }
- name: Server for nexus
hosts: nexus
sudo: true
vars_files:
- hackathons/default.yml
- hackathons/{{ hackathon_edition }}.yml
roles:
- { role: common }
- { role: sonatype-nexus }
- name: Server for Jenkins
hosts: jenkins
sudo: true
vars_files:
- hackathons/default.yml
- hackathons/{{ hackathon_edition }}.yml
roles:
- { role: common }
- { role: oracle_jdk, oracle_jdk_version: '8u5-b13' }
- { role: jenkins }
- { role: jenkins_seed_job }
- name: Server for Rundeck
hosts: rundeck
sudo: true
vars_files:
- hackathons/default.yml
- hackathons/{{ hackathon_edition }}.yml
roles:
- { role: common }
- { role: rundeck }