Skip to content

Sling Distribution configuration package for publish farm replication for the Assets Link Share functionality.

Notifications You must be signed in to change notification settings

blair-robertson/sling-distribution-linksharesync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sling Distribution configuration package for publish farm replication for the Assets Link Share functionality.

Replication /var/dam/share

Building

mvn clean install

Available Profiles

-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'

Default Setup

Author    : 34622
Publish 1 : 34623
Publish 2 : 34625

Cloning Publish instance

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

Investigation Links

Distribution UI

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

Packages waiting to be distributed (only ADD/MODIFY, deletes do not have packages only events)

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

Events

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

Install Service Users first

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):

  1. 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

  2. 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

Create Encrypted Password Transport Secret Provider

Replicate the Crypto Keys

[https://docs.adobe.com/docs/en/aem/6-2/deploy/communities.html#Replicate the Crypto Key]

Encrypt a password

  1. Create/generate a password
  2. On author access the Web Console: http://author.local:34622/system/console/crypto
  3. Enter the password, click 'Protect'
  4. Copy the encrypted password

Create the Secret Provider

  1. On author access the Web Console: http://author.local:34622/system/console/configMgr/

  2. locate Adobe Granite Distribution - Encrypted Password Transport Secret Provider

  3. Create a new configuration and enter the following details:

    name: linksharesync-publishUser usename: linksharesync-admin password:

Set password on each publish

  1. 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

Install the UI.Apps

cd ui.apps
mvn clean install -PautoInstallPackage -PautoInstallPackagePublish -PautoInstallPackagePublish2 -Daem.port=34622 -Daem.publish.port=34623 -Daem.publish2.port=34625

About

Sling Distribution configuration package for publish farm replication for the Assets Link Share functionality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published