-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
57 lines (55 loc) · 1.67 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
################################### terraform block ####################################
terraform {
cloud {
organization = "RCHomeLab"
workspaces {
name = "azure-jmusicbot"
}
}
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~>3.0"
}
tls = {
source = "hashicorp/tls"
version = "~>4.0"
}
}
}
#################################### provider block ####################################
provider "azurerm" {
features {}
subscription_id = var.sub
}
#################################### module block ####################################
module "jmusicbot" {
source = "RCFromCLE/jmusicbot/azure"
version = "v2.2.7"
# required variables
azure_tenant_id = var.azure_tenant_id
sub = var.sub
discord_bot_token = var.discord_bot_token
discord_bot_owner = var.discord_bot_owner
general_channel_id = var.general_channel_id
music_channel_id = var.music_channel_id
afk_channel_id = var.afk_channel_id
azure_client_id = var.azure_client_id
azure_client_secret = var.azure_client_secret
# optional variables
rg = var.rg
rg_loc = var.rg_loc
net = var.net
subnet = var.subnet
pub_ip = var.pub_ip
nic_name = var.nic_name
nsg = var.nsg
vm_name = var.vm_name
vm_size = var.vm_size
vm_image_publisher = var.vm_image_publisher
vm_image_offer = var.vm_image_offer
vm_image_sku = var.vm_image_sku
vm_image_version = var.vm_image_version
os_disk_name = var.os_disk_name
vm_admin_username = var.vm_admin_username
}