Skip to content

Commit fc107d7

Browse files
chkp-guybarakchkp-eddiek
authored andcommitted
Adding internal submodules: common, nsg and vnet
1 parent 2ba1941 commit fc107d7

File tree

12 files changed

+758
-0
lines changed

12 files changed

+758
-0
lines changed

modules/common/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
resource "azurerm_resource_group" "resource_group" {
2+
name = var.resource_group_name
3+
location = var.location
4+
}
5+

modules/common/outputs.tf

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
output "resource_group_name" {
2+
value = azurerm_resource_group.resource_group.name
3+
}
4+
5+
output "resource_group_id" {
6+
value = azurerm_resource_group.resource_group.id
7+
}
8+
9+
output "resource_group_location" {
10+
value = azurerm_resource_group.resource_group.location
11+
}
12+
13+
output "azurerm_resource_group_id" {
14+
value = azurerm_resource_group.resource_group.id
15+
}
16+
17+
output "admin_username" {
18+
value = var.admin_username
19+
}
20+
21+
output "admin_password"{
22+
value = var.admin_password
23+
}
24+
25+
output "vm_instance_identity" {
26+
value = var.vm_instance_identity_type
27+
}
28+
29+
output "template_name"{
30+
value = var.template_name
31+
}
32+
33+
output "template_version" {
34+
value = var.template_version
35+
}
36+
37+
output "bootstrap_script"{
38+
value = var.bootstrap_script
39+
}
40+
41+
output "os_version" {
42+
value = var.os_version
43+
}
44+
45+
output "installation_type" {
46+
value = var.installation_type
47+
}
48+
49+
output "number_of_vm_instances" {
50+
value = var.number_of_vm_instances
51+
}
52+
53+
output "allow_upload_download" {
54+
value = var.allow_upload_download
55+
}
56+
57+
output "is_blink" {
58+
value = var.is_blink
59+
}
60+
61+
output "vm_size" {
62+
value = var.vm_size
63+
}
64+
65+
output "delete_os_disk_on_termination" {
66+
value = var.delete_os_disk_on_termination
67+
}
68+
69+
output "vm_os_offer" {
70+
value = var.vm_os_offer
71+
}
72+
73+
output "vm_os_sku" {
74+
value = var.vm_os_sku
75+
}
76+
77+
output "vm_os_version" {
78+
value = var.vm_os_version
79+
}
80+
81+
output "storage_account_type" {
82+
value = var.storage_account_type
83+
}
84+
85+
output "storage_account_tier" {
86+
value = var.storage_account_tier
87+
}
88+
89+
output "account_replication_type" {
90+
value = var.account_replication_type
91+
}
92+
93+
output "disk_size" {
94+
value = var.disk_size
95+
}
96+
97+
output "publisher" {
98+
value = var.publisher
99+
}
100+
101+
output "storage_os_disk_create_option" {
102+
value = var.storage_os_disk_create_option
103+
}
104+
105+
output "storage_os_disk_caching" {
106+
value = var.storage_os_disk_caching
107+
}
108+
109+
output "managed_disk_type" {
110+
value = var.managed_disk_type
111+
}
112+
113+
output "authentication_type" {
114+
value = var.authentication_type
115+
}
116+
117+
output "tags" {
118+
value = var.tags
119+
}
120+
121+
output "boot_diagnostics" {
122+
value = var.boot_diagnostics
123+
}
124+
125+
output "storage_account_ip_rules" {
126+
value = local.storage_account_ip_rules
127+
}
128+
output "role_definition" {
129+
value = var.role_definition
130+
}

0 commit comments

Comments
 (0)