shinesolutions / puppet-aem-curator

Puppet module for installing and configuring a curated set of Adobe Experience Manager (AEM) components
Apache License 2.0
4 stars 20 forks source link

OsgiManager password should be configurable as well #211

Open henrykuijpers opened 4 years ago

henrykuijpers commented 4 years ago

The OsgiManager password (part of Adobe Security Checklist) should be configurable as well.

Currently, we're setting it manually at the end of configuration:

      # Just before configuration is finished, we'll set the OSGi admin password as well
      $crx_quickstart_dir = "${instance_config['aem_base']}/aem/${instance_config['type']}/crx-quickstart"
      file { "${crx_quickstart_dir}/install/org.apache.felix.webconsole.internal.servlet.OsgiManager.config":
        ensure => present,
        content => epp('aemprovisioning/aem/osgiconfig/org.apache.felix.webconsole.internal.servlet.OsgiManager.config', {
          password => $instance_config['osgi_admin_password']
        }),
        mode   => '0775',
        owner  => "aem-${instance_config['aem_id']}",
        group  => "aem-${instance_config['aem_id']}",
        before => Exec["${instance_config['aem_id']}: Cleanup password reset package after installation"],
      }
mbloch1986 commented 4 years ago

If you are able to set your own OSGI configuration during the AEM configuration, as described here #217, would this solve the issue ?