forked from archiver_config/sf_databuffer
New modular ansibles
This commit is contained in:
@@ -123,7 +123,7 @@ git pull
|
||||
|
||||
- call the restart script
|
||||
```bash
|
||||
ansible-playbook restart.yml
|
||||
ansible-playbook restart-all.yml
|
||||
```
|
||||
|
||||
- After waiting ~5min restart the recording again:
|
||||
|
||||
3
operation-tools/restart-all.yml
Normal file
3
operation-tools/restart-all.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
- import_playbook: stop-all.yml
|
||||
- import_playbook: start-all.yml
|
||||
@@ -1,8 +1,4 @@
|
||||
|
||||
- import_playbook: stop.yml
|
||||
- import_playbook: start.yml
|
||||
|
||||
|
||||
- name: restart data api
|
||||
hosts: sf_data_api_databuffer
|
||||
become: true
|
||||
@@ -20,4 +16,4 @@
|
||||
- name: restart dispatcher-api-databuffer
|
||||
systemd:
|
||||
state: restarted
|
||||
name: dispatcher-api-databuffer
|
||||
name: dispatcher-api-databuffer
|
||||
3
operation-tools/restart-retrieval.yml
Normal file
3
operation-tools/restart-retrieval.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
- import_playbook: stop-retrieval.yml
|
||||
- import_playbook: start-retrieval.yml
|
||||
- import_playbook: restart-api.yml
|
||||
5
operation-tools/start-all.yml
Normal file
5
operation-tools/start-all.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
- import_playbook: start-db.yml
|
||||
- import_playbook: start-retrieval.yml
|
||||
- import_playbook: restart-api.yml
|
||||
|
||||
19
operation-tools/start-db.yml
Normal file
19
operation-tools/start-db.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
- name: Start nodes
|
||||
hosts: databuffer
|
||||
become: true
|
||||
tasks:
|
||||
|
||||
- name: start daq-dispatcher-node
|
||||
systemd:
|
||||
state: started
|
||||
name: daq-dispatcher-node
|
||||
|
||||
- name: sleep for 60 seconds and continue with play
|
||||
wait_for:
|
||||
timeout: 60
|
||||
|
||||
- name: start daq-query-node
|
||||
systemd:
|
||||
state: started
|
||||
name: daq-query-node
|
||||
14
operation-tools/start-retrieval.yml
Normal file
14
operation-tools/start-retrieval.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
- name: Start all retrieval
|
||||
hosts: databuffer
|
||||
become: true
|
||||
tasks:
|
||||
- name: start java retrieval
|
||||
systemd:
|
||||
state: started
|
||||
name: retrieval
|
||||
|
||||
- name: start retrieval
|
||||
systemd:
|
||||
state: started
|
||||
name: retrieval-00
|
||||
@@ -1,29 +0,0 @@
|
||||
- name: Start nodes
|
||||
hosts: databuffer
|
||||
become: true
|
||||
tasks:
|
||||
|
||||
- name: start daq-dispatcher-node
|
||||
systemd:
|
||||
state: started
|
||||
name: daq-dispatcher-node
|
||||
|
||||
- name: sleep for 30 seconds and continue with play
|
||||
wait_for:
|
||||
timeout: 30
|
||||
|
||||
- name: start daq-query-node
|
||||
systemd:
|
||||
state: started
|
||||
name: daq-query-node
|
||||
|
||||
- name: start java retrieval
|
||||
systemd:
|
||||
state: started
|
||||
name: retrieval
|
||||
|
||||
- name: start retrieval
|
||||
systemd:
|
||||
state: started
|
||||
name: retrieval-00
|
||||
|
||||
3
operation-tools/stop-all.yml
Normal file
3
operation-tools/stop-all.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
- import_playbook: stop-retrieval.yml
|
||||
- import_playbook: stop-db.yml
|
||||
@@ -3,16 +3,6 @@
|
||||
become: true
|
||||
tasks:
|
||||
|
||||
- name: stop retrieval
|
||||
systemd:
|
||||
state: stopped
|
||||
name: retrieval-00
|
||||
|
||||
- name: stop java retrieval
|
||||
systemd:
|
||||
state: stopped
|
||||
name: retrieval
|
||||
|
||||
- name: stop daq-dispatcher-node
|
||||
systemd:
|
||||
state: stopped
|
||||
14
operation-tools/stop-retrieval.yml
Normal file
14
operation-tools/stop-retrieval.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
- name: Stop all retrieval
|
||||
hosts: databuffer
|
||||
become: true
|
||||
tasks:
|
||||
- name: stop retrieval
|
||||
systemd:
|
||||
state: stopped
|
||||
name: retrieval-00
|
||||
|
||||
- name: stop java retrieval
|
||||
systemd:
|
||||
state: stopped
|
||||
name: retrieval
|
||||
Reference in New Issue
Block a user