DEPRECATED There is an official Terraform provider plugin which is maintained by Rancher Labs. Therefore, this project will no longer be carried on. → https://github.com/rancher/terraform-provider-rancher2
Terraform Provider
Requirements
Building the Provider
Clone repository outside of your GOPATH.
# Clone the provider plugin sources
$ mkdir -p ~/Projects; cd ~/Projects
$ git clone git@github.com:iplabs/terraform-provider-rancher2
Enter the provider directory and build the provider
# Build the provider plugin
$ cd ~/Projects/terraform-provider-rancher2
$ make build
# Now make the plugin locally available
# OS represents your operating system (e.g. windows, darwin, linux) and
# ARCH represents your operating system's architecture (most likely: amd64)
$ cp $GOPATH/bin/terraform-provider-rancher2 ~/.terraform.d/plugins/${OS}_${ARCH}/
Using the provider
If you're building the provider, follow the instructions to install it as a plugin.
After placing it into your plugins directory, run terraform init
to initialize it.