forked from datasmid/buildserver
-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
smoketest.yml
executable file
·48 lines (37 loc) · 1.51 KB
/
smoketest.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
#!/usr/bin/env ansible-playbook
- name: Build Server
hosts: build
gather_facts: no
remote_user: vagrant
become: yes
tasks:
- name: 'verify tcp listening socket for Apache'
wait_for: port=443 timeout=20 delay=1
- name: 'verify tcp listening socket for MySQL'
wait_for: port=3306 timeout=30
ignore_errors: yes
- name: 'verify tcp listening socket for Postgres'
wait_for: port=5432 timeout=30
ignore_errors: yes
- name: 'verify tcp listening socket for Jenkins'
wait_for: port={{ jenkins_port }} timeout=30
- name: 'verify tcp listening socket for Artifactory'
wait_for: port={{ artifactory_port }} timeout=30
- name: 'verify tcp listening socket for Sonar'
wait_for: port={{ sonar_port }} timeout=10
ignore_errors: yes
- name: 'verify https connectivity to Jenkins'
become: no
local_action: uri url=https://build/jenkins/jobConfigHistory/ validate_certs=no status_code=200
- name: 'verify https connectivity to Artifactory'
become: no
local_action: uri url=https://build/artifactory/webapp/#/artifacts/browse/tree/General/ext-release-local
status_code=200 validate_certs=no
- name: 'verify https connectivity to Jenkins'
become: no
local_action: uri url=https://build/jenkins/ method=GET validate_certs=no status_code=200
- name: 'verify local import of pki/buildserverCA.cer'
become: no
changed_when: no
local_action: get_url url=https://build/ validate_certs=yes timeout=10 dest=/build/null
ignore_errors: yes