From the course: Puppet Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Setting up Beaker - Puppet Tutorial
From the course: Puppet Essential Training
Setting up Beaker
- [Instructor] Beaker can be tricky to set up, so we'll run through how it works and how to set up a simple Vagrant based node for testing. We'll be using Beaker-Rspec, which extends Beaker with Rspec, so it's a bit closer to the testing syntax we've already covered in Puppet-Rspec. To begin, I'm going to install a gem called Bundler. This will let us use a local copy of gems the same way that Travis CI does. We don't have to mess with our system gems. Now that that's finished installing, we need to add the Beaker-Rspec gem to our gem file. Now I'm in the root of the elk module we created, and I'll edit the gem file. There's a lot going on in this file. This is the automatically generated one, so try not to be too overwhelmed. We actually want to scroll down here where it says group development. We're going to create a new section right here and we'll call it group acceptance, since we're doing acceptance tests. And I'll just close that block and all I need to say is gem Beaker-Rspec…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.