Skip to content
Snippets Groups Projects
Commit 193f2c4c authored by Temur Maisuradze's avatar Temur Maisuradze
Browse files

HOWTOS

parent 821cb3e4
No related branches found
No related tags found
No related merge requests found
...@@ -13,10 +13,36 @@ To make modifications to the main NiFi pipeline and add it to the Ansible playbo ...@@ -13,10 +13,36 @@ To make modifications to the main NiFi pipeline and add it to the Ansible playbo
`utils/flow2template.py flow.xml.gz roles/nifi/templates/flow.xml.j2` `utils/flow2template.py flow.xml.gz roles/nifi/templates/flow.xml.j2`
Restart services inside docker containers Update configuration files in docker containers using Ansible
----------------------------------------- -------------------------------------------------------------
To update configuration files for all docker containers together, run the following command:
ansible-playbook -i inventories soctools.yml -t update-config
To update configuration files only for specific services, run the following commands:
ansible-playbook -i inventories soctools.yml -t update-keycloak-config
ansible-playbook -i inventories soctools.yml -t update-thehive-config
Restart services inside docker containers using Ansible
-------------------------------------------------------
To restart services for all docker containers together, run the following command:
ansible-playbook -i inventories soctools.yml -t restart
To restart services only for specific docker containers, run the following commands:
ansible-playbook -i inventories soctools.yml -t restart-keycloak
ansible-playbook -i inventories soctools.yml -t restart-thehive
Stop services inside docker containers using Ansible
----------------------------------------------------
To stop services for all docker containers together, run the following command:
ansible-playbook -i inventories soctools.yml -t stop
To stop services only for specific docker containers, run the following commands:
ansible-playbook -i inventories soctools.yml -t stop-keycloak
ansible-playbook -i inventories soctools.yml -t stop-thehive
Restart services inside docker containers manually
--------------------------------------------------
To restart services inside docker containers after changes in configuration files: To restart services inside docker containers after changes in configuration files:
1. Attache container: docker exec -it container_id_or_name bash (example: docker exec -it soctools-keycloak bash) 1. Attache container: docker exec -it container_id_or_name bash (example: docker exec -it soctools-keycloak bash)
2. List services and their statuses: supervisorctl status 2. List services and their statuses: supervisorctl status
3. Restart service: supervisorctl restart supervisor_service_name (example: supervisorctl restart keycloak) 3. Restart service: supervisorctl restart supervisor_service_name (example: supervisorctl restart keycloak)
4. Detach from container: exit 4. Detach from container: exit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment