Skip to content

Have multiple targets per service #68

@GBrawl

Description

@GBrawl

Description of feature

A service should be able to have multiple infrastructure targets, with our current stack-instance model this is not possible, so we'll have to change it.

Purpose of this new feature

Be able to have multiple infrastructure targets

Additional information

We should not take the first one here and take every possible target:

https://github.com/stacklio/stackl/blob/master/stackl/application/handler/stack_handler.py#L52

The current format is like this:

category: items
deleted: false
name: stack-instance
services:
  windows_2019:
    infrastructure_target: aws.brussels.eu-west
    provisioning_parameters:
      key: value
      win_domains:
      - domain_name: nubera.local
        state: domain
    secrets:
      password: PASS
      user: USER
type: stack_instance

We could change it to this:

category: items
deleted: false
name: stack-instance
services:
  windows_2019:
    aws.ireland.eu-west1:
      provisioning_parameters:
        key: value
        win_domains:
          state: domain
      secrets:
        password: PASS
        user: USER
    aws.ireland.eu-west2:
      provisioning_parameters:
        key: value
        win_domains:
          state: domain
      secrets:
        password: PASS
        user: USER
type: stack_instance

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions