Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add terraform autodiscovery (#1162)
- Loading branch information
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
assets/code_example/docs/plugins/autodiscovery/terraform/updatecli.d/default.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: "Terraform autodiscovery using git scm" | ||
scms: | ||
default: | ||
kind: git | ||
spec: | ||
url: https://github.com/updatecli-test/jenkins-infra-aws.git | ||
branch: main | ||
|
||
autodiscovery: | ||
# scmid is applied to all crawlers | ||
scmid: default | ||
crawlers: | ||
terraform: | ||
# platforms to request package checksums for, defaults to: | ||
platforms: | ||
- linux_amd64 | ||
- linux_arm64 | ||
- darwin_amd64 | ||
- darwin_arm64 | ||
# To ignore specific path | ||
#ignore: | ||
# - path: <filepath relative to scm repository> | ||
# - providers: | ||
# # Ignoring provider updates for this provider | ||
# registry.terraform.io/hashicorp/aws: | ||
# # Ignore provider updates for this version | ||
# registry.terraform.io/hashicorp/kubernetes: "1.x" | ||
|
||
ignore: | ||
# - path: <filepath relative to scm repository> | ||
# - providers: | ||
# # Ignoring provider updates for this provider | ||
# registry.terraform.io/hashicorp/aws: | ||
# # Ignore provider updates for this version | ||
# registry.terraform.io/hashicorp/kubernetes: "1.x" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: "Terraform" | ||
description: "Discover Terraform provider update" | ||
lead: "kind: terraform" | ||
draft: false | ||
images: [] | ||
menu: | ||
docs: | ||
parent: "plugin-autodiscovery" | ||
weight: 130 | ||
toc: true | ||
plugins: | ||
- autodiscovery | ||
--- | ||
|
||
== Description | ||
|
||
The Terraform crawler looks recursively for all Terraform provider updates from a specific root directory. | ||
Then for each of them, it tries to automate them. | ||
|
||
Automation is done by using two resources link:{{< ref "registry" >}}[`terraform/registry`] as the source and | ||
link:{{< ref "registry" >}}[`terraform/lock`] as the target. | ||
|
||
== Manifest | ||
=== Parameters | ||
|
||
{{< autodiscoveryparameters "terraform" >}} | ||
|
||
==== Example | ||
|
||
[source,yaml] | ||
---- | ||
# updatecli.d/default.yaml | ||
{{<include "assets/code_example/docs/plugins/autodiscovery/terraform/updatecli.d/default.yaml">}} | ||
---- |