Skip to content

llomgui/terraform-provider-openshift

Repository files navigation

Terraform Provider for Openshift

Requirements

Building the provider

Clone repository to: $GOPATH/src/github.com/llomgui/terraform-provider-openshift

$ mkdir -p $GOPATH/src/github.com/llomgui; cd $GOPATH/src/github.com/llomgui
$ git clone [email protected]:llomgui/terraform-provider-openshift

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/llomgui/terraform-provider-openshift
$ make build

Developing the provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.14+ is required). You can use goenv to manage your Go version. 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 build
...
$ $GOPATH/bin/terraform-provider-openshift
...

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.

Provider Documents

Currently the documents for this provider is not hosted by the official site Terraform Providers. Please enter the provider directory and build the website locally.

$ make website

The commands above will start a docker-based web server powered by Middleman, which hosts the documents in website directory. Simply open http://localhost:4567/docs/providers/openshift and enjoy them.