This provider adds integration between Terraform and Geoserver.
Download the provider source code
$ go get github.com/camptocamp/terraform-provider-geoserver
Enter the provider directory and build the provider
$ cd $GOPATH/src/github.com/camptocamp/terraform-provider-geoserver
$ make build
After building the provider, install it using the Terraform instructions for installing a third party provider.
provider geoserver {
url = "https://geoserver.example.tld" # or set $GEOSERVER_URL
username = "admin" # or set $GEOSERVER_USERNAME
password = "password" # or set $GEOSERVER_PASSWORD
insecure = true
}
resource "geoserver_workspace" "foo" {
name = "foo"
}
resource "geoserver_datastore" "default" {
workspace_name = geoserver_workspace.foo.name
name = "default"
type = "postgis"
host = "pgmaster"
port = "5432"
db_name = "test"
db_user = "postgres"
db_pass = "postgres"
}