Skip to content

Commit

Permalink
docs: improve README, remove duplicate example
Browse files Browse the repository at this point in the history
  • Loading branch information
teutat3s committed Apr 26, 2023
1 parent a9ce907 commit 12236c4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
default: install

generate:
docs:
go generate ./...

install:
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,27 @@

Currently only supports maintaining DNS Zones and Records.

- [Provider documentation](https://registry.terraform.io/providers/pub-solar/hostingde/latest/docs)

### Environment variables for provider configuration
- Required: `HOSTINGDE_AUTH_TOKEN`, go to your [hosting.de profile](https://secure.hosting.de/profile) and create an API Key
- Optional: `HOSTINGDE_ACCOUNT_ID`

### Quick start
Copy the example `main.tf`, then run the following commands:

```shell
export HOSTINGDE_AUTH_TOKEN=your-token
```
```shell
terraform init
```
```shell
terraform plan -out "hostingde.plan"
```
```shell
terraform apply "hostingde.plan"
```

### Example `main.tf`
```
Expand Down Expand Up @@ -152,6 +165,12 @@ Compile and install the provider into your `$GOPATH/bin`
make install
```

Generate documentation to `docs/`

```shell
make docs
```

Run resource tests
```shell
export HOSTINGDE_AUTH_TOKEN=YOUR-API-TOKEN
Expand Down
34 changes: 0 additions & 34 deletions example/main.tf

This file was deleted.

0 comments on commit 12236c4

Please sign in to comment.