retry fixing tls version
This commit is contained in:
parent
26e94be9c8
commit
cc47310d89
2 changed files with 4 additions and 5 deletions
|
@ -9,9 +9,9 @@
|
||||||
- stunnel
|
- stunnel
|
||||||
|
|
||||||
- name: install rsync stunnel wrapper
|
- name: install rsync stunnel wrapper
|
||||||
copy:
|
template:
|
||||||
dest: /usr/local/libexec/rsync-ssl-tunnel
|
dest: /usr/local/libexec/rsync-ssl-tunnel
|
||||||
src: rsync-ssl-tunnel
|
src: rsync-ssl-tunnel.j2
|
||||||
mode: 0755
|
mode: 0755
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "$@" > /tmp/foo.out
|
|
||||||
|
|
||||||
key="/etc/pki/tls/private/$(hostname -f).key"
|
key="/etc/pki/tls/private/$(hostname -f).key"
|
||||||
cert="/etc/pki/tls/certs/$(hostname -f).crt"
|
cert="/etc/pki/tls/certs/$(hostname -f).crt"
|
||||||
cafile="/etc/pki/tls/certs/ca.crt"
|
cafile="/etc/pki/tls/certs/ca.crt"
|
||||||
|
@ -17,7 +15,7 @@ hostname=$1
|
||||||
shift
|
shift
|
||||||
|
|
||||||
if [ x"$hostname" = x -o x"$1" != x"rsync" -o x"$2" != x"--server" -o x"$3" != x"--daemon" ]; then
|
if [ x"$hostname" = x -o x"$1" != x"rsync" -o x"$2" != x"--server" -o x"$3" != x"--daemon" ]; then
|
||||||
echo "Usage: stunnel-rsync HOSTNAME rsync --server --daemon ." 1>&2
|
echo "Usage: rsync-ssl-tunnel HOSTNAME rsync --server --daemon ." 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -32,4 +30,5 @@ verify = 2
|
||||||
cert = $cert
|
cert = $cert
|
||||||
key = $key
|
key = $key
|
||||||
CAfile = $cafile
|
CAfile = $cafile
|
||||||
|
sslVersion = {{ tls_protocols }}
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue