Skip to content

[Feature] Allow for resource sync to split files in managed mode #1109

@jhorn70

Description

@jhorn70

I have a couple of thoughts on how something like this would work. It could allow for the best of both worlds and possibly full automation. Effectively allowing resources to be represented in many TOML files in the repo and used in managed mode instead of just one big file.

One way to do it would be to allow for folder mapping based on a templating system. For instance servers might be: /servers/{name}.toml. Stacks might be /stacks/{server}/{name.toml}.

The other way I thought about doing this is allowing for the initial setup of a resource to just be the following:

  1. Name
  2. Repo
  3. FileName (relative to repo root)

On each resource there could be the buttons

  1. Refresh (would perform a pull and compare)
  2. Execute
  3. Commit

On resource sync you could scan for any new toml files that have a name, repo and filename and those could be the ones you do compares with for the larger execute and commit if you would wanted to do it at a more global level.

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