jbostoen / itop-jb-powershell

PowerShell module to interact with iTop API
https://jeffreybostoen.be
6 stars 3 forks source link

Configuration inheritance #1

Closed jbostoen closed 1 year ago

jbostoen commented 3 years ago

It would be nice if at some point configuration settings could easily be inherited.

jbostoen commented 1 year ago

In config files, it's now possible to use this to point to a specific enviroment. Each individual setting can be overridden, but this allows for minimal config:

{
    "InheritFrom": "some-env",
    "Variables" : {
        "Environment": "production-xyz"
    }

}