Skip to content

Commit 6be4f8d

Browse files
Merge pull request #37 from wttech/upgrade-2026-02
Upgrade to recent AEMC
2 parents 7e919a1 + e0dd9a5 commit 6be4f8d

17 files changed

Lines changed: 830 additions & 60 deletions

File tree

examples/controller/src/ansible/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ collections:
1111
- name: community.general
1212
version: 2.4.0
1313
- name: wttech.aem
14-
version: 2.0.8
14+
version: 2.0.16

examples/local/group_vars/all.yml

Lines changed: 105 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22

3-
aem_root_dir: "{{ playbook_dir }}/aem_root"
4-
aem_home_dir: "{{ aem_root_dir }}/home"
3+
aem_home_dir: "{{ playbook_dir }}/aem/home"
54
aem_tmp_dir: "{{ aem_home_dir }}/tmp"
65
aem_lib_dir: "{{ aem_home_dir }}/lib"
76
aem_tool_dir: "{{ aem_home_dir }}/opt"
@@ -117,33 +116,39 @@ aem_config_dict:
117116
- "org.osgi.service.component.runtime.ServiceComponentRuntime"
118117
- "java.util.ResourceBundle"
119118
received_max_age: 5s
119+
# OSGi components state tracking
120+
component_stable:
121+
skip: false
122+
pids:
123+
include: ['com.day.crx.packaging.*', 'org.apache.sling.installer.*']
124+
exclude: ['org.apache.sling.installer.hc.*', 'org.apache.sling.installer.core.impl.console.*']
125+
match:
126+
"disabled": []
127+
"no config": []
128+
"unsatisfied (reference)": []
129+
"satisfied": []
120130
# Sling Installer tracking
121131
installer:
132+
skip: false
122133
# JMX state checking
123134
state: true
124135
# Pause Installation nodes checking
125136
pause: true
137+
# Specific endpoints / paths (like login page)
138+
path_ready:
139+
timeout: 10s
140+
login_page:
141+
skip: false
142+
path: "/libs/granite/core/content/login.html"
143+
status_code: 200
144+
contained_text: QUICKSTART_HOMEPAGE
126145

127146
# Managed locally (set up automatically)
128147
local:
129148
# Current runtime dir (Sling launchpad, JCR repository)
130149
unpack_dir: "{{ aem_home_dir }}/var/instance"
131150
# Archived runtime dir (AEM backup files '*.aemb.zst')
132151
backup_dir: "{{ aem_home_dir }}/var/backup"
133-
# Additional tools needed to manage instance
134-
tool_dir: "{{ aem_tool_dir }}"
135-
136-
# Oak Run tool options (offline instance management)
137-
oak_run:
138-
download_url: "https://repo1.maven.org/maven2/org/apache/jackrabbit/oak-run/1.44.0/oak-run-1.44.0.jar"
139-
store_path: "crx-quickstart/repository/segmentstore"
140-
141-
# Source files
142-
quickstart:
143-
# AEM SDK ZIP or JAR
144-
dist_file: "{{ aem_home_dir }}/lib/{aem-sdk,cq-quickstart}-*.{zip,jar}"
145-
# AEM License properties file
146-
license_file: "{{ aem_home_dir }}/lib/license.properties"
147152

148153
# Status discovery (timezone, AEM version, etc)
149154
status:
@@ -162,6 +167,7 @@ aem_config_dict:
162167
package:
163168
# Force re-uploading/installing of snapshot AEM packages (just built / unreleased)
164169
snapshot_patterns: [ "**/*-SNAPSHOT.zip" ]
170+
snapshot_ignored: false
165171
# Use checksums to avoid re-deployments when snapshot AEM packages are unchanged
166172
snapshot_deploy_skipping: true
167173
# Disable following workflow launchers for a package deployment time only
@@ -175,6 +181,18 @@ aem_config_dict:
175181
console: false
176182
# Fail on case 'installed with errors'
177183
strict: true
184+
# Number of changes after which the commit to the repository is performed
185+
install_save_threshold: 1024
186+
# Allows to relax dependency handling if needed
187+
install_dependency_handling: required
188+
# Controls how 'rep:policy' nodes are handled during import
189+
install_ac_handling: ''
190+
# Determines whether a copy of the package is created during installation
191+
install_extract_only: snapshot
192+
193+
# 'SSL By Default'
194+
ssl:
195+
setup_timeout: 30s
178196

179197
# OSGi Framework
180198
osgi:
@@ -186,43 +204,41 @@ aem_config_dict:
186204
start_level: 20
187205
refresh_packages: true
188206

207+
# Force re-uploading/installing of snapshot OSGi bundles
208+
snapshot_patterns: [ "**/*-SNAPSHOT.jar" ]
209+
snapshot_ignored: false
210+
# Use checksums to avoid re-installations when snapshot OSGi bundles are unchanged
211+
snapshot_install_skipping: true
212+
213+
# OAK Repository
214+
oak:
215+
index:
216+
await_not_reindexed_timeout: 60m
217+
189218
# Crypto Support
190219
crypto:
191220
key_bundle_symbolic_name: com.adobe.granite.crypto.file
192221

222+
# Replication
223+
replication:
224+
bundle_symbolic_name: com.day.cq.cq-replication
225+
193226
# Workflow Manager
194227
workflow:
195228
launcher:
196229
lib_root: /libs/settings/workflow/launcher
197230
config_root: /conf/global/settings/workflow/launcher
198231
toggle_retry:
199-
timeout: 5m
232+
timeout: 10m
200233
delay: 10s
201234

202-
java:
203-
# Require following versions before e.g running AEM instances
204-
version_constraints: ">= 11, < 12"
205-
206-
# Pre-installed local JDK dir
207-
# a) keep it empty to download open source Java automatically for current OS and architecture
208-
# b) set it to absolute path or to env var '[[.Env.JAVA_HOME]]' to indicate where closed source Java like Oracle is installed
209-
home_dir: ""
210-
211-
# Auto-installed JDK options
212-
download:
213-
# Source URL with template vars support
214-
url: "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.18%2B10/OpenJDK11U-jdk_[[.Arch]]_[[.Os]]_hotspot_11.0.18_10.[[.ArchiveExt]]"
215-
# Map source URL template vars to be compatible with Adoptium Java
216-
replacements:
217-
# Var 'Os' (GOOS)
218-
"darwin": "mac"
219-
# Var 'Arch' (GOARCH)
220-
"x86_64": "x64"
221-
"amd64": "x64"
222-
"386": "x86-32"
223-
# enforce non-ARM Java as some AEM features are not working on ARM (e.g Scene7)
224-
"arm64": "x64"
225-
"aarch64": "x64"
235+
base:
236+
# Location of library files (AEM SDK ZIP, Quickstart JAR & License, Crypto keys, service packs, additional packages, etc.)
237+
lib_dir: "{{ aem_lib_dir }}"
238+
# Location of temporary files (downloaded AEM packages, etc)
239+
tmp_dir: "{{ aem_tmp_dir }}"
240+
# Location of supportive tools (downloaded Java, OakRun, unpacked AEM SDK)
241+
tool_dir: "{{ aem_tool_dir }}"
226242

227243
output:
228244
log:
@@ -231,8 +247,51 @@ aem_config_dict:
231247
# Controls where outputs and logs should be written to when format is 'text' (console|file|both|none)
232248
mode: both
233249

234-
base:
235-
# Location of temporary files (downloaded AEM packages, etc)
236-
tmp_dir: "{{ aem_tmp_dir }}"
237-
# Location of supportive tools (downloaded Java, OakRun, unpacked AEM SDK)
238-
tool_dir: "{{ aem_tool_dir }}"
250+
vendor:
251+
# AEM instance source files
252+
quickstart:
253+
# AEM SDK ZIP or JAR
254+
dist_file: "{{ aem_home_dir }}/lib/{aem-sdk,cq-quickstart}-*.{zip,jar}"
255+
# AEM License properties file
256+
license_file: "{{ aem_home_dir }}/lib/license.properties"
257+
258+
# AEM SDK source files
259+
sdk:
260+
# Controls which distribution of dispatcher is unpacked (auto|unix|windows)
261+
os: auto
262+
263+
# JDK used to: run AEM instances, build OSGi bundles, assemble AEM packages
264+
java:
265+
# Require following versions before e.g running AEM instances
266+
version_constraints: [">= 1.8, < 1.9", ">= 11, < 12", ">= 17, < 18", ">= 21, < 22"]
267+
268+
# Pre-installed local JDK dir
269+
# a) keep it empty to download open source Java automatically for current OS and architecture
270+
# b) set it to absolute path or to env var '[[.Env.JAVA_HOME]]' to indicate where closed source Java like Oracle is installed
271+
home_dir: ""
272+
273+
# Auto-installed JDK options
274+
download:
275+
# Source URL with template vars support
276+
url: "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.25%2B9/OpenJDK11U-jdk_[[.Arch]]_[[.Os]]_hotspot_11.0.25_9.[[.ArchiveExt]]"
277+
# Map source URL template vars to be compatible with Adoptium Java
278+
replacements:
279+
# Var 'Os' (GOOS)
280+
"darwin": "mac"
281+
# Var 'Arch' (GOARCH)
282+
"x86_64": "x64"
283+
"amd64": "x64"
284+
"386": "x86-32"
285+
# enforce non-ARM Java as some AEM features are not working on ARM (e.g Scene7)
286+
"arm64": "x64"
287+
"aarch64": "x64"
288+
289+
# Oak Run tool options (offline instance management)
290+
oak_run:
291+
download_url: "https://repo1.maven.org/maven2/org/apache/jackrabbit/oak-run/1.72.0/oak-run-1.72.0.jar"
292+
store_path: "crx-quickstart/repository/segmentstore"
293+
294+
# Pre-installed local JAR file
295+
# a) keep it empty to download it automatically
296+
# b) set it to an absolute path to skip downloading
297+
jar_file: ""

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace: wttech
88
name: aem
99

1010
# The version of the collection. Must be compatible with semantic versioning
11-
version: "2.0.9"
11+
version: "--"
1212

1313
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1414
readme: README.md

plugins/action/content.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from __future__ import (absolute_import, division, print_function)
2+
3+
__metaclass__ = type
4+
5+
from ..module_utils.action import AemActionBase
6+
7+
8+
class ActionModule(AemActionBase):
9+
pass

plugins/action/instance_backup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from __future__ import (absolute_import, division, print_function)
2+
3+
__metaclass__ = type
4+
5+
from ..module_utils.action import AemActionBase
6+
7+
8+
class ActionModule(AemActionBase):
9+
pass

plugins/action/oak.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from __future__ import (absolute_import, division, print_function)
2+
3+
__metaclass__ = type
4+
5+
from ..module_utils.action import AemActionBase
6+
7+
8+
class ActionModule(AemActionBase):
9+
pass

plugins/action/replication.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from __future__ import (absolute_import, division, print_function)
2+
3+
__metaclass__ = type
4+
5+
from ..module_utils.action import AemActionBase
6+
7+
8+
class ActionModule(AemActionBase):
9+
pass

0 commit comments

Comments
 (0)