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.
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.
provider "previder" {
token = "<token>"
}
The following arguments are supported:
- token - (Required) This is your personal API token for accessing resources in the Previder IaaS environment.
resource "previder_virtualnetwork" "testlab-net" {
name = "testlab-net"
}
The following arguments are supported:
- name : (Required) The network name
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"
}
}
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"
}
}
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)
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.
This project uses the API client from the previder-go-sdk project.
- 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