marvinpinto.docker-oauth2-proxy
docker-oauth2-proxy
Ansible Galaxy role to manage and run a oauth2-proxy docker container.
This role wires together the oauth2-proxy docker container created by skippy, along with various boilerplate to get things going.
Requirements
This role has been tested on Ubuntu 14.04 and will likely only work on an
Ubuntu-like system. You will also need a functioning docker environment and a
recent-is version of docker-py for this role to work.
If you have neither and would like ansible to set this up for you, have a look at the marvinpinto.docker Galaxy role.
Role Variables
# Docker container name
docker_oauth2_proxy_container_name: 'oauth2proxy'
# oauth2-proxy host port
docker_oauth2_proxy_published_port: '4180'
# Any files/directories that need mounting inside the docker container
docker_oauth2_volumes: []
# oauth2-proxy command line arguments
docker_oauth2_proxy_command: >-
--upstream="http://127.0.0.1:8080/"
--cookie-secret="muchsekr3t"
--client-id="doge"
--client-secret="suchsekuR3"
Examples
Install this module from Ansible Galaxy into the './roles' directory:
ansible-galaxy install marvinpinto.docker-oauth2-proxy -p ./roles
Use it in a playbook as follows:
- hosts: '127.0.0.1'
roles:
- role: 'marvinpinto.docker-oauth2-proxy'
become: true
Install
ansible-galaxy install marvinpinto.docker-oauth2-proxyLicense
mit
Downloads
141
Owner
Computer nerd.
