Skip to content

Commit

Permalink
add dependency graph to repository
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMertz committed Aug 25, 2015
1 parent e54e103 commit aea6371
Show file tree
Hide file tree
Showing 3 changed files with 899 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ major: NEXT_VERSION = $(shell echo $(LAST_TAG) | awk -F'[v.]' '{$$2++; print $$2

patch minor major: graph
@if [ -z "${COMMITS}" ]; then echo "No new commits found after ${LAST_TAG}, aborting."; fi
@if [ -n "$(git ls-files -om graph.svg)" ]; then echo "Uncommited graph.svg detected, aborting."; fi
@if [ -n "${COMMITS}" ]; then git tag -s "v${NEXT_VERSION}" -m "Version ${NEXT_VERSION}"; fi

release: check
Expand All @@ -17,4 +18,7 @@ release: check
check:
@if ! which hub terraform dot > /dev/null; then echo "Missing dependency. Required: hub, terraform, dot." && exit 1; fi;

.PHONY: patch minor major release check
graph:
@terraform graph -module-depth=100 -draw-cycles | dot -Gsplines=ortho -Gconcentrate=true -Grankdir=RL -Tsvg > graph.svg

.PHONY: patch minor major release check graph
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See [`variables.tf`](variables.tf) for a list of configurable parameters.

To include this module in your Terraform code-base, use the following snippet:

```terraform
```hcl
module "dcos" {
source = "github.com/jeanmertz/terraform-dcos"
Expand All @@ -36,9 +36,13 @@ instructions:

* clone the repository
* create a `terraform.tfvars` file with all the (required) variables
* *optionslly* run `terraform plan -out terraform.plan`
* *optionally* run `terraform plan -out terraform.plan`
* run `terraform apply [terraform.plan]`

## Dependency Graph

[![graph](https://rawgit.com/JeanMertz/terraform-dcos/master/graph.svg)](graph.svg)

## Origin

This module is an implementation of the official "Single Master"
Expand Down
Loading

0 comments on commit aea6371

Please sign in to comment.