diff --git a/.zuul.d/playbooks-deploy/pre.yml b/.zuul.d/playbooks-deploy/pre.yml index 6e7b741..013f62b 100644 --- a/.zuul.d/playbooks-deploy/pre.yml +++ b/.zuul.d/playbooks-deploy/pre.yml @@ -13,6 +13,14 @@ content: "{{ vault_secret.key }}" dest: "{{ vault_key_path }}" mode: '0600' + - name: Ensure the SSH configuration directory exists + file: + path: "{{ ansible_user_dir }}/.ssh" + state: directory + - name: Copy the SSH proxy configuration + copy: + src: "{{ lsn_ci_src_path }}/ssh/ssh_config" + dest: "{{ ansible_user_dir }}/.ssh/config" # Load the deployment SSH key - name: Create the SSH private key tempfile tempfile: diff --git a/ssh/ssh_config b/ssh/ssh_config new file mode 100644 index 0000000..a9b9b6b --- /dev/null +++ b/ssh/ssh_config @@ -0,0 +1,6 @@ +# NOTE(logan): To reach the 10.0.0.0/8 hosts in the deployment, a ProxyJump +# is used from the nodepool deployment host through the first infrastructure +# host, lsn-mc1016. + +Host * + ProxyJump root@192.169.91.98