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
To use the locally installed provider, please use the following in your main.tf etc, and then run `terraform init`:
41
41
42
-
```
42
+
```sh
43
43
terraform {
44
44
required_providers {
45
45
cloudstack = {
@@ -79,7 +79,7 @@ User hitting installation issue using registry can install using the local insta
79
79
80
80
## Documentation
81
81
82
-
For more details on how to use the provider, click [here](website/) or visit https://registry.terraform.io/providers/cloudstack/cloudstack/latest/docs
82
+
For more details on how to use the provider, visit [website](website/) or visit <https://registry.terraform.io/providers/cloudstack/cloudstack/latest/docs>
83
83
84
84
## Developing the Provider
85
85
@@ -88,18 +88,18 @@ If you wish to work on the provider, you'll first need [Go](http://www.golang.or
88
88
Clone repository to: `$GOPATH/src/github.com/apache/cloudstack-terraform-provider`
In order to test the provider, you can simply run `make test`.
119
119
120
120
```sh
121
-
$ make test
121
+
make test
122
122
```
123
123
124
124
In order to run the full suite of Acceptance tests you will need to run the CloudStack Simulator. Please follow these steps to prepare an environment for running the Acceptance tests:
@@ -137,7 +137,7 @@ or
137
137
docker run --name simulator -p 8080:5050 -d apache/cloudstack-simulator:4.20.1.0
138
138
```
139
139
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.
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.
141
141
142
142
Once the login page is shown and you can login, you need to provision a simulated data-center:
If you refresh the client or login again, you will now get passed the initial welcome screen and be able to go to your account details and retrieve the API key and secret. Export those together with the URL:
In order for all the tests to pass, you will need to create a new (empty) project in the UI called `terraform`. When the project is created you can run the Acceptance tests against the CloudStack Simulator by simply running:
157
157
158
158
```sh
159
-
$ make testacc
159
+
make testacc
160
160
```
161
161
162
162
To execute specific test:
163
163
164
164
```sh
165
-
$ make testacc TESTARGS='-run ^TestAccCloudStackNetworkACLRule_update$'
165
+
make testacc TESTARGS='-run ^TestAccCloudStackNetworkACLRule_update$'
166
166
```
167
167
168
168
## Sample Terraform configuration when testing locally
169
169
170
-
Below is an example configuration to initialize provider and create a Virtual Machine instance
170
+
Below is an example configuration to initialize provider and create a Virtual Machine instance`provider.tf`
0 commit comments