Skip to content

Instantly share code, notes, and snippets.

View deanwilson's full-sized avatar

Dean Wilson deanwilson

View GitHub Profile
@deanwilson
deanwilson / README.md
Created March 16, 2016 17:04 — forked from lusis/README.md
terraform template to generate serverspec properties

This uses terraform's template_file resource to generate a yaml properties file for serverspec to use.

  • create the Rakefile in your terraform project root
  • create a spec directory and put spec_helper.rb in it
  • create the templates/properties.tmpl.yml file
  • create the serverspec.tf
  • terraform apply

tests

Tests will be matched based on roles defined for a given node.