Skip to content
Snippets Groups Projects
Commit 48685ce8 authored by MUNIER Florian's avatar MUNIER Florian
Browse files

[add] add ssh_cfg.tf file

parent 79bf3699
No related branches found
No related tags found
No related merge requests found
......@@ -7,3 +7,4 @@ public_ips.txt
ip_files
hosts.ini
.ssh
ssh.cfg
\ No newline at end of file
resource "null_resource" "ssh_cfg" {
provisioner "local-exec" {
interpreter = ["/bin/bash", "-c"]
command = "echo -e 'Host bastion\n Hostname ${openstack_networking_floatingip_v2.floatip_admin.address}\n User ubuntu\n IdentityFile .ssh/${var.INSTANCE_BASTION_KEY_PAIR}.pem\nHost 192.*\n ProxyCommand ssh -F ssh.cfg -W %h:%p bastion\n User ubuntu\n IdentityFile .ssh/${var.INSTANCE_ORCHEST_KEY_PAIR}.pem\nHost *\n ControlMaster auto\n ControlPath .ssh/mux-%r@%h:%p\n ControlPersist 15m' > ssh.cfg"
}
depends_on = [openstack_compute_instance_v2.orchestration_instance]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment