infrastructure/terraform/casey_vps.tf

60 lines
1.5 KiB
Terraform
Raw Normal View History

2020-02-21 18:44:25 +00:00
resource "vultr_server" "casey" {
2020-02-22 22:13:44 +00:00
plan_id = 200
region_id = 8
os_id = 159
hostname = "casey"
firewall_group_id = vultr_firewall_group.casey.id
}
resource "vultr_firewall_group" "casey" {
description = "casey"
}
resource "vultr_firewall_rule" "casey_ping" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "icmp"
network = "0.0.0.0/0"
}
resource "vultr_firewall_rule" "casey_web" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "tcp"
from_port = 80
network = "0.0.0.0/0"
}
resource "vultr_firewall_rule" "casey_web_secure" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "tcp"
from_port = 443
network = "0.0.0.0/0"
}
resource "vultr_firewall_rule" "casey_wireguard" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "udp"
from_port = 51820
network = "0.0.0.0/0"
}
resource "vultr_firewall_rule" "casey_quassel" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "tcp"
from_port = 4242
network = "0.0.0.0/0"
}
resource "vultr_firewall_rule" "casey_matrix" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "tcp"
from_port = 8448
network = "0.0.0.0/0"
2020-02-21 18:44:25 +00:00
}
resource "vultr_firewall_rule" "casey_mc" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "tcp"
from_port = 25566
network = "0.0.0.0/0"
}