RFC: Extract DSC from Existing Environments
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- powershell
- Domaine
- cloud, devops, infrastructure
Piste de recherche
Commencez par la section Specifications du RFC et examinez le module ReverseDSC Core et le projet SharePointDSC.Reverse référencés. Suivez la manière dont Get-TargetResource récupère actuellement les instances de ressources et la manière dont le Export-TargetResource proposé se coordonnerait avec le module utilitaire global. Le travail sera considéré comme terminé lorsqu’un design révisé pour extraire les environnements existants dans des scripts DSC réutilisables aura été produit.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
--
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)
- Langage dominant
- PowerShell
- Étoiles
- 468
- Forks
- 143
- Merge moyen
- 9 min
- PR mergées (30 j)
- 1
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de PowerShell/PowerShell-RFC
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
PowerShell/PowerShell-RFC#404 · 1 commentaire ·
-
PowerShell/PowerShell-RFC#407 · 1 commentaire · 1 personne assignée ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
PowerShell/PowerShell-RFC#396 ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
PowerShell/PowerShell-RFC#334 · 2 réactions ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
PowerShell/PowerShell-RFC#327 · 28 commentaires · 31 réactions ·
Toutes les issues de PowerShell/PowerShell-RFC
Issues similaires
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Ouvertebug ecr
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
hashicorp/go-azure-helpers#286 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
palladius/rails8-app-on-gcp#141 · 1 commentaire ·