Add ansible role to configure openvpn
[infra/tools.git] / infra / configure_openvpn_server / playbooks / roles / vpn-server / templates / vars.j2
1 # easy-rsa parameter settings
2
3 # NOTE: If you installed from an RPM,
4 # don't edit this file in place in
5 # /usr/share/openvpn/easy-rsa --
6 # instead, you should copy the whole
7 # easy-rsa directory to another location
8 # (such as /etc/openvpn) so that your
9 # edits will not be wiped out by a future
10 # OpenVPN package upgrade.
11
12 # This variable should point to
13 # the top level of the easy-rsa
14 # tree.
15 export EASY_RSA="`pwd`"
16
17 #
18 # This variable should point to
19 # the requested executables
20 #
21 export OPENSSL="openssl"
22 export PKCS11TOOL="pkcs11-tool"
23 export GREP="grep"
24
25
26 # This variable should point to
27 # the openssl.cnf file included
28 # with easy-rsa.
29 export KEY_CONFIG="{{ openvpn_ca }}/openssl-1.0.0.cnf"
30
31 # Edit this variable to point to
32 # your soon-to-be-created key
33 # directory.
34 #
35 # WARNING: clean-all will do
36 # a rm -rf on this directory
37 # so make sure you define
38 # it correctly!
39 export KEY_DIR="{{ openvpn_ca }}/keys"
40
41 # Issue rm -rf warning
42 echo NOTE: If you run ./clean-all, I will be doing a rm -rf on $KEY_DIR
43
44 # PKCS11 fixes
45 export PKCS11_MODULE_PATH="dummy"
46 export PKCS11_PIN="dummy"
47
48 # Increase this to 2048 if you
49 # are paranoid.  This will slow
50 # down TLS negotiation performance
51 # as well as the one-time DH parms
52 # generation process.
53 export KEY_SIZE=2048
54
55 # In how many days should the root CA key expire?
56 export CA_EXPIRE=3650
57
58 # In how many days should certificates expire?
59 export KEY_EXPIRE=3650
60
61 # These are the default values for fields
62 # which will be placed in the certificate.
63 # Don't leave any of these fields blank.
64 export KEY_COUNTRY="{{ country }}"
65 export KEY_PROVINCE="{{ province }}"
66 export KEY_CITY="{{ city }}"
67 export KEY_ORG="{{ org }}"
68 export KEY_EMAIL="{{ email }}"
69 export KEY_OU="{{ orgunit }}"
70
71 # X509 Subject Field
72 export KEY_NAME="{{ openvpn_server }}"
73
74 # PKCS11 Smart Card
75 # export PKCS11_MODULE_PATH="/usr/lib/changeme.so"
76 # export PKCS11_PIN=1234
77
78 # If you'd like to sign all keys with the same Common Name, uncomment the KEY_CN export below
79 # You will also need to make sure your OpenVPN server config has the duplicate-cn option set
80 # export KEY_CN="CommonName"