No description
  • Go 95%
  • HTML 2.1%
  • Shell 1.6%
  • Makefile 1.3%
Find a file
OpenTofu Core Development Team d85d235a54 Apply GitHub workflow changes
2025-11-18 12:30:01 +02:00
.github Apply GitHub workflow changes 2025-11-18 12:30:01 +02:00
rancher Fix tab as spaces in test 2020-01-20 11:31:05 +01:00
scripts Fix Changelog Links Script for rancher provider 2017-06-26 14:00:13 -04:00
vendor use new Terraform plugin SDK 2019-09-30 10:18:28 +02:00
website Add documentation for rancher_volume 2017-12-19 11:39:55 +01:00
.gitignore Updating Makefile + Add gitignore 2017-06-06 16:29:28 -04:00
.go-version provider: Ensured Go 1.11 in TravisCI and README 2019-02-20 18:43:37 -05:00
.travis.yml deps: use go modules for dep mgmt 2019-02-20 18:44:15 -05:00
CHANGELOG.md Cleanup after v1.5.0 release 2020-01-21 15:07:07 +00:00
GNUmakefile deps: use go modules for dep mgmt 2019-02-20 18:44:15 -05:00
go.mod use new Terraform plugin SDK 2019-09-30 10:18:28 +02:00
go.sum use new Terraform plugin SDK 2019-09-30 10:18:28 +02:00
LICENSE initial commit 2017-06-05 20:59:08 +00:00
main.go use new Terraform plugin SDK 2019-09-30 10:18:28 +02:00
README.md README: Use SVG badge 2019-03-15 18:02:32 +01:00

Terraform Provider

Requirements

  • Terraform 0.10.x
  • Go 1.11 (to build the provider plugin)

Building The Provider

Clone repository to: $GOPATH/src/github.com/terraform-providers/terraform-provider-rancher

$ mkdir -p $GOPATH/src/github.com/terraform-providers; cd $GOPATH/src/github.com/terraform-providers
$ git clone git@github.com:terraform-providers/terraform-provider-rancher

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-rancher
$ make build

Using the provider

Fill in for each provider

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.11+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

To compile the provider, run make build. This will build the provider and put the provider binary in the $GOPATH/bin directory.

$ make bin
...
$ $GOPATH/bin/terraform-provider-rancher
...

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

$ make testacc