Skip to content

Feature request: Config inheritanceΒ #1390

@benlangfeld

Description

@benlangfeld

ShipIt currently implements replacement config files on a per-environment basis. This is useful when configuration is significantly different between environments.

When configuration differences are limited between environments, this can result in significant duplication. It would be useful for the more specific files to be able to contain an inheritance directive to reduce this duplication. This might look something like this:

shipit.production.yml:

inherit_from: shipit.yml

machine:
  environment:
    PUBLIC: true

shipit.yml:

machine:
  environment:
    PUBLIC: false

deploy:
  override:
    - ./some_deployment_process.sh ${PUBLIC}

...more shared stuff...

We'd be willing to contribute this upstream if it has a reasonable change of being merged. I'm looking for in-principle approval of a feature like this from a maintainer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions