terraform-provider-sitehost

command module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 3 Imported by: 0

README

Terraform logo

Terraform Provider for SiteHost

Requirements
  • Terraform 0.10.x
  • Go 1.18 (to build the provider plugin)
Example Usage
terraform {
    required_providers {
        sitehost = {
            source = "sitehostnz/sitehost"
            version = "~> 1.0"
        }
    }
}

provider "sitehost" {
    client_id = "****"
    api_key = "***"
    api_endpoint = "https://api.sitehost.nz/1.1/"
}

resource "sitehost_server" "web" {
    label = "webserver"
    location = "AKLCITY"
    product_code = "XENLIT"
    image = "ubuntu-jammy-pvh.amd64"
}

You can read more about the steps to create a SiteHost API KEY in our knowledge base.

Locations - Product Codes - Images

Check our KB to see the complete list of locations, product codes and images.

Building The Provider (For developers)

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

$ git clone git@github.com:sitehostnz/terraform-provider-sitehost

Enter the provider directory and build the provider

$ make install

Contributing

If you're interested in contributing to our project:

License

SiteHost Terraform project is distributed under MIT.

Documentation

Overview

Package main is the starting point of the project to initialise the Terraform provider.

Directories

Path Synopsis
Package sitehost provides the functions to create a Terraform Provider to create resources via SiteHost API.
Package sitehost provides the functions to create a Terraform Provider to create resources via SiteHost API.
cloud/stack
Package stack provides the functions to create/get cloud stacks resource via SiteHost API.
Package stack provides the functions to create/get cloud stacks resource via SiteHost API.
dns
Package dns provides the functions to create/get dns zones/records resource via SiteHost API.
Package dns provides the functions to create/get dns zones/records resource via SiteHost API.
helper
Package helper provides the functions to work with SiteHost API.
Package helper provides the functions to work with SiteHost API.
info
Package info provides the function to call api/get_info resource via SiteHost API.
Package info provides the function to call api/get_info resource via SiteHost API.
server
Package server provides the functions to create a Server resource via SiteHost API.
Package server provides the functions to create a Server resource via SiteHost API.
ssh_key
Package sshkey provides the functions to create a SSH Key resource via SiteHost API.
Package sshkey provides the functions to create a SSH Key resource via SiteHost API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL