Implement bridges and fillout readme with current state
This commit is contained in:
@@ -1,22 +1,3 @@
|
||||
terraform {
|
||||
required_version = ">= 1.0"
|
||||
|
||||
required_providers {
|
||||
proxmox = {
|
||||
source = "bpg/proxmox"
|
||||
version = "~> 0.73"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "proxmox" {
|
||||
endpoint = var.proxmox_endpoint
|
||||
api_token = var.proxmox_api_token
|
||||
|
||||
# Set to true if using a self-signed certificate (common on home labs)
|
||||
insecure = var.proxmox_insecure
|
||||
}
|
||||
|
||||
data "proxmox_virtual_environment_nodes" "vm_nodes" {}
|
||||
|
||||
output "data_proxmox_virtual_environment_nodes" {
|
||||
@@ -26,3 +7,9 @@ output "data_proxmox_virtual_environment_nodes" {
|
||||
online = data.proxmox_virtual_environment_nodes.vm_nodes.online
|
||||
}
|
||||
}
|
||||
|
||||
module "networking" {
|
||||
source = "../../modules/networking"
|
||||
|
||||
proxmox_node_name = var.proxmox_node_name
|
||||
}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
# Copy this file to terraform.tfvars and fill in your values.
|
||||
# terraform.tfvars is gitignored to keep secrets out of version control.
|
||||
|
||||
proxmox_endpoint = "https://192.168.1.10:8006/"
|
||||
proxmox_api_token = "terraform@pve!terraform-nonprod=<secret>"
|
||||
proxmox_insecure = true
|
||||
@@ -14,3 +14,8 @@ variable "proxmox_insecure" {
|
||||
type = bool
|
||||
default = true
|
||||
}
|
||||
|
||||
variable "proxmox_node_name" {
|
||||
description = "Name of the Proxmox node to manage resources on"
|
||||
type = string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user