diff --git a/group_vars/all.yml b/group_vars/all.yml index 15f993d1e..61b294282 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -46,6 +46,10 @@ api_explorer: artifact_name: api-explorer repository: "{{ nexus_repository.releases }}" version: 23.3.0 +audit_storage: + artifact_name: alfresco-audit-storage-distribution + repository: "{{ nexus_repository.enterprise_releases }}" + version: 1.0.0 search_enterprise: artifact_name: alfresco-elasticsearch-connector-distribution repository: "{{ nexus_repository.enterprise_releases }}" @@ -122,6 +126,10 @@ downloads: {{ adw.repository }}/{{ adw.artifact_name }}/{{ adw.version }}/{{ adw.artifact_name }}-{{ adw.version }}.zip adw_zip_sha1_checksum_url: >- {{ adw.repository }}/{{ adw.artifact_name }}/{{ adw.version }}/{{ adw.artifact_name }}-{{ adw.version }}.zip.sha1 + audit_storage_zip_url: >- + {{ audit_storage.repository }}/{{ audit_storage.artifact_name }}/{{ audit_storage.version }}/{{ audit_storage.artifact_name }}-{{ audit_storage.version }}.zip + audit_storage_zip_sha1_checksum_url: >- + {{ audit_storage.repository }}/{{ audit_storage.artifact_name }}/{{ audit_storage.version }}/{{ audit_storage.artifact_name }}-{{ audit_storage.version }}.zip.sha1 search_enterprise_zip_url: >- {{ search_enterprise.repository }}/{{ search_enterprise.artifact_name }}/{{ search_enterprise.version }}/{{ search_enterprise.artifact_name }}-{{ search_enterprise.version }}.zip search_enterprise_zip_sha1_url: >- diff --git a/inventory_ha.yml b/inventory_ha.yml index 2527bd58a..bdc336bad 100644 --- a/inventory_ha.yml +++ b/inventory_ha.yml @@ -67,6 +67,10 @@ all: hosts: sync.infra.local: + audit_storage: + hosts: + audit.infra.local: + other_repo_clients: hosts: diff --git a/inventory_local.yml b/inventory_local.yml index e23e4cb28..56b7b3a8c 100644 --- a/inventory_local.yml +++ b/inventory_local.yml @@ -53,6 +53,10 @@ all: children: repository: + audit_storage: + children: + repository: + other_repo_clients: hosts: diff --git a/inventory_ssh.yml b/inventory_ssh.yml index 6e5c754a1..96e1bb9f2 100644 --- a/inventory_ssh.yml +++ b/inventory_ssh.yml @@ -72,6 +72,11 @@ all: syncservice_1: ansible_host: targetIP + audit_storage: + hosts: + audit_storage_1: + ansible_host: targetIP + other_repo_clients: hosts: diff --git a/molecule/docker_enterprise/molecule.yml b/molecule/docker_enterprise/molecule.yml index 72e1ff31c..e02e3e0e6 100644 --- a/molecule/docker_enterprise/molecule.yml +++ b/molecule/docker_enterprise/molecule.yml @@ -27,6 +27,7 @@ platforms: - acc - adw - nginx + - audit_storage published_ports: - 0.0.0.0:443:443/tcp diff --git a/playbooks/acs.yml b/playbooks/acs.yml index 9ecfc26e0..32a56ba72 100644 --- a/playbooks/acs.yml +++ b/playbooks/acs.yml @@ -479,3 +479,37 @@ mode: "0755" tags: - sync + +- name: Audit Storage Role + hosts: audit_storage + gather_facts: false + roles: + - role: "../roles/audit_storage" + when: acs.edition == "Enterprise" + audit_storage_version: "{{ audit_storage.version }}" + audit_storage_zip_url: "{{ downloads.audit_storage_zip_url }}" + audit_storage_zip_sha1_url: "{{ downloads.search_enterprise_zip_sha1_url }}" + audit_storage_username: "{{ username }}" + audit_storage_group_name: "{{ group_name }}" + audit_storage_broker_url: "failover:({{ activemq_transport }}://{{ activemq_host }}:{{ ports_cfg.activemq[activemq_protocol] }})" + audit_storage_broker_username: "{{ activemq_username }}" + audit_storage_broker_password: "{{ activemq_password }}" + audit_storage_opensearch_url: "{{ elasticsearch_protocol }}://{{ elasticsearch_host }}:{{ ports_cfg.elasticsearch.http }}" + audit_storage_opensearch_username: "{{ elasticsearch_username }}" + audit_storage_opensearch_password: "{{ elasticsearch_password }}" + post_tasks: + - name: Update installation status file with Audit Storage + when: acs.edition == "Enterprise" + become: true + vars: + audit_storage_components: + audit_storage: "{{ audit_storage }}" + ansible.builtin.blockinfile: + block: "{{ audit_storage_components | to_nice_yaml(indent=2) }}" + create: true + path: "{{ ansible_installation_status_file }}" + marker_begin: AUDIT_STORAGE_BEGIN + marker_end: AUDIT_STORAGE_END + mode: "0755" + tags: + - audit_storage