Solution Scenario Deployment

What Are Solution Scenarios?

A Solution Scenario is a collection of preconfigured system objects that work
together to implement a specific business solution, such as IT Service
Management (ITSM), Human Resources (HR), or security incident response.

A scenario can include queues, dynamic fields, ACLs, notifications, processes,
web services, system configuration settings, and other dependent configuration
objects. Deploying a Solution Scenario creates the missing objects in dependency
order, so that every referenced object exists before the objects that depend on
it.

Deployment is non-destructive. If an object defined by the scenario already
exists in the system, it is reported and skipped — it is never overwritten. This
protects manual changes, but it also means a partially preconfigured system can
end up with a mix of scenario values and pre-existing values.

Before You Begin

Solution Scenarios are designed for the initial onboarding of a new system.

Warning

A system should host only one Solution Scenario deployment. Deploying
multiple scenarios on the same system, or deploying a scenario on an existing
production system, can result in configuration conflicts, unexpected
behavior, or an unusable system.

Some Solution Scenarios require a specific contract or license. Scenarios that
are not available for your system are not displayed by the deployment command.

Before deploying a scenario, register the system with OTRS Group, ensure that it
has an active contract, and synchronize the latest registration and contract
information:

bin/otrs.Console.pl Maint::Registration::UpdateSend --force
bin/otrs.Console.pl Maint::SystemContract::ContractStatusCheck --force

Listing Available Solution Scenarios

To display all Solution Scenarios available for your system, run:

bin/otrs.Console.pl Admin::Scenario::Deploy --list

The output lists the scenarios found in the scenarios directory that are
available for your contract. The following example uses fictional scenario
names:

Existing scenarios in 'var/scenarios':
  - MyScenario
  - ScenarioA
  - ScenarioB

The scenarios directory defaults to <OTRS_CONFIG_Home>/var/scenarios and is
configured in the Scenarios::Directory setting. To read scenarios from a
different location for a single command, use --directory:

bin/otrs.Console.pl Admin::Scenario::Deploy --list --directory /path/to/scenarios

Validating a Solution Scenario

Before performing a real deployment, run the command with --dry-run. This
validates the scenario and then performs a complete deployment pass without
writing anything to the database. Validation checks for missing dependencies,
invalid parameters, and existing objects whose configuration differs from the
scenario.

bin/otrs.Console.pl Admin::Scenario::Deploy --scenario MyScenario --dry-run

--dry-run never prompts for confirmation, because it cannot change the
system.

A successful dry run ends with Scenario can be deployed:

Starting deployment of scenario: 'MyScenario'

Running validation
Validation OK

Running deployment (dry run, no changes will be applied)
Deployment OK

Scenario can be deployed

Summary Levels

The --summary option controls how much per-object detail is shown during
validation and deployment. It accepts the values simple and extended.
Without this option, no summary is printed.

Result Markers

Every object in a summary is reported in one of three states:

Marker

State

Meaning

✓

Success

The object was validated, deployed, or can be deployed.

−

Info

The object already exists and was skipped.

X

Error

Validation or deployment failed for this object.

Minimal Output

Without --summary, only the overall result is shown:

Starting deployment of scenario: 'MyScenario'

Running validation
Validation failed

There are errors!

Simple Summary

bin/otrs.Console.pl Admin::Scenario::Deploy \
    --scenario MyScenario \
    --dry-run \
    --summary simple
Starting deployment of scenario: 'MyScenario'

Running validation
Validation failed

Results:

Queue:
  MyQueue X

There are errors!

Extended Summary

bin/otrs.Console.pl Admin::Scenario::Deploy \
    --scenario MyScenario \
    --dry-run \
    --summary extended

The following example shows a validation failure because the queue references a
group that neither exists in the system nor is included in the Solution
Scenario:

Starting deployment of scenario: 'MyScenario'

Running validation
Validation failed

Results:

Queue:
  MyQueue X
    Failed dependency validation for entity 'Queue' instance 'MyQueue'!
      Group (NotExisting)

There are errors!

The following example shows a configuration conflict. The queue already exists,
but its configuration differs from the one defined in the Solution Scenario. The
table compares the existing value with the scenario value:

Queue:
  MyQueue X
    Entity 'Queue' instance 'MyQueue' already exists with different configuration!

    Group
    +-------+-------+
    | admin | users |
    +-------+-------+

In a dry run, objects that pass every check are reported as
Can Be Deployed:

Results:

Queue:
  MyQueue Can Be Deployed

Scenario can be deployed

Deploying a Solution Scenario

Once the dry run succeeds, deploy the scenario:

bin/otrs.Console.pl Admin::Scenario::Deploy --scenario MyScenario

The command asks for confirmation before it does any work, including before
validation runs:

Starting deployment of scenario: 'MyScenario'

WARNING: One-time setup only. Modifies system configurations. Do not run in production.

    Use --confirm-deployment to bypass.

Proceed? [y/n]

Skipping Confirmation

For unattended or automated deployments, add --confirm-deployment to skip
the prompt.

Warning

A deployment cannot be reverted automatically. Use --confirm-deployment
only after a dry run has completed successfully, and take a database backup
first.

The remaining examples use this option to simplify the command output.

bin/otrs.Console.pl Admin::Scenario::Deploy \
    --scenario MyScenario \
    --confirm-deployment

Successful Deployment

Starting deployment of scenario: 'MyScenario'

Running validation
Validation OK

Running deployment
Deployment OK

Done

Simple Summary

bin/otrs.Console.pl Admin::Scenario::Deploy \
    --scenario MyScenario \
    --confirm-deployment \
    --summary simple
Results:

Queue:
  MyQueue ✓

Done

Extended Summary

bin/otrs.Console.pl Admin::Scenario::Deploy \
    --scenario MyScenario \
    --confirm-deployment \
    --summary extended
Results:

Queue:
  MyQueue Deployed

Done

Objects that already exist do not prevent the deployment from succeeding. They
are skipped and reported as Already Exists:

Results:

Queue:
  MyQueue Already Exists

Done

Command Options

Option

Description

--list

List the scenarios available for this system.

--scenario <name>

Name of the scenario to deploy.

--directory <path>

Read scenarios from a custom directory instead of
Scenarios::Directory.

--dry-run

Validate and simulate the deployment without writing to the database.
Never prompts.

--summary <level>

Print a per-object summary. Accepts simple or extended.

--confirm-deployment

Skip the interactive confirmation prompt.

Checking the Deployment Status

After a real deployment (not a dry run), the command records the result in the
system data:

  • SolutionScenario::Summary::<ScenarioName> — a YAML summary listing every
    object with its name, validity, and deployment status.

  • SolutionScenario::ActiveScenarios — a JSON hash of the deployed scenarios
    and their status (Deployed or Migrated). This hash is always extended,
    never replaced.

The Support Data Collector includes a dedicated plugin, shown as Scenario
Deployment
, that reads these summaries and reports one entry per deployed
scenario. This information is included in the support data sent to OTRS Group
and helps provide more effective support by identifying which Solution Scenario
has been deployed and whether the deployment completed successfully.

Scenario Directory Layout

A scenario is a directory of YAML files, one file per object, grouped into
subdirectories by entity type. The subdirectory name determines the entity
type
; files are read recursively and matched on *.yml and *.yaml.

var/scenarios/MyScenario/
├── Queue/
│   └── Incidents.yml
├── Type/
│   ├── Incident.yml
│   └── Task.yml
├── DynamicField/
│   └── AnalysisResult.yml
├── ACL/
│   └── ForbidActions.yml
├── Notification/
│   └── SendAdvice.yml
├── SysConfig/
│   └── ProductName.yml
├── WebService/
│   └── EventClassification.yml
└── Process/
    └── Approval.yml

Each file contains exactly one object as a YAML hash. The file name is a naming
convention only — the Name key inside the file is authoritative. For
SysConfig objects, whose names contain characters that are awkward in file names,
the convention is to write :: as -- and ### as ___, so
AgentFrontend::Dashboard::Widget###ReminderTickets is stored as
AgentFrontend--Dashboard--Widget___ReminderTickets.yml.

Entity File Examples

Objects reference each other by name, not by ID, and validity is expressed with
the Valid key using the values valid and invalid.

A queue referencing an existing group:

---
Name: Incidents
Group: users
Valid: valid

A ticket type:

---
Name: Incident
Valid: valid

A dynamic field:

---
InternalField: 1
Name: 'AnalysisResult'
Label: 'Analysis Result'
FieldOrder: 10013
FieldType:  'TextArea'
ObjectType: 'Ticket'
Config:
  Cols: ''
  DefaultValue: ''
  RegExList: []
  Rows: ''
Valid: valid

A system address referencing a queue:

---
Name: incidents@example.com
Realname: Incident Response
Queue: Raw
Comment: some comment
Valid: valid

SysConfig Objects

SysConfig objects use their own keys. Name is the setting name, IsValid
controls validity, and ContinueOnModified determines whether the deployment
proceeds when the setting has already been modified on the system.

To set a value outright, use EffectiveValue:

---
Name: ProductName
EffectiveValue: STORM powered by OTRS™
ContinueOnModified: 1
IsValid: 1

To modify part of an existing structured setting instead of replacing it, use a
Transformation block. TargetPath selects the node to change and
Actions lists the operations to apply, such as ArrayPush or
HashAssign:

---
Name: WebApp::Server::AdditionalOrigins
Transformation:
  Module: Generic
  TargetPath: /frame-src
  Actions:
  - Name: ArrayPush
    ConvertType: SysConfig
    RemoveEmpty: 1
    Values:
    - SysConfig::FQDN
    - www.example.com
ContinueOnModified: 1
IsValid: 1

Supported Entity Types

The following entity types can appear as subdirectories in a scenario. Each has
its own parameter validation and dependency rules.

Entity type

Description

Group

Permission groups used for queue access and role-based permissions.

Queue

Ticket queues. Depends on Group, and optionally on
SystemAddress, Salutation, and Signature.

State

Ticket states and their state types.

Priority

Ticket priority levels.

Type

Ticket types used for classification.

Lock

Ticket lock states.

Valid

Validity values referenced by other objects.

SystemAddress

System email addresses. Depends on Queue.

Salutation

Email salutation templates.

Signature

Email signature templates.

DynamicField

Custom fields. Per-type drivers exist for Text, TextArea,
Dropdown, Multiselect, Checkbox, Date, DateTime,
Number, Database, DatabaseAutofill, ContactWithData,
ConfigItem, WebService, Attachment, Customer, and
Calculation.

ACL

Access control lists. Requires a post-deployment ACL deployment step.

Notification

Notification definitions, including per-language message bodies and
transport settings.

Process

Process Management workflows. Requires a post-deployment sync step.

WebService

GenericInterface web service definitions.

AttachmentAction

Attachment action definitions.

AgentLayout

Agent interface style and default style settings.

SysConfig

System configuration settings, set directly or transformed. Requires a
post-deployment configuration deployment step.

Reverting a Deployment

There is no automated rollback. The deployment command has no revert option, and
the recorded summary is a report rather than an undo log.

To keep a deployment recoverable:

  • Take a database backup immediately before deploying.

  • Run --dry-run --summary extended first and resolve every reported error.

  • Deploy to a staging system with the same contract before touching production.

If a deployment produced unwanted results, restore the backup. Reversing the
changes by hand is possible for a small scenario — objects can be set to invalid
or removed in the admin interface, and SysConfig settings can be reset — but
this is error-prone for scenarios that include processes, ACLs, or web services.

Scroll to Top