terraform-provider-git

command module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2019 License: MIT Imports: 5 Imported by: 0

README

terraform-provider-git

Build Status

Rationale

Keep your git repositories in sync with your infrastructure.

Install

  • Download terraform-provider-git binary from Github
  • Unzip the zip file
  • Then move terraform-provider-git binary to $HOME/.terraform.d/plugins directory
mkdir -p $HOME/.terraform.d/plugins
mv terraform-provider-git $HOME/.terraform.d/plugins/terraform-provider-git
  • Run terraform init in your terraform project
terraform init

Configuration

  • repository_url - (Required) The URL of the remote repository
  • author_name - (Optional) Name of the committer
  • author_email - (Optional) Email of the committer
Configuration Example
provider "git" {
    repository_url = "git@github.com:fourplusone/tf-target.git"
    author_name = "Matthias Bartelmeß - Terraform"
    author_email = "mba@fourplusone.de"
}

Resource

The following arguments are supported:

  • content - (Required) The content of file to create.

  • filename - (Required) The path of the file to create.

Any required parent directories will be created automatically, and any existing file with the given name will be overwritten.

Resource Example
resource "git_file" "demo_out_1" {
  contents = "hello"
  path = "hello/world.txt"
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL