From f8a287c6c1ed2e50cab893b9b255e6351062ced2 Mon Sep 17 00:00:00 2001 From: Greyson Dehn Date: Thu, 22 Dec 2016 12:36:37 -0600 Subject: [PATCH] Update docs --- DOCS.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/DOCS.md b/DOCS.md index 8f0ed90..a9e5937 100644 --- a/DOCS.md +++ b/DOCS.md @@ -187,3 +187,33 @@ pipeline: app_version: 1.0.0 parallelism: 2 ``` + +## Submodule Overrides +You may want to override particular configuration values in submodules. + +For example, this configuration: + +```yaml +pipeline: + terraform: + image: jmccann/drone-terraform:0.5 + plan: false + submodules: + the-first: + source: some:neat://path + a-key: key + the-second: + do-the-thing: true + parallelism: 2 +``` + +will add a file named `_override.tf` containing: +```hcl-terraform +module "the-first" { + source = "some:neat://path" + a-key = "key" +} +module "the-second" { + do-the-thing = true +} +``` \ No newline at end of file