Sling Distribution configuration package for publish farm replication for the Assets Link Share functionality.
Replication /var/dam/share
mvn clean install
-PautoInstallPackage -Daem.host=... -Daem.port=...
-PautoInstallPackagePublish -Daem.publish.host=... -Daem.publish.port=...
-PautoInstallPackagePublish2 -Daem.publish2.host=... -Daem.publish2.port=...
mvn clean install -PautoInstallPackage -PautoInstallPackagePublish -PautoInstallPackagePublish2 -Daem.port=34622 -Daem.publish.port=34623 -Daem.publish2.port=34625 '-Dsling.password=password' '-Dvault.password=password'
Author : 34622
Publish 1 : 34623
Publish 2 : 34625
Remember that for the User Sync (not this package, but related), it's important that all the user paths are the same on all environments. Therefore it's best to clone 1 publish, then change it's ClusterID and SlingID
# Reset Sling ID - stop AEM first
find crx-quickstart/launchpad/felix -name sling.id.file -print -exec rm {} \;
# Reset Cluster ID
java -jar oak-run.jar resetclusterid < repository path | Mongo URI >
Verification:
# Sling ID
http://pub1.local:34623/system/console/status-slingsettings
http://pub2.local:34625/system/console/status-slingsettings
# ClusterID
http://pub1.local:34623/system/console/status-Repository%20Apache%20Jackrabbit%20Oak
http://pub2.local:34625/system/console/status-Repository%20Apache%20Jackrabbit%20Oak
http://author.local:34622/libs/granite/distribution/content/distribution.html
http://pub1.local:34623/libs/granite/distribution/content/distribution.html
http://pub2.local:34625/libs/granite/distribution/content/distribution.html
http://pub1.local:34623/crx/de/index.jsp#/var/sling/distribution/packages/linksharesync-vlt/data
http://pub2.local:34625/crx/de/index.jsp#/var/sling/distribution/packages/linksharesync-vlt/data
http://pub1.local:34623/crx/de/index.jsp#/var/eventing/jobs/unassigned/org.apache.sling.distribution.queue.linksharesync-reverse-queue-agent.default
http://pub2.local:34625/crx/de/index.jsp#/var/eventing/jobs/unassigned/org.apache.sling.distribution.queue.linksharesync-reverse-queue-agent.default
cd ui.service-users
mvn clean install -PautoInstallPackage -PautoInstallPackagePublish -PautoInstallPackagePublish2 -Daem.port=34622 -Daem.publish.port=34623 -Daem.publish2.port=34625
Perform for Author and each Publish:
Creating service user and permissions uses the Netcentric ACL Tool: https://github.com/Netcentric/accesscontroltool
Download and install the 2 packages.
Edit the configuration for each (could be set by config, but already used in another project this was part of):
-
Set the Configuration storage path to
/apps/linksharesync/acls
http://author.local:34622/system/console/configMgr/biz.netcentric.cq.tools.actool.aceservice.impl.AceServiceImpl http://pub1.local:34623/system/console/configMgr/biz.netcentric.cq.tools.actool.aceservice.impl.AceServiceImpl http://pub2.local:34625/system/console/configMgr/biz.netcentric.cq.tools.actool.aceservice.impl.AceServiceImpl
-
Run
execute()
from JMX console:http://author.local:34622/system/console/jmx/biz.netcentric.cq.tools%3Atype%3DACTool http://pub1.local:34623/system/console/jmx/biz.netcentric.cq.tools%3Atype%3DACTool http://pub2.local:34625/system/console/jmx/biz.netcentric.cq.tools%3Atype%3DACTool
[https://docs.adobe.com/docs/en/aem/6-2/deploy/communities.html#Replicate the Crypto Key]
- Create/generate a password
- On author access the Web Console: http://author.local:34622/system/console/crypto
- Enter the password, click 'Protect'
- Copy the encrypted password
-
On author access the Web Console: http://author.local:34622/system/console/configMgr/
-
locate Adobe Granite Distribution - Encrypted Password Transport Secret Provider
-
Create a new configuration and enter the following details:
name: linksharesync-publishUser usename: linksharesync-admin password:
-
On each publish go to the User Admin and set the password for the linksharesync-admin user
http://pub1.local:34623/libs/granite/security/content/useradmin.html http://pub2.local:34625/libs/granite/security/content/useradmin.html
cd ui.apps
mvn clean install -PautoInstallPackage -PautoInstallPackagePublish -PautoInstallPackagePublish2 -Daem.port=34622 -Daem.publish.port=34623 -Daem.publish2.port=34625