Skip to content

Commit 9a25802

Browse files
committed
Use latest version of oauth proxy
1 parent b34b139 commit 9a25802

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# ansible-oauth2-proxy
2-
An ansible role to install [oauth2 proxy](https://github.com/bitly/oauth2_proxy)
2+
An ansible role to install [oauth2 proxy](https://github.com/bitly/oauth2_proxy)
33

44
Variables
55
---------
66

77
```yaml
8-
oaut2_proxy_http : "https://github.com/bitly/oauth2_proxy/releases/download/v2.0.1/oauth2_proxy-2.0.1.linux-amd64.go1.4.2.tar.gz"
9-
oaut2_proxy_http_sha256 : "c6d8f6d74e1958ce1688f3cf7d60648b9d0d6d4344d74c740c515a00b4e023ad"
8+
oaut2_proxy_http : "https://github.com/oauth2-proxy/oauth2-proxy/releases/download/v7.1.3/oauth2-proxy-v7.1.3.linux-amd64.tar.gz"
9+
oaut2_proxy_http_sha256 : "a491ca18059848c356935fe2ca9e665faafe4bba3ee1ecbac5a5f5f193195a82"
1010
oauth2_user : "oauth2"
1111
oauth2_dir : "/var/oauth2_proxy"
1212
oauth2_dir_tmp : "/var/oauth2_proxy/tmp"
@@ -19,15 +19,15 @@ oauth2_filename : "{{ oauth2_compress_filename |replace
1919
oauth2_proxy_config :
2020
http_address : "127.0.0.1:5000"
2121
upstreams : [ "127.0.0.1:6060" ]
22-
provider : "github"
22+
provider : "github"
2323
email-domain : "*"
2424
cookie-secure : false
2525
cookie-domain : "localhost:5000"
2626
cookie_secret : "COOK_SECRET"
2727
client_id : "YOUR_CLIENT_ID"
2828
client_secret : "CLIENT_SECERET"
2929

30-
oauth2_config_cmdline_args : "-github-org='MYCoolORg'"
30+
oauth2_config_cmdline_args : "--github-org='MYCoolORg'"
3131
```
3232
3333

defaults/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22

3-
oaut2_proxy_http : "https://github.com/bitly/oauth2_proxy/releases/download/v2.0.1/oauth2_proxy-2.0.1.linux-amd64.go1.4.2.tar.gz"
4-
oaut2_proxy_http_sha256 : "c6d8f6d74e1958ce1688f3cf7d60648b9d0d6d4344d74c740c515a00b4e023ad"
3+
oaut2_proxy_http : "https://github.com/oauth2-proxy/oauth2-proxy/releases/download/v7.1.3/oauth2-proxy-v7.1.3.linux-amd64.tar.gz"
4+
oaut2_proxy_http_sha256 : "a491ca18059848c356935fe2ca9e665faafe4bba3ee1ecbac5a5f5f193195a82"
55
oauth2_user : "oauth2"
66
oauth2_dir : "/var/oauth2_proxy"
77
oauth2_dir_tmp : "/var/oauth2_proxy/tmp"
@@ -14,12 +14,12 @@ oauth2_filename : "{{ oauth2_compress_filename |replace
1414
oauth2_proxy_config :
1515
http_address : "127.0.0.1:5000"
1616
upstreams : [ "127.0.0.1:6060" ]
17-
provider : "github"
17+
provider : "github"
1818
email-domain : "*"
1919
cookie-secure : false
2020
cookie-domain : "localhost:5000"
2121
cookie_secret : "COOK_SECRET"
2222
client_id : "YOUR_CLIENT_ID"
2323
client_secret : "CLIENT_SECERET"
2424

25-
oauth2_config_cmdline_args : "-github-org='MYCoolORg'"
25+
oauth2_config_cmdline_args : "--github-org='MYCoolORg'"

templates/init.d.sh.j2.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
PATH=/sbin:/usr/sbin:/bin:/usr/bin
1818
DESC="A reverse proxy that provides authentication with Google, Github or other provider"
1919
NAME=`basename $0`
20-
DAEMON={{ oauth2_dir }}/current/oauth2_proxy
21-
DAEMON_ARGS="-config={{ oauth2_config_path }} {{ oauth2_config_cmdline_args }}"
20+
DAEMON={{ oauth2_dir }}/current/oauth2-proxy
21+
DAEMON_ARGS="--config={{ oauth2_config_path }} {{ oauth2_config_cmdline_args }}"
2222
PIDFILE=/var/run/$NAME.pid
2323
SCRIPTNAME=/etc/init.d/oauth2-proxy
2424
USER={{ oauth2_user }}
@@ -160,4 +160,4 @@ case "$1" in
160160
;;
161161
esac
162162

163-
:
163+
:

0 commit comments

Comments
 (0)