RFC: Extract DSC from Existing Environments
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- powershell
- Lĩnh vực
- cloud, devops, infrastructure
Hướng nghiên cứu
Bắt đầu với phần Specifications của RFC và xem xét module ReverseDSC Core cùng dự án SharePointDSC.Reverse được tham chiếu. Theo dõi cách Get-TargetResource hiện lấy các thể hiện tài nguyên và cách Export-TargetResource được đề xuất sẽ phối hợp với module tiện ích toàn cục. Hoàn thành có nghĩa là tạo ra một thiết kế đã được xem xét để trích xuất các môi trường hiện có thành các script DSC có thể tái sử dụng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
--
RFC: RFC00xx
Author: Nik Charlebois
Reverse Engineering Existing Environment into DSC
Users have been complaining about the learning curve to get started with DSC and about the amount of work it takes for them to re-write their existing technology investment onto DSC for monitoring purposes. There have been various community projects to solve this issue by extracting DSC configurations out of existing environments, such as ReverseDSC, which had incredible success with clients wanting to adopt Configuration as Code practices within their organizations.
The purpose of this RFC is to propose that a fourth method that would retrieve all instances of a resource against an existing environment be included in DSC resources for them to be identified as HQRM.
Motivation
- Reduce amount of work required to on-board existing environments onto DSC
- Reduce learning curve to get started with DSC
- Provide an automated path to migrate on-premises environments onto Azure
- Allow users to easily document their environment’s configuration as code
- Quickly compare configuration deltas between two environments
Specifications
There are three components to the requested solution:
- Component 1 needs to iterate through all instances of the current resource and provide the Get-TargetResource function the key parameters for it to be able to retrieve all other parameters associated with this resource instance.
- Component 2 needs to retrieve the Hash tables received back from the Get-TargetResource and convert them into a DSC string. This is already automated and handled by the existing ReverseDSC Core module https://github.com/microsoft/reversedsc
- Component 3 needs to orchestrate the calls to the resources’ Component 1 and 2 and collect the results into a resulting file, which will be a DSC script that can be used to replicate the environment.
The vision is as follow:
Component 1 and 2 would be combined into a new fourth function required by every HQRM, call it Export-TargetResource. Component 3 would be a global utility module, contained within the DSC module, which would orchestrate all the calls to the module’s Export-TargetResource methods (see SharePointDSC.Reverse at https://github.com/microsoft/sharepointdsc.reverse for a reference)
- Ngôn ngữ chính
- PowerShell
- Star
- 468
- Fork
- 143
- Merge trung bình
- 9 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PowerShell/PowerShell-RFC
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
PowerShell/PowerShell-RFC#404 · 1 bình luận ·
-
PowerShell/PowerShell-RFC#407 · 1 bình luận · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
PowerShell/PowerShell-RFC#396 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
PowerShell/PowerShell-RFC#334 · 2 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
PowerShell/PowerShell-RFC#327 · 28 bình luận · 31 reaction ·
Tất cả issue của PowerShell/PowerShell-RFC
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 bình luận ·
-
Feature needs-triage pulumi/registry
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
Bug plugin: cloud-storage plugin: storage-s3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
payloadcms/payload#18221 ·