manala.oauth2_proxy

#######################################################################################################

:exclamation: DEPRECATION :exclamation:

This repository and its role are no longer supported.

You can find our other roles in the Manala Ansible Collection. For usage information, check the collection repository.

#######################################################################################################

Ansible Role: OAuth2 Proxy Build Status

:exclamation: Please report issues and submit Pull Requests in the main Ansible Role repository :exclamation:

This role handles the setup and configuration of OAuth2 Proxy.

It is part of the Manala Ansible stack, but can also be used on its own.

Requirements

This role is designed to work with the manala oauth2-proxy Debian package, which you can find in the manala Debian repository. Use the manala.apt role for proper handling.

manala_apt_preferences:
  - oauth2-proxy@manala

Dependencies

None.

Installation

Ansible 2+

Using the ansible galaxy command line:

ansible-galaxy install manala.oauth2_proxy

Using an ansible galaxy requirements file:

- src: manala.oauth2_proxy

Role Handlers

Name Type Description
oauth2 proxy restart Service Restart OAuth2 proxy

Role Variables

Name Default Type Description
manala_oauth2_proxy_install_packages ~ String Dependency packages to install
manala_oauth2_proxy_install_packages_default ['oauth2-proxy'] String Default dependency packages to install
manala_oauth2_proxy_config_file '/etc/oauth2-proxy/config.cfg' String Configuration file path
manala_oauth2_proxy_config_template ~ String Configuration template path
manala_oauth2_proxy_config [] Array Configuration

Configuration example

manala_oauth2_proxy_config:
  - http_address: 0.0.0.0:80
  - request_logging: true
  - upstreams:
    - http://127.0.0.1:8080/
  - email_domains:
    - manalas.com
  - client_id: oauth2_client_id
  - client_secret: oauth2_client_secret
  - cookie_name: _oauth2_proxy
  - cookie_secret: cookie_secret
  - cookie_domain: .manalas.com
  - cookie_expire: 168h
  - cookie_refresh: 1h
  - cookie_secure: true
  - cookie_httponly: true
  - skip_auth_regex:
    - /foo

Example playbook

- hosts: servers
  roles:
    - { role: manala.oauth2_proxy }

License

MIT

Author information

Manala (http://www.manala.io/)

Informazioni sul progetto

Handle oauth2-proxy

Installa
ansible-galaxy install manala.oauth2_proxy
Licenza
Unknown
Download
1.7k
Proprietario
Manala is an open source project supported by the french web agency ELAO providing advanced ansible roles for website's infrastructures and far more.