Hi everyone,
I’m familiar with git and source control but in working alone in a small company, I don’t have much experience when it comes to practical usage. The biggest challenge I have is, like the title says, managing scripts centrally and distributing them to endpoints.
For example, I have a script that I wrote that works on a specific server. I was able to write some of it on my own workstation but then I had to copy over to the other machine and continue there. Not wanting to install git on every machine I am now periodically copying the file back to my workstation to commit.
This is not a great workflow. Some options I came up with are
- change my mindset when it comes to installing git and just install it everywhere it's needed
- devise some kind of elaborate distribution system that doesn't involve git being installed
- keep doing what I'm doing
I should also mention that another goal I have is continuous deployment. In some cases I could benefit from having a system like this. For example, I have a few of our DNS zones hosted at Azure wherein I define the zone through a PowerShell script. It’s a start but it’s not great because the script isn’t idempotent. My next step for this component is to create a better script so that I can define the zone as a JSON text file and store it in source control. Then, as needed, when I commit DNS changes those can automatically be picked up and the script will make the Azure zone look like my JSON file.
I see the first option as a stepping stone to this goal but still I’m unsure if it is the right way to go about achieving it.