Skip to content

DSC as Services / Daemon process - pull config form Server #1339

@mimachniak

Description

@mimachniak

Summary of the new feature / enhancement

I like to propouse new feature for DSC that was simillar in DSC 2.0 as Push / Pull server.
DSC will run as a process and will download config map form Share or WWW server with declaration of configurations and order of implementations.

Proposed technical implementation details (optional)

Configuration file suggestion:

JSON file hosted for example over www - configmap.json

{
    "$schema": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/config/document.json",
    "config": [
        {
        "name": "web server install",
        "parameters_file": "http://web.local/web.dsc.parameters.yaml", # optional
        "configuration_file": "http://web.local/web.dsc.yaml",
        "process_order": 1
        },
        {
        "name": "registry creation ",
        "parameters_file": "", # optional
        "configuration_file": "http://web.local/registry.dsc.yaml",
        "process_order": 2
        }
    ]
}

DSC configuration parameters

dsc config --unattended --configmap http://web.local/configmap.json --interval 90

DSC parameters description

--unattended - setup dsc as Windows Services / Deamon process
--configmap - JSON file with multiple configuration mappings to be implemented in order
--interval - number of minutes to re-apply configuration

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions