summaryrefslogtreecommitdiffstats
path: root/roles/static_inventory/defaults/main.yml
blob: 871700f8c171bd03740e1aac3e92df5461b41533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
# Either to checkpoint the dynamic inventory into a static one
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

# The IP:port to make an SSH tunnel to access UI on the 1st master
# via bastion node (requires sudo on the ansible control node)
ui_ssh_tunnel: False
ui_port: "{{ openshift_master_api_port | default(8443) }}"
target_ip: "{{ hostvars[groups['masters.' + stack_name|quote][0]].private_v4 }}"

openstack_private_network: private