forked from ESGF/esgf-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatus.yml
145 lines (133 loc) · 3.05 KB
/
status.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
- hosts: all
connection: paramiko
ignore_errors: yes
become: yes
tasks:
# httpd
- name: Check the web ports
wait_for:
port: "{{ item }}"
timeout: 5
loop:
- 80
- 443
# postgres
- name: Check the postgres port
wait_for:
port: 5432
timeout: 5
# solr
- name: Load solr startup file
when: "'index' in group_names"
slurp:
src: "{{ esg.config.dir }}/shards_startup.yml"
register: shard_startup_file
tags:
- index
- solr
- name: Load existing shards
when: "'index' in group_names"
set_fact:
existing_shards: "{{ shard_startup_file['content'] | b64decode | from_yaml }}"
tags:
- index
- solr
- name: Check the solr ports
when: "'index' in group_names"
wait_for:
port: "{{ shard.port }}"
timeout: 5
loop: "{{ existing_shards }}"
loop_control:
loop_var: shard
tags:
- index
- solr
# cog
- name: Check the cog port
when: "'index' in group_names"
wait_for:
port: 8889
timeout: 5
tags:
- index
- cog
# slcs
- name: Check the slcs port
when: "'idp' in group_names"
wait_for:
port: 8888
timeout: 5
tags:
- idp
- slcs
# myproxy
- name: Check the myproxy-server port
when: "'idp' in group_names"
wait_for:
port: 7512
timeout: 5
tags:
- idp
- myproxy
# gridftp
- name: Check the globus-gridftp-server port
when: "'data' in group_names"
wait_for:
port: 2811
timeout: 5
tags:
- data
- gridftp
# tomcat
- name: Check the tomcat ports
wait_for:
port: "{{ item }}"
timeout: 45
loop:
- 8080
- 8443
- 8223
tags:
- data
- idp
- index
- tomcat
# HTTP checks
- name: Check the ORP URL
when: "'index' in group_names or 'data' in group_names"
uri:
url: "https://{{ hostname.self }}/esg-orp/home.htm"
tags:
- data
- name: Check data URL
when: "'data' in group_names"
uri:
url: "https://{{ hostname.self }}/thredds/catalog/catalog.html"
tags:
- data
- name: Check index URLs
when: "'index' in group_names"
uri:
url: "{{ item }}"
loop:
- https://{{ hostname.self }}/solr/datasets/admin/ping
- https://{{ hostname.self }}/esg-search/search/?limit=0
- https://{{ hostname.self }}/
tags:
- index
- name: Check idp URL
when: "'idp' in group_names"
uri:
url: "{{ item }}"
loop:
- https://{{ hostname.self }}/esgf-idp/
- https://{{ hostname.self }}/esgf-slcs/
tags:
- idp
- name: Check Solr Status
when: "'index' in group_names"
command: "{{ solr.path }}/bin/solr status"
tags:
- index
- solr