This topic contains 8 replies, has 3 voices, and was last updated by
April 23, 2018 at 1:59 pm #99478
We're using DSC Push deployment as a part of our CD pipeline similar to what's described here.
We have multiple components that we deploy on the same server.
Today we can only deploy one component at a time because each deploy runs a Start-DscConfiguration command with a different configuration.
I've read about partial configurations, and the recent article regarding DscLcm module, but non of them doesn't help us with our problem.
What would be the best way to deploy multiple configurations deployment simultaneously?
April 23, 2018 at 4:38 pm #99522ParticipantPoints: 0Rank: Member
This is a great scenario for Composite Resources. Feedback from customers has largely been that this design is a preferred over Partial Configurations because it encourages collaboration around a single route to production.
April 24, 2018 at 10:58 am #99594
Thank you very much Michael!, I'll review your suggestion and share my conclusions 🙂
June 4, 2018 at 3:18 pm #101731
After I've reviewed the MS doc you've shared, and this great article:
And this channel9 episode:
As far as I understand Composite Resources still evolves a Start-DSCConfiguration to apply the multiple configurations.
Can you please try to help me out to understand how can I implement the use of it as a part of my release pipeline?
June 5, 2018 at 1:40 am #101770ParticipantPoints: 37Rank: Member
Composite Configurations allows you to compose blocks of configurations together (xFile + xRegistry + WindowsFeature ...), without the need to create one configuration per component.
From your post I understand that you have different Components, each generating a MOF, that you need to apply to a server... This is the way Partial configurations works, which may not be the best approach.
I'd recommend having a look at my answer to this post here: https://powershell.org/forums/topic/howto-optional-configuration/#post-96234
In short, you could generate one MOF per Server, and use Composite Resources to avoid duplicating code in big Monolithic configurations. I imagine your current 'components' configurations should be transformed in Composite Resources, and you then need a system to 'link components to roles, and roles to nodes': That's part of the DSC Configuration Data Problem, but there's a way to compose role.
Have a look at the workshop for more details and links on this release pipeline.
June 11, 2018 at 10:09 am #102236
Thank you for your information, I'm still trying to process the entire information you've provided.
I'll keep you posted,
June 18, 2018 at 11:28 am #102680
I've tried to get into details of the Datum project and the documentation you've provided.
But then I've came across VSTS deployment groups as mentioned here:
Can you think of a reason why I shouldn't go for this instead?
June 18, 2018 at 3:22 pm #102715ParticipantPoints: 37Rank: Member
This is a larger question than it looks, but you should experiment, bearing in mind you'll most likely change it as you learn.
Technically, you can use the VSTS agent as your DSC Pull agent instead of the LCM (some have done this with Octopus Deploy for instance, search a DevOpsGuys article by Dave Wyatt iirc), and code whatever logic you need in there. So you can make it more flexible, that's cool...
Should you do it now?
If it's the quickest for you to improve your current situation, maybe. Get a minimum viable product out, and learn from it. Understand that it will have to evolve (or it might become tech debt).
Would I do it?
Probably not. Where would you define those groups? How could you re-provision them from code? How can you make them visible, easy to change, enforced? Would those group definition live with the rest of the information? How would you apply the components one by one? Still as independent MOFs?
There's many challenges to be solved that the LCM and pull model have already (defining intent, eventual convergence, policy-driven, immutable artefacts...), and best practices around Config Data management made easier using Datum...
So it's one of those: "it depends"... Context is everything.
June 18, 2018 at 3:56 pm #102716
Thank you for the quick response, I appreciate it.
I think the questions you've mentioned will help me to get a better understanding now.
Once I'll get into conclusion I'll share it with you guys.
The topic ‘Deploy Multiple Configurations Simultaneously’ is closed to new replies.