You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Go](https://golang.org/doc/install) 1.20+ (to build the provider plugin)
9
7
10
8
See wiki: https://github.com/apache/cloudstack-terraform-provider/wiki
11
9
12
-
Installing from Github Release
13
-
------------------------------
10
+
## Installing from Github Release
14
11
15
12
User can install the CloudStack Terraform Provider using the [Github Releases](https://github.com/apache/cloudstack-terraform-provider/releases) with the installation steps below.
16
13
@@ -59,9 +56,10 @@ provider "cloudstack" {
59
56
60
57
Note: this can be used when users are not able to install using the Terraform registry.
61
58
62
-
Installing from Terrafrom registry
63
-
----------------------------------
59
+
## Installing from Terrafrom registry
60
+
64
61
To install the CloudStack provider, copy and paste the below code into your Terraform configuration. Then, run terraform init.
62
+
65
63
```sh
66
64
terraform {
67
65
required_providers {
@@ -79,15 +77,13 @@ provider "cloudstack" {
79
77
80
78
User hitting installation issue using registry can install using the local install method.
81
79
82
-
Documentation
83
-
-------------
80
+
## Documentation
84
81
85
82
For more details on how to use the provider, click [here](website/) or visit https://registry.terraform.io/providers/cloudstack/cloudstack/latest/docs
86
83
87
-
Developing the Provider
88
-
---------------------------
84
+
## Developing the Provider
89
85
90
-
If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.16+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.
86
+
If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.16+ is _required_). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.
91
87
92
88
Clone repository to: `$GOPATH/src/github.com/apache/cloudstack-terraform-provider`
93
89
@@ -105,6 +101,7 @@ $ cd $GOPATH/src/github.com/apache/cloudstack-terraform-provider
105
101
$ make build
106
102
$ ls $GOPATH/bin/terraform-provider-cloudstack
107
103
```
104
+
108
105
Once the build is ready, you have to copy the binary into Terraform locally (version appended).
109
106
110
107
On Linux and Mac this path is at ~/.terraform.d/plugins,
docker run --name simulator -p 8080:5050 -d apache/cloudstack-simulator
138
134
139
135
or
140
136
141
-
docker run --name simulator -p 8080:5050 -d apache/cloudstack-simulator:4.17.2.0
137
+
docker run --name simulator -p 8080:5050 -d apache/cloudstack-simulator:4.19.0.0
142
138
```
143
139
144
140
When Docker started the container you can go to http://localhost:8080/client and login to the CloudStack UI as user `admin` with password `password`. It can take a few minutes for the container is fully ready, so you probably need to wait and refresh the page for a few minutes before the login page is shown.
@@ -163,8 +159,8 @@ In order for all the tests to pass, you will need to create a new (empty) projec
163
159
$ make testacc
164
160
```
165
161
166
-
Sample Terraform configuration when testing locally
0 commit comments