diff --git a/app/terraform/bridge/gandi.py b/app/terraform/bridge/gandi.py index b26cd97..11807b2 100644 --- a/app/terraform/bridge/gandi.py +++ b/app/terraform/bridge/gandi.py @@ -10,7 +10,8 @@ class BridgeGandiAutomation(BridgeAutomation): "gandi_openstack_user", "gandi_openstack_password", "gandi_openstack_tenant_name", - "ssh_public_key_path" + "ssh_public_key_path", + "ssh_private_key_path" ] template = """ @@ -34,7 +35,8 @@ class BridgeGandiAutomation(BridgeAutomation): } locals { - ssh_key = file("{{ ssh_public_key_path }}") + public_ssh_key = file("{{ ssh_public_key_path }}") + private_ssh_key = file("{{ ssh_private_key_path }}") } {% for group in groups %} @@ -56,7 +58,8 @@ class BridgeGandiAutomation(BridgeAutomation): context = module.label_{{ bridgeconf.group.id }}.context name = "br" attributes = ["{{ bridge.id }}"] - ssh_key = local.ssh_key + ssh_key = local.public_ssh_key + ssh_private_key = local.private_ssh_key contact_info = "hi" distribution_method = "{{ bridge.conf.method }}"