Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
update terraform-provider-build doc for IBM Power
Browse files Browse the repository at this point in the history
Fixes: #37
Signed-off-by: Prajyot Parab <prajyot.parab@ibm.com>
  • Loading branch information
Prajyot-Parab committed Sep 3, 2020
1 parent 16885dd commit 23a6013
Showing 1 changed file with 40 additions and 6 deletions.
46 changes: 40 additions & 6 deletions docs/terraform-provider-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,47 @@ Download Terraform for IBM Power Systems from https://www.power-devops.com/terra
Install latest go from https://golang.org/dl/ and set your GOPATH

```
go get -u github.com/dmacvicar/terraform-provider-libvirt
go get -u github.com/terraform-providers/terraform-provider-random
go get -u github.com/terraform-providers/terraform-provider-ignition
go get -u github.com/terraform-providers/terraform-provider-null
cd $GOPATH/bin/ ; mkdir -p ~/.terraform.d/plugins/;
cp * ~/.terraform.d/plugins/
mkdir -p ~/.terraform.d/plugins/
```

**terraform-provider-libvirt**: Please refer to the section below for instructions on installing the libvirt provider plugin. For [more information](https://github.com/dmacvicar/terraform-provider-libvirt#building-from-source).
```
git clone https://github.com/dmacvicar/terraform-provider-libvirt $GOPATH/src/github.com/dmacvicar/terraform-provider-libvirt
cd $GOPATH/src/github.com/dmacvicar/terraform-provider-libvirt
make install
cp $GOPATH/bin/terraform-provider-libvirt ~/.terraform.d/plugins/terraform-provider-libvirt
```

**terraform-provider-random >=2.3, <3.0**: Please refer to the section below for instructions on installing the random provider plugin. For [more information](https://github.com/hashicorp/terraform-provider-random#building-the-provider).
```
git clone --branch <TAG> https://github.com/terraform-providers/terraform-provider-random $GOPATH/src/github.com/terraform-providers/terraform-provider-random
cd $GOPATH/src/github.com/terraform-providers/terraform-provider-random
make build
cp $GOPATH/bin/terraform-provider-random ~/.terraform.d/plugins/terraform-provider-random_<TAG>
Note: Set <TAG> to compatible version eg. v2.3.0
```

**terraform-provider-ignition >=1.2, <2.0**: Please refer to the section below for instructions on installing the ignition provider plugin. For [more information](https://github.com/terraform-providers/terraform-provider-ignition#building-the-provider).
```
git clone --branch <TAG> https://github.com/terraform-providers/terraform-provider-ignition $GOPATH/src/github.com/terraform-providers/terraform-provider-ignition
cd $GOPATH/src/github.com/terraform-providers/terraform-provider-ignition
make build
cp $GOPATH/bin/terraform-provider-ignition ~/.terraform.d/plugins/terraform-provider-ignition_<TAG>
Note: Set <TAG> to compatible version eg. v1.2.1
```

**terraform-provider-null >=2.1, <3.0**: Please refer to the section below for instructions on installing the null provider plugin. For [more information](https://github.com/hashicorp/terraform-provider-null#building-the-provider).
```
git clone --branch <TAG> https://github.com/terraform-providers/terraform-provider-null $GOPATH/src/github.com/terraform-providers/terraform-provider-null
cd $GOPATH/src/github.com/terraform-providers/terraform-provider-null
make build
cp $GOPATH/bin/terraform-provider-null ~/.terraform.d/plugins/terraform-provider-null_<TAG>
Note: Set <TAG> to compatible version eg. v2.1.2
```

Upon successful completion. Please follow the instructions outlined here
https://github.com/ocp-power-automation/ocp4-upi-kvm/blob/master/docs/quickstart.md#start-install

0 comments on commit 23a6013

Please sign in to comment.