Skip to main content

Settings

The project and environment settings are stored in JSON format and allow you to specify configuration options that apply to changes and events within the project or environment. The following settings can be included in your project or environment:

{
"change_log_retention_days": -- see description below --,
"event_retention_days": -- see description below --,
"notifications": -- see description below --
}
note

If a setting is configured at both the project and environment level, the environment setting will override the project setting.

In addition to the settings listed above (that can be configured at the project or environment level), projects can have an additional setting - allow_parallel_changes which will be applied to all environments and assets in the project.

{
...
"allow_parallel_changes": -- see description below --
"allow_parallel_runs_of_same_workflow": -- see description below --
}

Setting descriptions

change_log_retention_days

Default value: not configured (OpsChain will retain all change logs)

The number of days to retain change logs. See change log retention for more information.

event_retention_days

Default value: not configured (OpsChain will retain all events)

The number of days to retain events. See event retention for more information.

allow_parallel_changes

Default value: false

Whether to allow multiple changes to run within a single project, environment or asset. See change execution options in the changes reference guide for more information

allow_parallel_runs_of_same_workflow

Default value: false

Whether to allow a workflow to be run multiple times in parallel. See workflow execution options in the workflows reference guide for more information.

requires_approval_from

Default value: not configured (changes do not require approval)

Requires that changes in the relevant environment/project are approved by a specific user or a member of the configured LDAP group before they are executed. A user or a member of the specified LDAP group must approve the change (e.g. using opschain change approve in the CLI) before the change will execute any actions. If required, LDAP group members can use the CLI command opschain change reject to reject changes that are waiting for approval.

You can provide multiple approvers containing users or LDAP groups in a comma-separated format. Any user or member of the supplied LDAP group can approve the change.

For example, the following setting will require a change to be approved by the some_username user or any user who is a member of the an_ldap_group LDAP group.

{
"requires_approval_from": "some_username, an_ldap_group"
}

notifications

Refer to notifications for the notifications configuration.