https://github.com/marcusfelling/azuredevopspipelinebuildserver
Scripts to automate the creation of a Azure DevOps pipeline build server using Packer and Chef
https://github.com/marcusfelling/azuredevopspipelinebuildserver
azure devops
Last synced: about 2 months ago
JSON representation
Scripts to automate the creation of a Azure DevOps pipeline build server using Packer and Chef
- Host: GitHub
- URL: https://github.com/marcusfelling/azuredevopspipelinebuildserver
- Owner: MarcusFelling
- Created: 2017-12-24T15:14:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T18:07:47.000Z (over 7 years ago)
- Last Synced: 2025-03-22T04:42:27.305Z (about 1 year ago)
- Topics: azure, devops
- Language: Ruby
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Packer and Chef scripts to create a Azure DevOps build server (Windows) golden image (AMI)
Order of execution:
1. `berks vendor` to pull in dependancies
2. `packer build`:
- Initializes disks
- Runs Windows cookbook to add service account, create necessary folders, installs features, sets timezone
- Runs Software cookbook to install required software components
- Retarts instance
- Syspreps the instance
- Creates AMI
Finally, VSTS recipe should then be run during launch. I chose to use Chef solo in the CloudFormation launch config (not included in this repo).
I used a VSTS build definition to run the above, grab the AMI ID from the packer build output, then update the AMI ID variable in the deployment tool that's used to launch new instances.