No description
  • Go 96.6%
  • HTML 1.8%
  • Makefile 0.9%
  • Shell 0.7%
Find a file
2020-07-07 16:42:33 +00:00
.github Mark hcl markdown code blocks as terraform 2019-10-15 18:52:10 +02:00
gridscale get custom HTTP headers from a tf variable 2020-07-07 15:37:19 +02:00
scripts Fix Changelog Links Script for template provider 2017-06-26 14:00:45 -04:00
vendor update vendor folder 2020-06-30 13:23:37 +02:00
website add docs of custom HTTP headers 2020-07-07 15:37:19 +02:00
.gitignore Added buildallplatforms function to makefile 2019-01-08 15:30:49 +01:00
.travis.yml CI: keep build output shorter 2020-05-11 13:54:27 +02:00
CHANGELOG.md Cleanup after v1.6.2 release 2020-07-07 16:42:33 +00:00
GNUmakefile add -f to ln for website-test target 2019-07-19 22:42:42 +02:00
go.mod update package gsclient-go v3.1.0 2020-06-30 13:23:22 +02:00
go.sum update package gsclient-go v3.1.0 2020-06-30 13:23:22 +02:00
LICENSE initial commit 2017-06-05 20:54:12 +00:00
main.go update provider to use terraform-plugin-sdk 2019-09-26 12:24:34 +02:00
README.md update README 2020-05-26 13:18:34 +02:00

Terraform gridscale Provider Build Status GitHub tag (latest SemVer) Gitter chat

Website: https://www.terraform.io

Mailing list: Google Groups

Maintainers

This provider plugin is maintained by the Terraform team at gridscale.

Requirements

  • Terraform 0.12.x
  • Go ≥ 1.13 (to build the provider plugin)

Building the Provider

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

$ mkdir -p $GOPATH/src/github.com/gridscale; cd $GOPATH/src/github.com/gridscale
$ git clone git@github.com:gridscale/terraform-provider-gridscale.git

Enter the provider directory and build the provider

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

Using the Provider

See the gridscale provider documentation to get started on using the gridscale provider.

Alternatively, this documentation can also be found within this repository. Check out website/docs/index.html.markdown to get started. Documentation on how to create resources like servers, storages and networks can be found in website/docs/r. Documentation on how to add resources like storages, networks and IP addresses to servers, check out the documentation on datasources found in website/docs/d.

Available Features

Feature Availability
Server (CRUD) ✔️
Server dependency (link/unlink) ✔️
Load balancer (CRUD) ✔️
PaaS (CRUD) ✔️
Storage (CRUD) ✔️
Object storage (CRUD) ✔️
IP address (CRUD) ✔️
Network (CRUD) ✔️
Security zone (PaaS) (CRUD) ✔️
Firewall (CRUD) ✔️
SSH key (CRUD) ✔️
ISO Image (CRUD) ✔️
Snapshot (CRUD) ✔️
Snapshot rollback ✔️
Snapshot to S3 ✔️
Snapshot schedule (CRUD) ✔️
Template (CRUD) ✔️
Multiple project support (Workaround)
Marketplace

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.8+ is required). 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-gridscale
…

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

$ make testacc

In order to run a specific Acceptance test.

$ make testacc TEST=./gridscale/ TESTARGS='-run=TestAccResourceGridscaleLoadBalancerBasic'

Known Issues

The following issues are known to us:

  • Changing the name attribute in a template datasource will not trigger storages using this template to be recreated.
  • If a storage has snapshots, terraform can not delete it.
  • The autorecovery value of a server can't be changed with Terraform.