terraform-provider-utravis

command module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 3 Imported by: 0

README

Terraform Provider Unofficial Travis

A Terraform provider to interact with Travis CI resources.

Prerequisites

  • Terraform >= 0.12.0 (since v0.3.0)

Installation

This is a Third party plugin, so you have to install it manually.

Download plugin from GitHub releases and unarchive it. That's all!

$ latest=$(curl -s https://api.github.com/repos/kamatama41/terraform-provider-unofficial-travis/releases/latest | jq -r ".name")
$ os=$(uname | tr '[:upper:]' '[:lower:]')
$ curl -LO https://github.com/kamatama41/terraform-provider-unofficial-travis/releases/download/${latest}/terraform-provider-utravis_${latest}_${os}_amd64.zip
$ unzip terraform-provider-utravis_${latest}_${os}_amd64.zip && rm terraform-provider-utravis_${latest}_${os}_amd64.zip

(Optional) If you want to use the plugin for other Terraform projects, place the binary into ~/.terraform.d/plugins (%APPDATA%\terraform.d\plugins for Windows users)

Configuration

base_url and token are required. You can use the environment variable TRAVIS_BASE_URL and TRAVIS_API_TOKEN instead of them.

# Configure the unofficial Travis Provider (utravis)
provider "utravis" {
  base_url = "https://api.travis-ci.com/"
  token = "${var.travis_api_token}"
}

# Add an environment variable to the repository
resource "utravis_env_var" "my-repo" {
  slug = "myuser/my-repository"
  name = "FOO"
  value = "bar"
  public = true
}

# Add a private key to the repository
resource "utravis_key_pair" "my-repo" {
  slug = "myuser/my-repository"
  value = "${file("~/.ssh/id_travis_rsa")}"
}

Supported resources

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