Giter Club home page Giter Club logo

terraform-provider-teamcity's Introduction

Terraform Provider TeamCity

Build Status

Motivation:

Building Builds: TeamCity Pipelines as Code using Terraform

Installation

Binaries (Recommended)

The easiest way to install this provider is to use one of the binary distributions available as Releases. It contains pre-compiled bundles for Linux, MacOS and Windows.

Download and unpack the version for your OS/arch.
In the example below, we use MacOS (darwin_amd64) and version v0.5.1:

VERSION=v0.5.1
wget https://github.com/cvbarros/terraform-provider-teamcity/releases/download/$VERSION/terraform-provider-teamcity_darwin_amd64_$VERSION.zip
tar -xvf terraform-provider-teamcity_darwin_amd64_$VERSION.zip 

Then, copy the output file to your ~/.terraform.d/plugins directory. For Windows, use the directory %APPDATA%\terraform.d\plugins

Note: If you never installed any terraform providers before, you'll have to create that directory.

cp terraform-provider-teamcity_$VERSION ~/.terraform.d/plugins/

Build from Source

Requirements

  • Terraform 0.11.x (advised 0.12+)
  • Go 1.12 (to build the provider plugin)

Clone the repository to the directory of your choice, then from the root of repository, run the target below. It is advisable to checkout a tag corresponding to a version first, instead of master.

If the plugins directory doesn't exist, you have to create it first.

$ VERSION=v0.5.1 make install

This will build a binary for your platform and place it on the .

Using the provider

To use it in your Terraform configurations after installing, declare a provider block:

provider "teamcity" {
  address = "https://teamcity.yourserver.com:8112"
  username = "username"
  password = "password"
}

Provider configuration via Environment Variables

All provider attributes above can be configured via environment variables. This is specially useful for credentials.

Parameter Environment Variable
address TEAMCITY_ADDR
username TEAMCITY_USER
password TEAMCITY_PASS

By using these variables, you may omit the attributes on the provider configuration, as they will be read from environment.

Documentation

Documentation on available resources is under website directory in markdown format. If you would like to contribute to keep documentation error-free and up to date, please see CONTRIBUTING. This format is compatible with other providers on Terraform Docs.

Example Configurations

You can find several sample configurations under /examples. As a best effort basis, the samples will be following the same terraform version as the provider is built against.

There is a .terraform-version file that indicates the minimum terraform version to which the samples are compatible. Use of tfenv is recommended so you can run multiple versions of terraform locally and switch based on the .terraform-version file.

Please feel free to open an issue if you encounter any problems, or contribute to new sample configurations.

Developing

Please see CONTRIBUTING.

terraform-provider-teamcity's People

Contributors

cvbarros avatar eli-guidewire avatar gertjvr avatar matthodge avatar tombuildsstuff avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.