Add support for `actions`
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
Summary of the new feature / enhancement
As part of configuring a service, like sshd, the changes don't take effect until after the service is restarted. This can, today, be worked around by using the Microsoft.Windows/Service to stop and start it, but an action to restart would be better and also only restart if settings have changed since restarting a service can, for example, disconnect active clients.
Proposed technical implementation details (optional)
Ideally, it would work like:
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
resources:
- name: Install PowerShell 7
type: Microsoft.WinGet/Package
properties:
id: Microsoft.PowerShell
- name: Install SSHD
type: Microsoft.Windows/FeatureOnDemandList
properties:
capabilities:
- identity: OpenSSH.Server~~~~0.0.1.0
state: Installed
- name: Add PS7 SSH Subsystem
type: Microsoft.OpenSSH.SSHD/Subsystem
properties:
subsystem:
name: powershell
value: C:/progra~1/powershell/7/pwsh.exe -sshs
- name: Restart SSHD, if changed
type: Microsoft.WIndows.Action/RestartService
condition: "[stateChanged(resourceId('Microsoft.OpenSSH.SSHD/Subsystem','Add PS7 SSH Subsystem'))]"
properties:
name: sshd
This would need a new stateChanged() function that takes a resourceId() and returns true only if that resource resulted in a state change. Otherwise, the restart would be skipped.
- 主要言語
- Rust
- スター
- 536
- フォーク
- 76
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 15
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/DSC のほかの issue
-
Issue-Enhancement Needs Triage
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
PowerShell/DSC#1750 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Issue-Bug Need-Review
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
PowerShell/DSC#1749 ·
メンテナーはふだん 1 日以内に返信
-
Issue-Bug Need-Review
難易度 3/5 1〜2日 初心者へのやさしさ 40/100
PowerShell/DSC#1748 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
"apt install dsc" will install the preview release instead of stable対応中かも @SteveL-MSFT が 1 日前に担当しました。 オープンIssue-Bug Need-Review
PowerShell/DSC#1746 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Issue-Enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
PowerShell/DSC#1737 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
rescript-lang/rescript#8765 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
farion1231/cc-switch#8072 ·
メンテナーはふだん 1 日以内に返信
-
Python 3.15 support対応中かも @amnesiaof が今日担当しました。 オープンL: python L: python:uv
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dependabot/dependabot-core#16524 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: Migration link in chromadb/config.py error message returns 404対応中かも @Imad2702 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
chroma-core/chroma#7879 ·
メンテナーはふだん 1 日以内に返信