Independent git settings per server / computer group

Independent git settings per server / computer group

avatar
(anonymous user)
Product: PowerShell Universal
Version: 5.1.2


I’m happy to be educated on this if what I’m trying to do is silly. I’ve never really used git before integrating Powershell Universal.

I have 3 servers, two for production and one of which I use for development - testing new versions of Powershell Universal, etc.



b459682b23698246a22b2dd53b1ebd07a8a24922
Ideally, I’d like the development server to be connected to the same database as production in maintenance mode so I can ensure that everything looks the same between PSU versions before I upgrade production - but I’d also like to have the development server on a different git branch or set behaviour to one-way so that I can edit and test scripts without affecting production.

This doesn’t seem possible right now, even though I set a different branch in appsetings.json it gets overridden.



32a82a61fecc9412899118632a89beed4f9675b7


bc83dbdd28787adae1de1cbe774d155c3497797a
Is there a way to configure git differently based on Tags/Computer Groups even if it is a bit of a hack job - or is there a more sensible way of doing what I am trying to achieve?

bc83dbdd28787adae1de1cbe774d155c3497797a.png

32a82a61fecc9412899118632a89beed4f9675b7.png

b459682b23698246a22b2dd53b1ebd07a8a24922.png

All Comments (3)

avatar

This currently isn’t possible. PSU assumes that all computers in a single database are more or less the same configuration\environment. You’d have to setup a separate database for your dev instance.

Adam Driscoll
PowerShell Expert and Developer at Devolutions

avatar

Thanks for confirming, Adam.

Is it likely to be possible in the future or is it too niche of a requirement?

Thanks.

avatar

We have implemented the ability to switch git repos so it could be possible. It does get trickier than just changing which files are where because the scheduler and automation features assume that all the machines have the same configuration. This would require changes to determine which machines are running which branch\repo etc. It just gets really complicated.

Adam Driscoll
PowerShell Expert and Developer at Devolutions