Skip to content

mlvnd/terraform-provider-previder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Previder Provider

The Previder provider is used to interact with resources on the Previder IaaS environment. The provider needs to be configured with an API token that will be provided by Previder.

Before using this README, make sure that you have installed the Previder Provider using INSTALL.

Important notice

This Terraform provider is provided to you "as-is" and without warranty of any kind, express, implied or otherwise, including without limitation, any warranty of fitness for a particular purpose.

If you have any questions, we encourage you to do your own research, seek out experts, and discuss with your community. If there are questions that remain unanswered, please send an e-mail to [email protected]. We’re going to do our best to help answer the questions that you have. Since the Terraform provider is provided for free, please understand that more complex questions can only be answered for a fee.

Example Usage

provider "previder" {
    token = "<token>"
}

Argument reference

The following arguments are supported:

  • token - (Required) This is your personal API token for accessing resources in the Previder IaaS environment.

Resources

previder_virtualnetwork

Example usage

resource "previder_virtualnetwork" "testlab-net" {
    name = "testlab-net"
}

Argument reference

The following arguments are supported:

  • name : (Required) The network name

previder_virtualmachine

Example usage 1

resource "previder_virtualmachine" "testlab-vm1" {
    name = "testlab-vm1"
    cpucores = 2
    memory = 2048
    template = "ubuntu1804lts"
    cluster = "express"
    group = "<unique group identifier>"
    disk {
     size = 10240
     label = "OS"
    }
    network_interface {
     network = "<unique network identifier>"
	 connected = true
	 label = "WAN NIC"
    }
    user_data = <<EOF
#cloud-config

users:
  - name: ubuntu
    passwd: VGVzdDEyMyEK
EOF
    connection {
        user = "ubuntu"
        type = "ssh"
        timeout = "2m"
    }
}

Example usage 2

resource "previder_virtualmachine" "testlab-vm1" {
    name = "testlab-vm1"
    cpucores = 2
    memory = 2048
    template = "ubuntu1804lts"
    cluster = "express"
    group = "<unique group identifier>"
    disk {
     size = 10240
     label = "OS"
    }
    network_interface {
     network = "<unique network identifier>"
	 connected = true
	 label = "WAN NIC"
    }
	user_data = <<EOF
#cloud-config
ssh_authorized_keys:
  - "ssh-rsa <insert public key>"
  - "ssh-rsa <insert public key>"
EOF
    connection {
        user = "ubuntu"
        type = "ssh"
        timeout = "2m"
    }
}

Argument Reference

The following arguments are supported:

  • name - (Required)
  • cpucores - (Required)
  • memory - (Required)
  • disk - (Required)
  • cluster - (Optional)
  • group - (Optional) This identifier can be found in the Previder Portal as ObjectId, or through the Previder API.
  • network_interface - (Required)
    • network - (Required) This identifier can be found in the Previder Portal as ObjectId, or through the Previder API.
  • template - (Optional)
  • user_data - (Optional)
  • termination_protection - (Optional)

Motivation

As projects besides e.g. the Previder Portal, the development team at Previder develops and maintains multiple projects aiming to integrate the previder IaaS environment.

API Reference

This project uses the API client from the previder-go-sdk project.

Contributors

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
  • Fork the project
  • Start a feature/bugfix branch
  • Commit and push until you are happy with your contribution
  • Send a merge request describing your exact problem, what and how you fixed it

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 97.2%
  • Shell 2.8%