-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPSEXP-2880 Add audit-storage role (#996)
- Loading branch information
Showing
24 changed files
with
356 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,10 @@ all: | |
hosts: | ||
sync.infra.local: | ||
|
||
audit_storage: | ||
hosts: | ||
audit.infra.local: | ||
|
||
other_repo_clients: | ||
hosts: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,10 @@ all: | |
children: | ||
repository: | ||
|
||
audit_storage: | ||
children: | ||
repository: | ||
|
||
other_repo_clients: | ||
hosts: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
# defaults file for audit_storage | ||
audit_storage_version: "1.0.0" | ||
audit_storage_zip_url: https://nexus.alfresco.com/nexus/repository/enterprise-releases/org/alfresco/alfresco-audit-storage-distribution/{{ audit_storage_version }}/alfresco-audit-storage-distribution-{{ audit_storage_version }}.zip | ||
audit_storage_zip_sha1_url: https://nexus.alfresco.com/nexus/repository/enterprise-releases/org/alfresco/alfresco-audit-storage-distribution/{{ audit_storage_version }}/alfresco-audit-storage-distribution-{{ audit_storage_version }}.zip.sha1 | ||
|
||
audit_storage_artifact_name: alfresco-audit-storage-app | ||
|
||
audit_storage_username: alfresco | ||
audit_storage_group_name: alfresco | ||
|
||
audit_storage_server_port: 8083 | ||
|
||
audit_storage_broker_url: failover:(nio://localhost:61616)?timeout=3000 | ||
audit_storage_broker_username: '' | ||
audit_storage_broker_password: '' | ||
audit_storage_opensearch_url: http://localhost:9200 | ||
audit_storage_opensearch_username: '' | ||
audit_storage_opensearch_password: '' | ||
|
||
audit_storage_default_environment: | ||
SERVER_PORT: "{{ audit_storage_server_port }}" | ||
SPRING_ACTIVEMQ_BROKERURL: "{{ audit_storage_broker_url }}" | ||
SPRING_ACTIVEMQ_USER: "{{ audit_storage_broker_username }}" | ||
SPRING_ACTIVEMQ_PASSWORD: "{{ audit_storage_broker_password }}" | ||
AUDIT_ENTRYSTORAGE_OPENSEARCH_CONNECTOR_URI: "{{ audit_storage_opensearch_url }}" | ||
AUDIT_ENTRYSTORAGE_OPENSEARCH_CONNECTOR_USERNAME: "{{ audit_storage_opensearch_username }}" | ||
AUDIT_ENTRYSTORAGE_OPENSEARCH_CONNECTOR_PASSWORD: "{{ audit_storage_opensearch_password }}" | ||
AUDIT_EVENTINGESTION_URI: activemq:topic:alfresco.repo.event2 | ||
audit_storage_environment: {} | ||
|
||
audit_storage_java_bin_path: /opt/openjdk-17.0.11/bin/java | ||
|
||
audit_storage_binaries_dir: "/opt/alfresco/audit-storage-{{ audit_storage_version }}" | ||
audit_storage_config_dir: "/etc/alfresco/audit-storage" | ||
|
||
audit_storage_systemd_service_unit_name: "alfresco-audit-storage" | ||
audit_storage_systemd_service_unit_description: "Alfresco Audit Storage" | ||
audit_storage_systemd_service_exec_start: "{{ audit_storage_java_bin_path }} -jar {{ audit_storage_artifact_path }}" | ||
audit_storage_systemd_service_user: "{{ audit_storage_username }}" | ||
|
||
audit_storage_systemd_service_unit_after: syslog.target network.target local-fs.target remote-fs.target nss-lookup.target | ||
audit_storage_systemd_service_type: simple | ||
audit_storage_systemd_service_exec_stop: kill -15 $MAINPID | ||
audit_storage_systemd_service_working_directory: /tmp | ||
audit_storage_systemd_service_additional_options: {} | ||
audit_storage_systemd_service_state: started | ||
audit_storage_systemd_service_enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
# handlers file for audit_storage | ||
- name: Reload systemd | ||
become: true | ||
ansible.builtin.systemd: | ||
daemon_reload: true | ||
|
||
- name: Restart {{ audit_storage_systemd_service_unit_name }} | ||
become: true | ||
ansible.builtin.systemd: | ||
name: "{{ audit_storage_systemd_service_unit_name }}" | ||
state: restarted | ||
when: audit_storage_systemd_service_state == 'started' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
galaxy_info: | ||
author: Alfresco Ops Readiness | ||
description: This role installs and configures the audit storage for Alfresco | ||
company: Hyland Software | ||
|
||
# If the issue tracker for your role is not on github, uncomment the | ||
# next line and provide a value | ||
# issue_tracker_url: http://example.com/issue/tracker | ||
|
||
license: Apache-2.0 | ||
|
||
min_ansible_version: "2.12" | ||
|
||
platforms: | ||
- name: Ubuntu | ||
versions: | ||
- bionic | ||
- focal | ||
- name: EL | ||
versions: | ||
- "8" | ||
- "9" | ||
|
||
galaxy_tags: [] | ||
# List tags for your role here, one per line. A tag is a keyword that describes | ||
# and categorizes the role. Users find roles by searching for tags. Be sure to | ||
# remove the '[]' above, if you add tags to this list. | ||
# | ||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters. | ||
# Maximum 20 tags per role. | ||
|
||
dependencies: | ||
- role: java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
roles: | ||
- role: activemq | ||
- role: elasticsearch | ||
- role: audit_storage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ansible_user: ansible |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
driver: | ||
name: docker | ||
platforms: | ||
- name: instance | ||
image: $MOLECULE_ROLE_IMAGE | ||
dockerfile: ../../../../tests/molecule/Dockerfile-noprivs.j2 | ||
command: "/lib/systemd/systemd" | ||
privileged: true | ||
tmpfs: | ||
- /run | ||
- /run/lock | ||
- /tmp | ||
volume_mounts: | ||
- "/sys/fs/cgroup:/sys/fs/cgroup:ro" | ||
groups: | ||
- audit_storage | ||
- activemq | ||
- elasticsearch | ||
provisioner: | ||
name: ansible | ||
ansible_args: | ||
- -e | ||
- "@../../../../tests/molecule/secrets.yml" | ||
inventory: | ||
links: | ||
group_vars: ../../../../group_vars | ||
host_vars: host_vars | ||
verifier: | ||
name: ansible |
Oops, something went wrong.