- This topic has 7 replies, 4 voices, and was last updated 6 months, 4 weeks ago by
December 3, 2019 at 1:22 pm #191308
What is the best practice for managing MOF files. For example if I want to have 300 servers with the same configuration, then how can I not end up having 300 MOF files?
December 3, 2019 at 4:03 pm #191350Senior ModeratorTopics: 9Replies: 1236Points: 4,443Rank: Community Hero
it should be technically possible to create a mof file targeting localhost, rename it to pending.mof and keeping it under c:\Windows\System32\Configurations of all the machines, then do an Update-DSCConfiguration.
But not sure about a neat way of doing this.
December 4, 2019 at 9:51 am #191461ParticipantTopics: 1Replies: 52Points: 190Rank: Participant
You can use Named configuration, but you probably shouldn’t.
Applying the same MOF means you have no uniqueness per node, not even credentials or encryption certificate. Usually, that’s bad…
Managing MOFs should not be the problem, the question is what are you trying to achieve? MOF is just the result of the compilation step that should happen in a pipeline, and then should be applied automatically whenever possible (Pull Mode), or automatically made available for push mode.
Usually, making sure you don’t repeat yourself for 300 nodes is the actual challenge with DSC as I explained here: https://gaelcolas.com/2018/01/29/the-dsc-configuration-data-problem/
If that’s what you’re trying to solve, then I recommend looking at the DSC Workshop repository and follow the DSC Workshop video here: https://livestream.com/gaelcolas/events/8824779/videos/196854817
Hope that helps 🙂
December 4, 2019 at 11:21 am #191545
How about using the same GUID for assigning the same MOF to multiple nodes?
December 6, 2019 at 12:22 am #191863
Any suggestions on the above?
December 6, 2019 at 1:20 pm #191920ParticipantTopics: 2Replies: 5Points: 60Rank: Member
If you have 300 servers, it is a best practice to have a DSC Pull Server. Using a DSC Pull Server and powershell 5, you can use and define ConfigurationName and then all your target nodes will use that specific configuration name.
High level steps:
- Configure in LCM ConfigurationName
- Compile the mof to use this configuration name
- Create checksum for that mof
- Copy the 2 files, (mof and checksum on you DSC Pull server)
- Wait for clients to pickup the dsc configuration or run update-dscconfiguration
December 7, 2019 at 2:31 pm #192085
Thanks for the reply. Any article with detailed steps on the above.
December 9, 2019 at 8:31 am #192205ParticipantTopics: 2Replies: 5Points: 60Rank: Member
- The topic ‘Manage MOF files’ is closed to new replies.