diff options
author | Bogdan Dobrelya <bdobreli@redhat.com> | 2017-07-05 12:46:57 +0200 |
---|---|---|
committer | Bogdan Dobrelya <bdobreli@redhat.com> | 2017-07-25 17:05:43 +0200 |
commit | 677fd46cf37cab5f995170b3567939d784ebb07a (patch) | |
tree | 9b9ae66c75607e513434c43337bb67a22100a378 /roles/static_inventory/defaults/main.yml | |
parent | c0deeb4439f68a5cc514392a97927808532a3893 (diff) | |
download | openshift-677fd46cf37cab5f995170b3567939d784ebb07a.tar.gz openshift-677fd46cf37cab5f995170b3567939d784ebb07a.tar.bz2 openshift-677fd46cf37cab5f995170b3567939d784ebb07a.tar.xz openshift-677fd46cf37cab5f995170b3567939d784ebb07a.zip |
Add bastion and ssh config for the static inventory role
* Autogenerate SSH config for static inventory and bastion.
* When using bastion, use FQDN for inventory's ansible_host and SSH
config's Hostname. Simplifies accessing nodes by names instead of
private IPs.
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
Diffstat (limited to 'roles/static_inventory/defaults/main.yml')
-rw-r--r-- | roles/static_inventory/defaults/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/static_inventory/defaults/main.yml b/roles/static_inventory/defaults/main.yml index 315965cde..63de45646 100644 --- a/roles/static_inventory/defaults/main.yml +++ b/roles/static_inventory/defaults/main.yml @@ -4,5 +4,18 @@ refresh_inventory: True inventory: static inventory_path: ~/openstack-inventory +# Either to configure bastion +use_bastion: true + +# SSH user/key/options to access hosts via bastion +ssh_user: openshift +ssh_options: >- + -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no + -o ConnectTimeout=90 -o ControlMaster=auto -o ControlPersist=270s + -o ServerAliveInterval=30 -o GSSAPIAuthentication=no + # SSH key to access nodes private_ssh_key: ~/.ssh/openshift + +# The patch to store the generated config to access bastion/hosts +ssh_config_path: /tmp/ssh.config.ansible |