Skip to content

Add a generated-content provision script #2985

Description

@AlexSkrypnyk

Summary

The installer offers generated_content as an installable module but ships no provisioning wiring for it, so three downstream Vortex sites each wrote a near-identical script to drive it.

Details

The shape all three converged on:

  • Run only in non-production environments.
  • Run only when VORTEX_PROVISION_OVERRIDE_DB is set, so re-provisioning against a real database never injects generated content on top of existing content; otherwise report that existing content is being kept.
  • Offer an explicit skip flag for a fast provision.
  • Raise the PHP memory limit for the generation run, which is heavier than the rest of provisioning.

The VORTEX_PROVISION_OVERRIDE_DB guard is the part worth keeping - it is what stops the script doing damage on a site provisioned from a real dump.

Points to settle:

  • Whether this belongs as a step inside the existing scripts/provision-00-enable-demo-modules.sh or as its own numbered script.
  • It has to be fenced on the generated_content module selection so it is absent when the module is not chosen.
  • The generating module's machine name differs per site, so the template's version needs it from the installer token rather than hardcoded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A3Board worker 3

    Type

    No type

    Projects

    Status
    Release queue

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions