Add a couchbase image.
This commit is contained in:
parent
123727acf0
commit
c4002a844e
|
@ -30,7 +30,12 @@ open_asfa_pgadmin_email: 'noreply@example.com'
|
|||
#open_asfa_pgadmin_default_pwd: 'Use a vault'
|
||||
open_asfa_pgadmin_inactivity_timeout: '1200'
|
||||
|
||||
open_asfa_keylocak_auth_url: http://localhost:8080/auth/
|
||||
open_asfa_couchbase_image: 'couchbase:community'
|
||||
open_asfa_couchbase_volume_type: 'local'
|
||||
open_asfa_couchbase_volume_o: ""
|
||||
open_asfa_couchbase_volume_device: ""
|
||||
|
||||
open_asfa_keycloak_auth_url: http://localhost:8080/auth/
|
||||
open_asfa_keycloak_client_secret: 'use a vault'
|
||||
open_asfa_keycloak_realm: 'realm'
|
||||
open_asfa_keycloak_client_name: 'asfa_client_name'
|
||||
|
|
|
@ -2,12 +2,13 @@ galaxy_info:
|
|||
author: Andrea Dell'Amico
|
||||
description: Systems Architect
|
||||
company: ISTI-CNR
|
||||
role_name: open_asfa_test
|
||||
|
||||
issue_tracker_url: https://support.d4science.org/projects/d4science-operation
|
||||
|
||||
license: EUPL 1.2+
|
||||
|
||||
min_ansible_version: 2.8
|
||||
min_ansible_version: '2.9'
|
||||
|
||||
# To view available platforms and versions (or releases), visit:
|
||||
# https://galaxy.ansible.com/api/v1/platforms/
|
||||
|
@ -18,7 +19,7 @@ galaxy_info:
|
|||
- bionic
|
||||
- name: EL
|
||||
versions:
|
||||
- 7
|
||||
- '7'
|
||||
|
||||
galaxy_tags:
|
||||
- open-asfa
|
||||
|
|
|
@ -35,7 +35,11 @@
|
|||
template: src=open-asfa-db-docker-compose.yml.j2 dest={{ open_asfa_compose_dir }}/docker-open-asfa-stack-db-test.yml owner=root group=root mode='0400'
|
||||
when: open_asfa_db_as_container
|
||||
|
||||
- name: Install the docker compose file
|
||||
- name: Install the docker compose file of Couchbase
|
||||
template: src=open-asfa-couchbase-docker-compose.yml.j2 dest={{ open_asfa_compose_dir }}/docker-open-asfa-stack-couchbase-test.yml owner=root group=root mode='0400'
|
||||
when: open_asfa_db_as_container
|
||||
|
||||
- name: Install the docker compose file of the open-asfa service
|
||||
template: src=open-asfa-docker-compose.yml.j2 dest={{ open_asfa_compose_dir }}/docker-open-asfa-stack-test.yml owner=root group=root mode='0400'
|
||||
|
||||
- name: Start the OpenAsfa stack
|
||||
|
@ -45,6 +49,7 @@
|
|||
compose:
|
||||
- '{{ open_asfa_compose_dir }}/docker-open-asfa-stack-db-test.yml'
|
||||
- '{{ open_asfa_compose_dir }}/docker-open-asfa-stack-test.yml'
|
||||
- '{{ open_asfa_compose_dir }}/docker-open-asfa-stack-couchbase-test.yml'
|
||||
|
||||
run_once: True
|
||||
when: docker_swarm_manager_main_node is defined and docker_swarm_manager_main_node | bool
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
version: '3.6'
|
||||
|
||||
networks:
|
||||
{% if open_asfa_behind_haproxy %}
|
||||
haproxy-public:
|
||||
external: true
|
||||
{% endif %}
|
||||
{{ open_asfa_docker_network }}:
|
||||
|
||||
volumes:
|
||||
{{ open_asfa_couchbase_volume }}:
|
||||
{% if open_asfa_couchbase_volume_type == "nfs4" %}
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: {{ open_asfa_couchbase_volume_type }}
|
||||
o: "{{ open_asfa_couchbase_volume_o }}"
|
||||
device: "{{ open_asfa_couchbase_volume_device }}"
|
||||
{% endif %}
|
||||
|
||||
services:
|
||||
couchbase:
|
||||
image: {{ open_asfa_couchbase_image }}
|
||||
networks:
|
||||
- {{ open_asfa_docker_network }}
|
||||
volumes:
|
||||
- {{ open_asfa_couchbase_volume }}:/opt/couchbase/var
|
||||
deploy:
|
||||
placement:
|
||||
constraints: [node.role == worker]
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 5s
|
||||
max_attempts: 3
|
||||
window: 120s
|
||||
logging:
|
||||
driver: 'journald'
|
|
@ -23,7 +23,7 @@ services:
|
|||
SCHEMA: {{ open_asfa_db_name }}
|
||||
DB_USER: {{ open_asfa_db_user }}
|
||||
DB_PASSWORD: {{ open_asfa_db_pwd }}
|
||||
AUTH_URL: {{ open_asfa_keylocak_auth_url }}
|
||||
AUTH_URL: {{ open_asfa_keycloak_auth_url }}
|
||||
SECRET: {{ open_asfa_keycloak_client_secret }}
|
||||
REALM: {{ open_asfa_keycloak_realm }}
|
||||
CLIENT: {{ open_asfa_keycloak_client_name }}
|
||||
|
|
Loading…
Reference in New Issue