terraform-provider-previder

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 2 Imported by: 0

README

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 support@previder.nl. 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"
    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"
    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)
  • 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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