bridge: use bundled modules
This commit is contained in:
parent
32239c379a
commit
3163286e88
5 changed files with 5 additions and 8 deletions
|
@ -46,8 +46,7 @@ class BridgeAWSAutomation(BridgeAutomation):
|
|||
{% for bridge in bridgeconf.bridges %}
|
||||
{% if not bridge.destroyed %}
|
||||
module "bridge_{{ bridge.id }}" {
|
||||
source = "sr2c/tor-bridge/aws"
|
||||
version = "0.0.1"
|
||||
source = "{{ terraform_modules_path }}/terraform-aws-tor-bridge"
|
||||
ssh_key = local.ssh_key
|
||||
contact_info = "hi"
|
||||
context = module.label_{{ bridgeconf.group.id }}.context
|
||||
|
|
|
@ -54,8 +54,7 @@ class BridgeGandiAutomation(BridgeAutomation):
|
|||
{% for bridge in bridgeconf.bridges %}
|
||||
{% if not bridge.destroyed %}
|
||||
module "bridge_{{ bridge.id }}" {
|
||||
source = "sr2c/tor-bridge/openstack"
|
||||
version = "0.0.7"
|
||||
source = "{{ terraform_modules_path }}/terraform-openstack-tor-bridge"
|
||||
context = module.label_{{ bridgeconf.group.id }}.context
|
||||
name = "br"
|
||||
attributes = ["{{ bridge.id }}"]
|
||||
|
|
|
@ -64,8 +64,7 @@ class BridgeHcloudAutomation(BridgeAutomation):
|
|||
}
|
||||
|
||||
module "bridge_{{ bridge.id }}" {
|
||||
source = "sr2c/tor-bridge/hcloud"
|
||||
version = "0.0.3"
|
||||
source = "{{ terraform_modules_path }}/terraform-hcloud-tor-bridge"
|
||||
datacenter = one(random_shuffle.datacenter_{{ bridge.id }}.result)
|
||||
context = module.label_{{ bridgeconf.group.id }}.context
|
||||
name = "br"
|
||||
|
|
|
@ -84,8 +84,7 @@ class BridgeOvhAutomation(BridgeAutomation):
|
|||
}
|
||||
|
||||
module "bridge_{{ bridge.id }}" {
|
||||
source = "sr2c/tor-bridge/openstack"
|
||||
version = "0.0.7"
|
||||
source = "{{ terraform_modules_path }}/terraform-openstack-tor-bridge"
|
||||
region = one(random_shuffle.region_{{ bridge.id }}.result)
|
||||
context = module.label_{{ bridgeconf.group.id }}.context
|
||||
name = "br"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
from collections.abc import Mapping, Sequence
|
||||
import json
|
||||
import os
|
||||
from typing import List, Any
|
||||
|
||||
from app import app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue