boxstarter primer

7
Boxstarter primer and Testing your automation Matt Wrock (@mwrockx) 8/7/2014 Philadelphia PowerShell User Group

Upload: matt-wrock

Post on 22-Apr-2015

227 views

Category:

Engineering


1 download

DESCRIPTION

Start with some demos of Boxstarter illustrating how it can be used to build a self standing Windows environment with a focus on how to test the package installs on a virtual machine. Then we will explore some other tools and techniques suited for “machine convergence” testing. Many of these tools, like Vagrant and the Chef-based Test-Kitchen, have their roots outside of Windows but can most certainly provide assistance to PowerShell automation.

TRANSCRIPT

Boxstarter primer and Testing your automation

Boxstarter primerandTesting your automationMatt Wrock (@mwrockx)8/7/2014Philadelphia PowerShell User Group

Boxstarter (http://boxstarter.org)A tool for making the automation of a single machine extremely simple.Windows centric and powered by powershell and chocolatey

All Demo scripts can be found at https://gist.github.com/mwrock/e578e22000396173fa76DEMO 1: Simple Boxstarter install from gist over the web

DEMO 2: Creating a package and installing to hyper-v guest

Testing PackagesDoes the box build repeatedly?Can I know the package/script is good without manually inspectingTesting automaticallyDeploy automatically

Demo 3: Test the package we buildDemo 4: review a Boxstarter/Chocolatey CI system CI Resourceshttp://www.jetbrains.com/teamcity/http://www.visualstudio.com/

Package Repositorieshttp://chocolatey.org/https://www.myget.org/http://www.nuget.org/

Vagrant VM sharing toolX-platHypervisor agnosticSupports many provisioner plugins (shell, chef, puppet, )

http://www.vagrantup.com/Can host boxes at:https://vagrantcloud.com/

You can also download evaluation versions of windows at:http://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2012-r2

Demo: testing chocolatey packages using a synced vagrant folderX-Platform Testing with Test-Kitchenhttp://kitchen.ci/Supports multiple provisioners (chef, puppet)Supports many hypervisor drivers (vsphere, EC2, vagrant, docker, etc)Supports several Test Runners (ServerSpec and lots more)http://serverspec.org/

More must see toolshttps://www.docker.io/ Containerizing distributed componentshttp://www.packer.io/ automation for image creation

Immutable infrastructureBrown and Serve