Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"filename": "roles/activemq/molecule/default/tests/test_activemq.py",
"hashed_secret": "5316033288e30573a91a5401b359fa398f56bf17",
"is_verified": false,
"line_number": 19,
"line_number": 18,
"is_secret": false
}
],
Expand Down Expand Up @@ -188,5 +188,5 @@
}
]
},
"generated_at": "2025-03-10T12:30:17Z"
"generated_at": "2025-03-11T08:48:02Z"
}
1 change: 0 additions & 1 deletion 7.3.N-extra-vars.yml

This file was deleted.

1 change: 0 additions & 1 deletion 7.4.N-extra-vars.yml

This file was deleted.

11 changes: 0 additions & 11 deletions community-extra-vars.yml

This file was deleted.

2 changes: 1 addition & 1 deletion group_vars/all.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
acs_play_major_version: 23
# All vars have been moved to playbook/group_vars/*.yml and to version specific vars/*.yml files.
3 changes: 1 addition & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,11 @@ provisioner:
pipelining: True
ansible_args:
- -e
- "@../../${MOLECULE_IT_EXTRA_VARS}"
- "${MOLECULE_IT_EXTRA_VARS}"
- -e
- "@../../tests/test-ssl.yml"
inventory:
links:
group_vars: ../../group_vars
host_vars: host_vars
playbooks:
converge: ../../playbooks/acs.yml
2 changes: 1 addition & 1 deletion molecule/default/vars-rhel8.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MOLECULE_IT_IMAGE_ID: ami-07cca573a2270b39a # RHEL-8.9.0_HVM-20240327-x86_64-4-Hourly2-GP3
MOLECULE_IT_EXTRA_VARS: 7.4.N-extra-vars.yml
MOLECULE_IT_EXTRA_VARS: acs_play_major_version=74
MOLECULE_IT_TEST_CONFIG: tests/test-config-7.4.json
MOLECULE_IT_PLATFORM: rhel8
2 changes: 1 addition & 1 deletion molecule/default/vars-rocky8.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MOLECULE_IT_IMAGE_ID: ami-0ee382512e653ec35 # Rocky-8-EC2-Base-8.10-20240528.0.x86_64
MOLECULE_IT_EXTRA_VARS: 7.4.N-extra-vars.yml
MOLECULE_IT_EXTRA_VARS: acs_play_major_version=74
MOLECULE_IT_TEST_CONFIG: tests/test-config-7.4.json
MOLECULE_IT_PLATFORM: rocky8-74
2 changes: 1 addition & 1 deletion molecule/default/vars-rocky9.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MOLECULE_IT_IMAGE_ID: ami-0230bf6b41b114fef # Rocky-9-EC2-Base-9.4-20240523.0.x86_64
MOLECULE_IT_EXTRA_VARS: tests/test-extra-vars.yml
MOLECULE_IT_EXTRA_VARS: acs_play_major_version=23
MOLECULE_IT_TEST_CONFIG: tests/test-config.json
MOLECULE_IT_PLATFORM: rocky9
2 changes: 1 addition & 1 deletion molecule/default/vars-ubuntu-community.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MOLECULE_IT_IMAGE_ID: ami-0e9085e60087ce171 # amazon/ubuntu/images/hvm-ssd-gp3/ubuntu-noble-24.04-amd64-server-20241109
MOLECULE_IT_EXTRA_VARS: community-extra-vars.yml
MOLECULE_IT_EXTRA_VARS: acs_play_repository_acs_edition=Community
MOLECULE_IT_TEST_CONFIG: tests/test-config-community.json
MOLECULE_IT_PLATFORM: ubuntu-community
4 changes: 0 additions & 4 deletions molecule/default/vars-ubuntu18.yml

This file was deleted.

2 changes: 1 addition & 1 deletion molecule/default/vars-ubuntu22-73.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MOLECULE_IT_IMAGE_ID: ami-032a56ad5e480189c # ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20250112
MOLECULE_IT_EXTRA_VARS: 7.3.N-extra-vars.yml
MOLECULE_IT_EXTRA_VARS: acs_play_major_version=73
MOLECULE_IT_TEST_CONFIG: tests/test-config-7.3.json
MOLECULE_IT_PLATFORM: ubuntu22-73
3 changes: 1 addition & 2 deletions molecule/docker_community/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ provisioner:
pipelining: true
ansible_args:
- -e
- "@../../community-extra-vars.yml"
- "acs_play_repository_acs_edition=Community"
inventory:
links:
group_vars: ../../group_vars
host_vars: host_vars
playbooks:
prepare: ../default/prepare.yml
Expand Down
1 change: 0 additions & 1 deletion molecule/docker_enterprise/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ provisioner:
- "@../../tests/test-ssl.yml"
inventory:
links:
group_vars: ../../group_vars
host_vars: host_vars
playbooks:
prepare: ../default/prepare.yml
Expand Down
1 change: 0 additions & 1 deletion molecule/elasticsearch/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ provisioner:
- autogen_unsecure_secrets=true
inventory:
links:
group_vars: ../../group_vars
host_vars: host_vars
playbooks:
prepare: ../default/prepare.yml
Expand Down
4 changes: 0 additions & 4 deletions molecule/identity/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@ provisioner:
config_options:
defaults:
pipelining: True
ansible_args:
- -e
- "@../../tests/test-extra-vars.yml"
inventory:
links:
group_vars: ../../group_vars
host_vars: host_vars
verifier:
name: ansible
3 changes: 1 addition & 2 deletions molecule/multimachine/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,11 @@ provisioner:
pipelining: True
ansible_args:
- -e
- "@../../${MOLECULE_IT_EXTRA_VARS}"
- "${MOLECULE_IT_EXTRA_VARS}"
- -e
- "@../../tests/test-ssl.yml"
inventory:
links:
group_vars: ../../group_vars
host_vars: ./host_vars
hosts: ./hosts.yml
playbooks:
Expand Down
2 changes: 1 addition & 1 deletion molecule/multimachine/vars.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MOLECULE_IT_IMAGE_ID: ami-07d4917b6f95f5c2a # RHEL-9.4.0_HVM-20240605-x86_64-82-Hourly2-GP3
MOLECULE_IT_EXTRA_VARS: tests/test-extra-vars.yml
MOLECULE_IT_EXTRA_VARS: acs_play_major_version=23
MOLECULE_IT_TEST_CONFIG: tests/test-config.json
MOLECULE_IT_PLATFORM: multimachine
1 change: 0 additions & 1 deletion molecule/opensearch/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ provisioner:
- "@../../tests/test-ssl.yml"
inventory:
links:
group_vars: ../../group_vars
host_vars: ./host_vars
hosts: ./hosts.yml
playbooks:
Expand Down
1 change: 0 additions & 1 deletion molecule/pki/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ provisioner:
converge: ../../playbooks/acs.yml
inventory:
links:
group_vars: ../../group_vars
host_vars: host_vars
verifier:
name: ansible
1 change: 0 additions & 1 deletion molecule/prerun_network_checks/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ provisioner:
- "@../../tests/test-ssl.yml"
inventory:
links:
group_vars: ../../group_vars
host_vars: host_vars
verifier:
name: ansible
6 changes: 3 additions & 3 deletions playbooks/acs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
- name: Include vars based on acs major version
ansible.builtin.import_playbook: include-vars.yml

- name: Set dynamic facts for play
ansible.builtin.import_playbook: dynamic-facts.yml

- name: Check if current OS version is in the supported matrix
hosts: all:!external
gather_facts: true
Expand Down Expand Up @@ -29,9 +32,6 @@
- name: Handle secrets
ansible.builtin.import_playbook: secrets.yml

- name: Set dynamic facts for play
ansible.builtin.import_playbook: dynamic-facts.yml

- name: Generate hosts certificates
vars:
p12_passphrase: "{{ hostvars.localhost.certs_p12_passphrase }}"
Expand Down
10 changes: 10 additions & 0 deletions playbooks/dynamic-facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@
- name: Set acs edition
ansible.builtin.set_fact:
acs_is_enterprise: "{{ acs_play_repository_acs_edition == 'Enterprise' }}"

- name: Override repo related vars when using community
ansible.builtin.set_fact:
acs_play_repository_acs_version: "{{ acs_play_community_repository_acs_version }}"
acs_play_repository_acs_repository: "{{ acs_play_community_repository_acs_repository }}"
acs_play_repository_acs_artifact_name: "{{ acs_play_community_repository_acs_artifact_name }}"
acs_play_repository_amp_googledrive_repo_version: "{{ acs_play_community_repository_amp_googledrive_repo_version }}"
acs_play_repository_amp_googledrive_repo_repository: "{{ acs_play_community_repository_amp_googledrive_repo_repository }}"
acs_play_repository_amp_googledrive_repo_artifact_name: "{{ acs_play_community_repository_amp_googledrive_repo_artifact_name }}"
when: not acs_is_enterprise
1 change: 1 addition & 0 deletions playbooks/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# For more information please have a look at the
# [security_doc](https://github.com/Alfresco/alfresco-ansible-deployment/blob/master/docs/SECURITY.md#specify-trustworthy-applications)
acs_play_known_urls: []
acs_play_major_version: 23

artifacts_repositories:
enterprise:
Expand Down
7 changes: 7 additions & 0 deletions playbooks/group_vars/repository.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ acs_play_repository_acs_repository: "{{ nexus_repository.enterprise_releases }}"
acs_play_repository_acs_archive_url: "{{ acs_play_repository_acs_repository }}/{{ acs_play_repository_acs_artifact_name }}/{{ acs_play_repository_acs_version }}/{{ acs_play_repository_acs_artifact_name }}-{{ acs_play_repository_acs_version }}.zip"
acs_play_repository_acs_archive_checksum_url: "sha1:{{ acs_play_repository_acs_archive_url }}.sha1"

# Section for community vars
acs_play_community_repository_acs_artifact_name: alfresco-content-services-community-distribution
acs_play_community_repository_acs_repository: "{{ nexus_repository.releases }}"

acs_play_repository_jdbc_driver_class: "{{ default_jdbc_pg_driver_class }}"
acs_play_repository_jdbc_driver_version: "{{ acs_play_jdbc_pg_driver_version }}"
acs_play_repository_jdbc_driver_url: >-
Expand All @@ -26,6 +30,9 @@ acs_play_repository_amp_googledrive_repo_artifact_name: alfresco-googledrive-rep
acs_play_repository_amp_googledrive_repo_repository: "{{ nexus_repository.enterprise_releases }}/integrations"
acs_play_repository_amp_googledrive_repo_archive_url: "{{ acs_play_repository_amp_googledrive_repo_repository }}/{{ acs_play_repository_amp_googledrive_repo_artifact_name }}/{{ acs_play_repository_amp_googledrive_repo_version }}/{{ acs_play_repository_amp_googledrive_repo_artifact_name }}-{{ acs_play_repository_amp_googledrive_repo_version }}.amp"

acs_play_community_repository_amp_googledrive_repo_artifact_name: alfresco-googledrive-repo-community
acs_play_community_repository_amp_googledrive_repo_repository: "{{ nexus_repository.releases }}/integrations"

acs_play_repository_amp_googledrive_share_artifact_name: alfresco-googledrive-share
acs_play_repository_amp_googledrive_share_repository: "{{ nexus_repository.releases }}/integrations"
acs_play_repository_amp_googledrive_share_archive_url: "{{ acs_play_repository_amp_googledrive_share_repository }}/{{ acs_play_repository_amp_googledrive_share_artifact_name }}/{{ acs_play_repository_amp_googledrive_share_version }}/{{ acs_play_repository_amp_googledrive_share_artifact_name }}-{{ acs_play_repository_amp_googledrive_share_version }}.amp"
Expand Down
1 change: 0 additions & 1 deletion roles/activemq/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ provisioner:
inventory:
links:
host_vars: host_vars
group_vars: ../../../../group_vars
verifier:
name: testinfra
env:
Expand Down
2 changes: 0 additions & 2 deletions roles/activemq/molecule/default/tests/test_activemq.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ def get_ansible_vars(host):
common_vars = "file=../../../common/vars/main.yml name=common_vars"
common_defaults = "file=../../../common/defaults/main.yml name=common_defaults"
activemq_defaults = "file=../../defaults/main.yml name=activemq_defaults"
group_vars = "file=../../../../group_vars/all.yml name=group_vars"
secrets_vars = "file=../../../../vars/secrets.yml name=secrets_vars"
ansible_vars = host.ansible("include_vars", java_role)["ansible_facts"]["java_role"]
ansible_vars.update(host.ansible("include_vars", common_defaults)["ansible_facts"]["common_defaults"])
ansible_vars.update(host.ansible("include_vars", common_vars)["ansible_facts"]["common_vars"])
ansible_vars.update(host.ansible("include_vars", activemq_role)["ansible_facts"]["activemq_role"])
ansible_vars.update(host.ansible("include_vars", group_vars)["ansible_facts"]["group_vars"])
ansible_vars.update(host.ansible("include_vars", secrets_vars)["ansible_facts"]["secrets_vars"])
ansible_vars.update(host.ansible("include_vars", activemq_defaults)["ansible_facts"]["activemq_defaults"])
return ansible_vars
Expand Down
1 change: 0 additions & 1 deletion roles/adf_app/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ provisioner:
inventory:
links:
host_vars: host_vars
group_vars: ../../../../group_vars
verifier:
name: ansible
1 change: 0 additions & 1 deletion roles/audit_storage/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ provisioner:
- "@../../../../tests/molecule/secrets.yml"
inventory:
links:
group_vars: ../../../../group_vars
host_vars: host_vars
verifier:
name: ansible
1 change: 0 additions & 1 deletion roles/common/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ provisioner:
pipelining: True
inventory:
links:
group_vars: ../../../../group_vars
host_vars: host_vars
verifier:
name: testinfra
Expand Down
1 change: 0 additions & 1 deletion roles/elasticsearch/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ provisioner:
inventory:
links:
host_vars: host_vars
group_vars: ../../../../group_vars
verifier:
name: ansible
1 change: 0 additions & 1 deletion roles/identity/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ provisioner:
inventory:
links:
host_vars: host_vars
group_vars: ../../../../group_vars
verifier:
name: ansible

Expand Down
1 change: 0 additions & 1 deletion roles/java/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ provisioner:
pipelining: True
inventory:
links:
group_vars: ../../../../group_vars
host_vars: host_vars
1 change: 0 additions & 1 deletion roles/nginx/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ provisioner:
inventory:
links:
host_vars: host_vars
group_vars: ../../../../group_vars
verifier:
name: ansible
1 change: 0 additions & 1 deletion roles/postgres/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ provisioner:
pipelining: True
inventory:
links:
group_vars: ../../../../group_vars
host_vars: host_vars
verifier:
name: testinfra
3 changes: 0 additions & 3 deletions roles/repository/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,11 @@ provisioner:
ansible_args:
- -e
- "@../../../../tests/molecule/secrets.yml"
- -e
- "@../../../../tests/test-extra-vars.yml"
config_options:
defaults:
pipelining: true
inventory:
links:
group_vars: ../../../../group_vars
host_vars: host_vars
verifier:
name: testinfra
Expand Down
2 changes: 0 additions & 2 deletions roles/repository/molecule/default/tests/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ def get_ansible_vars(host):
java_role = "file=../java/vars/main.yml name=java_role"
common_vars = "file=../../../common/vars/main.yml name=common_vars"
common_defaults = "file=../../../common/defaults/main.yml name=common_defaults"
group_vars = "file=../../../../group_vars/all.yml name=group_vars"
ansible_vars = host.ansible("include_vars", group_vars)["ansible_facts"]["group_vars"]
ansible_vars.update(host.ansible("include_vars", common_defaults)["ansible_facts"]["common_defaults"])
ansible_vars.update(host.ansible("include_vars", common_vars)["ansible_facts"]["common_vars"])
ansible_vars.update(host.ansible("include_vars", java_role)["ansible_facts"]["java_role"])
Expand Down
1 change: 0 additions & 1 deletion roles/search/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ provisioner:
- "@../../../../tests/molecule/secrets.yml"
inventory:
links:
group_vars: ../../../../group_vars
host_vars: host_vars
verifier:
name: testinfra
Expand Down
1 change: 0 additions & 1 deletion roles/search_enterprise/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ provisioner:
- "@../../../../tests/molecule/secrets.yml"
inventory:
links:
group_vars: ../../../../group_vars
host_vars: host_vars
verifier:
name: ansible
1 change: 0 additions & 1 deletion roles/sfs/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ provisioner:
inventory:
links:
host_vars: host_vars
group_vars: ../../../../group_vars
verifier:
name: testinfra
env:
Expand Down
1 change: 0 additions & 1 deletion roles/sync/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ provisioner:
inventory:
links:
host_vars: host_vars
group_vars: ../../../../group_vars
verifier:
name: testinfra
env:
Expand Down
2 changes: 0 additions & 2 deletions roles/sync/molecule/default/tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ def get_ansible_vars(host):
java_role = "file=../java/vars/main.yml name=java_role"
common_vars = "file=../../../common/vars/main.yml name=common_vars"
common_defaults = "file=../../../common/defaults/main.yml name=common_defaults"
common_hosts = "file=../../../../group_vars/all.yml name=common_hosts"
syncservices = "file=../../vars/main.yml name=syncservices"
ansible_vars = host.ansible("include_vars", java_role)["ansible_facts"]["java_role"]
ansible_vars.update(host.ansible("include_vars", java_role)["ansible_facts"]["java_role"])
ansible_vars.update(host.ansible("include_vars", common_vars)["ansible_facts"]["common_vars"])
ansible_vars.update(host.ansible("include_vars", common_hosts)["ansible_facts"]["common_hosts"])
ansible_vars.update(host.ansible("include_vars", common_defaults)["ansible_facts"]["common_defaults"])
ansible_vars.update(host.ansible("include_vars", syncservices)["ansible_facts"]["syncservices"])
return ansible_vars
Expand Down
1 change: 0 additions & 1 deletion roles/tomcat/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ provisioner:
inventory:
links:
host_vars: host_vars
group_vars: ../../../../group_vars
verifier:
name: testinfra
env:
Expand Down
Loading
Loading