summaryrefslogtreecommitdiffstats
path: root/roles/openvpn/defaults/main.yml
blob: 513936ada1ac0ade8a745abbf2973ae95e0c658c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
openvpn_port: 1194
openvpn_dir: "/etc/openvpn"
openvpn_config: "katrin"
openvpn_config_file: "{{openvpn_dir}}/{{openvpn_config}}.conf"
openvpn_keydir: "{{openvpn_dir}}/keys_{{openvpn_config}}"
openvpn_ccdir: "{{openvpn_dir}}/ccd_{{openvpn_config}}"
openvpn_service: "openvpn@{{openvpn_config}}.service"

openvpn_lb: "{{ ands_openshift_lb }}"
openvpn_servers: "masters"


openvpn_server_id: "{{ (openvpn_servers in group_names) | ternary(groups[openvpn_servers].index((openvpn_servers in group_names) | ternary(inventory_hostname, groups[openvpn_servers][0])), -1) }}"
openvpn_subnet_id: "{{ (katrin_openvpn_subnet_offset | int) + (openvpn_server_id | int) }}"
openvpn_net: "{{ katrin_openvpn_network | ipsubnet(katrin_openvpn_subnet_bits, openvpn_subnet_id) }}"