Terraform provider for DECORT platform (API 3.6.x or later)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
stSolo b849521780
Add disk-list
3 years ago
.github/workflows k8s, k8s_wg: single worker add/delete support; github actions support 3 years ago
decort Add disk-list 3 years ago
docs updated docs 3 years ago
samples Add disk-list 3 years ago
tools added goreleaser, terraform docs 3 years ago
.gitignore Add some resources and data-resources, fix bugs 3 years ago
.goreleaser.yml k8s, k8s_wg: single worker add/delete support; github actions support 3 years ago
CHANGELOG.md updated changelog, enabled experimental features in depchek; v2.2.0 ready 3 years ago
Jenkinsfile-sast updated changelog, enabled experimental features in depchek; v2.2.0 ready 3 years ago
LICENSE Initial commit 4 years ago
Makefile Fix bugs, add grid, grid list, image, image list data 3 years ago
README.md Add sample for vgpu data, edit readme files 3 years ago
README_EN.md Add sample for vgpu data, edit readme files 3 years ago
go.mod Add some resources and data-resources, fix bugs 3 years ago
go.sum Fixed asyncs tasks parsing; Applied k8s API changes; Updated docs 3 years ago
main.go added goreleaser, terraform docs 3 years ago
sonar-project.properties added Jenkinsfile and sonar-project.properties for SAST analysis 3 years ago
terraform-registry-manifest.json added goreleaser, terraform docs 3 years ago

README_EN.md

terraform-provider-decort

Terraform provider for Digital Energy Cloud Orchestration Technology (DECORT) platform

NOTE: provider rc-1.25 is designed for DECORT API 3.7.x. For older API versions please use:

Features

  • Work with Compute instances,
  • Work with disks,
  • Work with k8s,
  • Work with image,
  • Work with reource groups,
  • Work with VINS,
  • Work with pfw,
  • Work with accounts,
  • Work with snapshots,
  • Work with pcidevice.
  • Work with sep,
  • Work with vgpu.

This provider supports Import operations on pre-existing resources.

See user guide at https://github.com/rudecs/terraform-provider-decort/wiki

Get Started

Two ways for starting:

  1. Installing via binary packages
  2. Manual installing

Installing via binary packages

  1. Download and install terraform: https://learn.hashicorp.com/tutorials/terraform/install-cli?in=terraform/aws-get-started
  2. Create a file main.tf and add to it next section.
provider "decort" {
  authenticator = "oauth2"
  #controller_url = <DECORT_CONTROLLER_URL>
  controller_url = "https://ds1.digitalenergy.online"
  #oauth2_url = <DECORT_SSO_URL>
  oauth2_url           = "https://sso.digitalenergy.online"
  allow_unverified_ssl = true
}
  1. Execute next command
terraform init

The Provider will automatically install on your computer from the terrafrom registry.

Manual installing

  1. Download and install Go Programming Language: https://go.dev/dl/
  2. Download and install terraform: https://learn.hashicorp.com/tutorials/terraform/install-cli?in=terraform/aws-get-started
  3. Clone provider's repo:
git clone https://github.com/rudecs/terraform-provider-decort.git
  1. Change directory to clone provider's and execute next command
go build -o terraform-provider-decort

If you have experience with makefile, you can change Makefile's paramters and execute next command

make build
  1. Now move compilled file to:
    Linux:
~/.terraform.d/plugins/${host_name}/${namespace}/${type}/${version}/${target}

Windows:

%APPDATA%\terraform.d\plugins\${host_name}/${namespace}/${type}/${version}/${target}

NOTE: for Windows OS %APP_DATA% is a cataloge, where will place terraform files. Example:

  • host_name - digitalenergy.online
  • namespace - decort
  • type - decort
  • version - 1.2
  • target - windows_amd64
  1. After all, create a file main.tf.
  2. Add to the file next code section
terraform {
  required_providers {
    decort = {
      version = "1.2"
      source  = "digitalenergy.online/decort/decort"
    }
  }
}

version- field for provider's version Required String Note: Versions in code section and in a repository must be equal!

source - path to repository with provider's version

${host_name}/${namespace}/${type}

NOTE: all paramters must be equal to the repository path!

  1. Execute command in your terminal
terraform init
  1. If everything all right - you got green message in your terminal!

More details about the provider's building process: https://learn.hashicorp.com/tutorials/terraform/provider-use?in=terraform/providers

Examples and Samples

Terraform schemas in:

  • See in repository docs

Good work!