Skip to content

Commit

Permalink
hook in acs playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn committed Nov 26, 2024
1 parent 35c026e commit eed77e9
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 0 deletions.
8 changes: 8 additions & 0 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
repository: "{{ nexus_repository.enterprise_releases }}"
version: 1.0.0
search_enterprise:
artifact_name: alfresco-elasticsearch-connector-distribution
repository: "{{ nexus_repository.enterprise_releases }}"
Expand Down Expand Up @@ -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: >-
Expand Down
4 changes: 4 additions & 0 deletions inventory_ha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ all:
hosts:
sync.infra.local:

audit_storage:
hosts:
audit.infra.local:

other_repo_clients:
hosts:

Expand Down
4 changes: 4 additions & 0 deletions inventory_local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ all:
children:
repository:

audit_storage:
children:
repository:

other_repo_clients:
hosts:

Expand Down
5 changes: 5 additions & 0 deletions inventory_ssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ all:
syncservice_1:
ansible_host: targetIP

audit_storage:
hosts:
audit_storage_1:
ansible_host: targetIP

other_repo_clients:
hosts:

Expand Down
1 change: 1 addition & 0 deletions molecule/docker_enterprise/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ platforms:
- acc
- adw
- nginx
- audit_storage
published_ports:
- 0.0.0.0:443:443/tcp

Expand Down
34 changes: 34 additions & 0 deletions playbooks/acs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eed77e9

Please sign in to comment.