Skip to content

Commit b60da8b

Browse files
committed
style: terraform fmt autofixes
1 parent 3b1c137 commit b60da8b

10 files changed

Lines changed: 155 additions & 155 deletions

File tree

examples/example-firewall/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Create a VNET using an Azure Firewall to control the VNET network access
22
module "vnet" {
3-
source = "github.com/garnertb/github-runner-vnet//modules/firewall"
3+
source = "github.com/garnertb/github-runner-vnet//modules/firewall"
44

5-
base_name = var.base_name
6-
github_business_id = var.github_business_id
5+
base_name = var.base_name
6+
github_business_id = var.github_business_id
77
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
output "gh_network_settings_resource_id" {
2-
description = "ID of the GitHub.Network/networkSettings resource"
3-
value = module.vnet.network_settings_id
2+
description = "ID of the GitHub.Network/networkSettings resource"
3+
value = module.vnet.network_settings_id
44
}

examples/example-nsg/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Create a VNET using an Azure Network Security Group to control the VNET network access
22
module "vnet" {
3-
source = "github.com/garnertb/github-runner-vnet//modules/nsg"
3+
source = "github.com/garnertb/github-runner-vnet//modules/nsg"
44

5-
base_name = var.base_name
6-
github_business_id = var.github_business_id
5+
base_name = var.base_name
6+
github_business_id = var.github_business_id
77
}

examples/example-nsg/outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
output "gh_network_settings_resource_id" {
2-
description = "ID of the GitHub.Network/networkSettings resource"
3-
value = module.vnet.network_settings_id
2+
description = "ID of the GitHub.Network/networkSettings resource"
3+
value = module.vnet.network_settings_id
44
}

main.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Create a VNET using an Azure Network Security Group to control the VNET network access
22
module "vnet" {
3-
source = "./modules/nsg"
3+
source = "./modules/nsg"
44

5-
base_name = var.base_name
6-
github_business_id = var.github_business_id
7-
location = var.location
8-
vnet_address_space = var.vnet_address_space
9-
runner_subnet_address_prefixes = var.runner_subnet_address_prefixes
5+
base_name = var.base_name
6+
github_business_id = var.github_business_id
7+
location = var.location
8+
vnet_address_space = var.vnet_address_space
9+
runner_subnet_address_prefixes = var.runner_subnet_address_prefixes
1010
}

modules/firewall/main.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ resource "azurerm_virtual_network" "vnet" {
4444
}
4545

4646
resource "azurerm_subnet" "firewall_subnet" {
47-
address_prefixes = var.firewall_subnet_address_prefixes
47+
address_prefixes = var.firewall_subnet_address_prefixes
4848
# The subnet name has to be exactly this, in order for the subnet to be used for a firewall
4949
name = "AzureFirewallSubnet"
5050
resource_group_name = azurerm_resource_group.resource_group.name
@@ -55,7 +55,7 @@ resource "azurerm_subnet" "firewall_subnet" {
5555
}
5656

5757
resource "azurerm_subnet" "management_subnet" {
58-
address_prefixes = var.firewall_management_subnet_address_prefixes
58+
address_prefixes = var.firewall_management_subnet_address_prefixes
5959
# The subnet name has to be exactly this in order for the subnet to be used for the firewall management
6060
name = "AzureFirewallManagementSubnet"
6161
resource_group_name = azurerm_resource_group.resource_group.name
@@ -132,11 +132,11 @@ resource "azurerm_firewall_policy_rule_collection_group" "firewall_policy_rule_c
132132
}
133133

134134
application_rule_collection {
135-
action = "Allow"
136-
name = "AllowApplicationRules"
135+
action = "Allow"
136+
name = "AllowApplicationRules"
137137
priority = 1000
138138
rule {
139-
name = "GitHub"
139+
name = "GitHub"
140140
source_addresses = ["*"]
141141
destination_fqdns = [
142142
# These FQDNs have been taken from the GitHub documentation for self-hosted runner networking
@@ -180,7 +180,7 @@ resource "azurerm_firewall" "firewall" {
180180
location = var.location
181181
name = "${var.base_name}-firewall"
182182
resource_group_name = azurerm_resource_group.resource_group.name
183-
firewall_policy_id = azurerm_firewall_policy.firewall_policy.id
183+
firewall_policy_id = azurerm_firewall_policy.firewall_policy.id
184184
sku_name = "AZFW_VNet"
185185
sku_tier = "Standard"
186186
ip_configuration {

modules/firewall/outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
output "network_settings_id" {
2-
description = "ID of the GitHub.Network/networkSettings resource"
3-
value = jsondecode(azapi_resource.github_network_settings.output).tags.GitHubId
2+
description = "ID of the GitHub.Network/networkSettings resource"
3+
value = jsondecode(azapi_resource.github_network_settings.output).tags.GitHubId
44
}

modules/nsg/main.tf

Lines changed: 127 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -86,68 +86,68 @@ resource "azurerm_network_security_group" "actions_nsg" {
8686
priority = 220
8787
direction = "Outbound"
8888
destination_address_prefixes = [
89-
"140.82.112.0/20",
90-
"143.55.64.0/20",
91-
"185.199.108.0/22",
92-
"192.30.252.0/22",
93-
"20.175.192.146/32",
94-
"20.175.192.147/32",
95-
"20.175.192.149/32",
96-
"20.175.192.150/32",
97-
"20.199.39.227/32",
98-
"20.199.39.228/32",
99-
"20.199.39.231/32",
100-
"20.199.39.232/32",
101-
"20.200.245.241/32",
102-
"20.200.245.245/32",
103-
"20.200.245.246/32",
104-
"20.200.245.247/32",
105-
"20.200.245.248/32",
106-
"20.201.28.144/32",
107-
"20.201.28.148/32",
108-
"20.201.28.149/32",
109-
"20.201.28.151/32",
110-
"20.201.28.152/32",
111-
"20.205.243.160/32",
112-
"20.205.243.164/32",
113-
"20.205.243.165/32",
114-
"20.205.243.166/32",
115-
"20.205.243.168/32",
116-
"20.207.73.82/32",
117-
"20.207.73.83/32",
118-
"20.207.73.85/32",
119-
"20.207.73.86/32",
120-
"20.207.73.88/32",
121-
"20.233.83.145/32",
122-
"20.233.83.146/32",
123-
"20.233.83.147/32",
124-
"20.233.83.149/32",
125-
"20.233.83.150/32",
126-
"20.248.137.48/32",
127-
"20.248.137.49/32",
128-
"20.248.137.50/32",
129-
"20.248.137.52/32",
130-
"20.248.137.55/32",
131-
"20.27.177.113/32",
132-
"20.27.177.114/32",
133-
"20.27.177.116/32",
134-
"20.27.177.117/32",
135-
"20.27.177.118/32",
136-
"20.29.134.17/32",
137-
"20.29.134.18/32",
138-
"20.29.134.19/32",
139-
"20.29.134.23/32",
140-
"20.29.134.24/32",
141-
"20.87.245.0/32",
142-
"20.87.245.1/32",
143-
"20.87.245.4/32",
144-
"20.87.245.6/32",
145-
"20.87.245.7/32",
146-
"4.208.26.196/32",
147-
"4.208.26.197/32",
148-
"4.208.26.198/32",
149-
"4.208.26.199/32",
150-
"4.208.26.200/32"
89+
"140.82.112.0/20",
90+
"143.55.64.0/20",
91+
"185.199.108.0/22",
92+
"192.30.252.0/22",
93+
"20.175.192.146/32",
94+
"20.175.192.147/32",
95+
"20.175.192.149/32",
96+
"20.175.192.150/32",
97+
"20.199.39.227/32",
98+
"20.199.39.228/32",
99+
"20.199.39.231/32",
100+
"20.199.39.232/32",
101+
"20.200.245.241/32",
102+
"20.200.245.245/32",
103+
"20.200.245.246/32",
104+
"20.200.245.247/32",
105+
"20.200.245.248/32",
106+
"20.201.28.144/32",
107+
"20.201.28.148/32",
108+
"20.201.28.149/32",
109+
"20.201.28.151/32",
110+
"20.201.28.152/32",
111+
"20.205.243.160/32",
112+
"20.205.243.164/32",
113+
"20.205.243.165/32",
114+
"20.205.243.166/32",
115+
"20.205.243.168/32",
116+
"20.207.73.82/32",
117+
"20.207.73.83/32",
118+
"20.207.73.85/32",
119+
"20.207.73.86/32",
120+
"20.207.73.88/32",
121+
"20.233.83.145/32",
122+
"20.233.83.146/32",
123+
"20.233.83.147/32",
124+
"20.233.83.149/32",
125+
"20.233.83.150/32",
126+
"20.248.137.48/32",
127+
"20.248.137.49/32",
128+
"20.248.137.50/32",
129+
"20.248.137.52/32",
130+
"20.248.137.55/32",
131+
"20.27.177.113/32",
132+
"20.27.177.114/32",
133+
"20.27.177.116/32",
134+
"20.27.177.117/32",
135+
"20.27.177.118/32",
136+
"20.29.134.17/32",
137+
"20.29.134.18/32",
138+
"20.29.134.19/32",
139+
"20.29.134.23/32",
140+
"20.29.134.24/32",
141+
"20.87.245.0/32",
142+
"20.87.245.1/32",
143+
"20.87.245.4/32",
144+
"20.87.245.6/32",
145+
"20.87.245.7/32",
146+
"4.208.26.196/32",
147+
"4.208.26.197/32",
148+
"4.208.26.198/32",
149+
"4.208.26.199/32",
150+
"4.208.26.200/32"
151151
]
152152
}
153153

@@ -161,71 +161,71 @@ resource "azurerm_network_security_group" "actions_nsg" {
161161
priority = 210
162162
direction = "Outbound"
163163
destination_address_prefixes = [
164-
"4.175.114.51/32",
165-
"20.102.35.120/32",
166-
"4.175.114.43/32",
167-
"20.72.125.48/32",
168-
"20.19.5.100/32",
169-
"20.7.92.46/32",
170-
"20.232.252.48/32",
171-
"52.186.44.51/32",
172-
"20.22.98.201/32",
173-
"20.246.184.240/32",
174-
"20.96.133.71/32",
175-
"20.253.2.203/32",
176-
"20.102.39.220/32",
177-
"20.81.127.181/32",
178-
"52.148.30.208/32",
179-
"20.14.42.190/32",
180-
"20.85.159.192/32",
181-
"52.224.205.173/32",
182-
"20.118.176.156/32",
183-
"20.236.207.188/32",
184-
"20.242.161.191/32",
185-
"20.166.216.139/32",
186-
"20.253.126.26/32",
187-
"52.152.245.137/32",
188-
"40.118.236.116/32",
189-
"20.185.75.138/32",
190-
"20.96.226.211/32",
191-
"52.167.78.33/32",
192-
"20.105.13.142/32",
193-
"20.253.95.3/32",
194-
"20.221.96.90/32",
195-
"51.138.235.85/32",
196-
"52.186.47.208/32",
197-
"20.7.220.66/32",
198-
"20.75.4.210/32",
199-
"20.120.75.171/32",
200-
"20.98.183.48/32",
201-
"20.84.200.15/32",
202-
"20.14.235.135/32",
203-
"20.10.226.54/32",
204-
"20.22.166.15/32",
205-
"20.65.21.88/32",
206-
"20.102.36.236/32",
207-
"20.124.56.57/32",
208-
"20.94.100.174/32",
209-
"20.102.166.33/32",
210-
"20.31.193.160/32",
211-
"20.232.77.7/32",
212-
"20.102.38.122/32",
213-
"20.102.39.57/32",
214-
"20.85.108.33/32",
215-
"40.88.240.168/32",
216-
"20.69.187.19/32",
217-
"20.246.192.124/32",
218-
"20.4.161.108/32",
219-
"20.22.22.84/32",
220-
"20.1.250.47/32",
221-
"20.237.33.78/32",
222-
"20.242.179.206/32",
223-
"40.88.239.133/32",
224-
"20.121.247.125/32",
225-
"20.106.107.180/32",
226-
"20.22.118.40/32",
227-
"20.15.240.48/32",
228-
"20.84.218.150/32"
164+
"4.175.114.51/32",
165+
"20.102.35.120/32",
166+
"4.175.114.43/32",
167+
"20.72.125.48/32",
168+
"20.19.5.100/32",
169+
"20.7.92.46/32",
170+
"20.232.252.48/32",
171+
"52.186.44.51/32",
172+
"20.22.98.201/32",
173+
"20.246.184.240/32",
174+
"20.96.133.71/32",
175+
"20.253.2.203/32",
176+
"20.102.39.220/32",
177+
"20.81.127.181/32",
178+
"52.148.30.208/32",
179+
"20.14.42.190/32",
180+
"20.85.159.192/32",
181+
"52.224.205.173/32",
182+
"20.118.176.156/32",
183+
"20.236.207.188/32",
184+
"20.242.161.191/32",
185+
"20.166.216.139/32",
186+
"20.253.126.26/32",
187+
"52.152.245.137/32",
188+
"40.118.236.116/32",
189+
"20.185.75.138/32",
190+
"20.96.226.211/32",
191+
"52.167.78.33/32",
192+
"20.105.13.142/32",
193+
"20.253.95.3/32",
194+
"20.221.96.90/32",
195+
"51.138.235.85/32",
196+
"52.186.47.208/32",
197+
"20.7.220.66/32",
198+
"20.75.4.210/32",
199+
"20.120.75.171/32",
200+
"20.98.183.48/32",
201+
"20.84.200.15/32",
202+
"20.14.235.135/32",
203+
"20.10.226.54/32",
204+
"20.22.166.15/32",
205+
"20.65.21.88/32",
206+
"20.102.36.236/32",
207+
"20.124.56.57/32",
208+
"20.94.100.174/32",
209+
"20.102.166.33/32",
210+
"20.31.193.160/32",
211+
"20.232.77.7/32",
212+
"20.102.38.122/32",
213+
"20.102.39.57/32",
214+
"20.85.108.33/32",
215+
"40.88.240.168/32",
216+
"20.69.187.19/32",
217+
"20.246.192.124/32",
218+
"20.4.161.108/32",
219+
"20.22.22.84/32",
220+
"20.1.250.47/32",
221+
"20.237.33.78/32",
222+
"20.242.179.206/32",
223+
"40.88.239.133/32",
224+
"20.121.247.125/32",
225+
"20.106.107.180/32",
226+
"20.22.118.40/32",
227+
"20.15.240.48/32",
228+
"20.84.218.150/32"
229229
]
230230
}
231231

modules/nsg/outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
output "network_settings_id" {
2-
description = "ID of the GitHub.Network/networkSettings resource"
3-
value = jsondecode(azapi_resource.github_network_settings.output).tags.GitHubId
2+
description = "ID of the GitHub.Network/networkSettings resource"
3+
value = jsondecode(azapi_resource.github_network_settings.output).tags.GitHubId
44
}

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
output "gh_network_settings_resource_id" {
2-
description = "ID of the GitHub.Network/networkSettings resource"
3-
value = module.vnet.network_settings_id
2+
description = "ID of the GitHub.Network/networkSettings resource"
3+
value = module.vnet.network_settings_id
44
}

0 commit comments

Comments
 (0)