-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathconverge.yml
More file actions
59 lines (59 loc) · 2.48 KB
/
converge.yml
File metadata and controls
59 lines (59 loc) · 2.48 KB
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
---
- name: Converge
hosts: all
vars:
molecule_nexus_username: "{{ lookup('env', 'NEXUS_USERNAME') }}"
molecule_nexus_password: "{{ lookup('env', 'NEXUS_PASSWORD') }}"
sync_amp_device_sync_version: 5.3.1
sync_amp_device_sync_artifact_name: alfresco-device-sync-repo
sync_amp_device_sync_repository: https://artifacts.alfresco.com/nexus/content/groups/private/org/alfresco/services/sync
sync_amp_device_sync_archive_url: "{{ sync_amp_device_sync_repository }}/{{ sync_amp_device_sync_artifact_name }}/{{ sync_amp_device_sync_version }}/{{ sync_amp_device_sync_artifact_name }}-{{ sync_amp_device_sync_version }}.amp"
roles:
- role: activemq
- role: nginx
tasks:
- name: Install PostgreSQL
ansible.builtin.include_role:
name: postgres
- name: Setup repository database
ansible.builtin.include_role:
name: postgres
tasks_from: setup_db
vars:
postgres_db_name: "{{ repository_db_name }}"
postgres_db_username: "{{ repository_db_username }}"
postgres_db_password: "{{ repo_db_password }}"
postgres_db_clients: "{{ groups.repository }}"
- name: Setup sync database
ansible.builtin.include_role:
name: postgres
tasks_from: setup_db
vars:
postgres_db_name: "{{ sync_db_name }}"
postgres_db_username: "{{ sync_db_username }}"
postgres_db_password: "{{ sync_db_password }}"
postgres_db_clients: "{{ groups.syncservice }}"
- name: Install Alfresco repository
ansible.builtin.include_role:
name: repository
vars:
repository_properties: "{{ global_properties }}"
repository_nexus_username: "{{ molecule_nexus_username }}"
repository_nexus_password: "{{ molecule_nexus_password }}"
repository_amp_downloads:
- url: "{{ sync_amp_device_sync_archive_url }}"
checksum: "sha1:{{ sync_amp_device_sync_archive_url }}.sha1"
dest: "{{ repository_content_folder }}/amps_repo/{{ sync_amp_device_sync_artifact_name }}.amp"
url_username: "{{ molecule_nexus_username }}"
url_password: "{{ molecule_nexus_password }}"
- name: Install Alfresco sync service
ansible.builtin.include_role:
name: sync
vars:
sync_zip_username: "{{ molecule_nexus_username }}"
sync_zip_password: "{{ molecule_nexus_password }}"
sync_environment:
JAVA_OPTS:
- -Xms512m
- -Xmx900m
- $JAVA_OPTS