mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 17:03:06 -06:00
DCD-224: Add inventory file for SSH tunnel.
This commit is contained in:
@@ -6,5 +6,5 @@ atl_shared_mountpoint: "/media/atl"
|
|||||||
|
|
||||||
# The following are imports from the environment. These are generally
|
# The following are imports from the environment. These are generally
|
||||||
# set in /etc/atl by the CloudFormation template and sourced before
|
# set in /etc/atl by the CloudFormation template and sourced before
|
||||||
# Ansible is run. See bin/ansible-with-atl-env for a convenient wrapper.
|
# Ansible is run. See bin/ansible-with-atl-env for a convenient wrapper
|
||||||
atl_efs_id: "{{ lookup('env', 'ATL_EFS_ID') }}"
|
atl_efs_id: "{{ lookup('env', 'ATL_EFS_ID') }}"
|
||||||
|
|||||||
7
inv/tunnel
Normal file
7
inv/tunnel
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# This is for use with an ssh tunnel to the target host via a bastion. To use create a port-forward with ssh e.g:
|
||||||
|
#
|
||||||
|
# ssh -L 2222:${TARGETIP}:22 ec2-user@${BASTIONHOST}
|
||||||
|
#
|
||||||
|
# Where $BASTIONHOST is the bastion public ip/hostname, and $TARGETIP is the private IP of the target host.
|
||||||
|
[all]
|
||||||
|
ec2-user@localhost ansible_port=2222
|
||||||
@@ -5,4 +5,3 @@
|
|||||||
|
|
||||||
- name: Fetch local EC2 metadata
|
- name: Fetch local EC2 metadata
|
||||||
ec2_metadata_facts:
|
ec2_metadata_facts:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user