gradle-aem-plugin
gradle-aem-plugin copied to clipboard
Updating password should be done in provision task
https://github.com/wttech/gradle-aem-plugin/blob/master/src/main/kotlin/com/cognifide/gradle/aem/common/instance/LocalInstance.kt#L308
the side effect possible is that when calling instanceUp
task is implemented as starting systemd service, then when instance is already up then there is no effective trigger that will cause updating password.
as a workaround now AEM instance need to be manually restarted in such case or additional instanceUp
gradle task call need to be run to have desired password set up.
to be implemented as provisioner built-in step or explicitly defined
provisioner { updateAdminPassword() }
reported by @krzysztofadamowski
hmm or it could stay as is but password should be provided as environment variable passed to the VM via custom_data (cloud init) as mentioned in wttech-private/gat#235
and GAP should be able to read that value; e.g when there is no instance.default.password assigned GAP will read value from AEM_INSTANCE_PASSWORD env var
env var need to be somehow injected here if password is not explicitly defined as Java property
