chocolatey / chocolatey-licensed-issues

Issues for Licensed Editions of Chocolatey
19 stars 13 forks source link

Central Management Web - Provide Script Library for users to define scripts which can be used in advanced Deployment Steps #376

Open sync-by-unito[bot] opened 5 months ago

sync-by-unito[bot] commented 5 months ago

Description

Provide a "Script Libary" which allows administrators to define custom PowerShell scripts to use in an Advanced Deployment.

A new UI should be created which when a defined script is selected, any parameters defined in the script are rended as a web form for the user to fill out. This parameter data, along with the selected script is then sent securely to the agent to process.

Inspiration for rendering form data from script data can be found here with a demo of how the system works here.

Why Is It Needed

This feature will allow for administrators more quickly define deployment plans which require an Advanced Deployment Step.

It also paves the way for future enhancements, particularly in the area of branching logic such as "If this step fails, run this." or "Only run if previous step failed".

Related Issues and Tickets

Acceptance Tests

Done Checklist

┆Issue is synchronized with this Gitlab issue by Unito

pLeXwithFleX commented 5 months ago

I love this Idea! Upvote! :-)

Maybe its also possible to add the monaco editor to central management, for easier editing the advanced scripts with syntax highlighting.

https://microsoft.github.io/monaco-editor/