Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added possibility to define container environment variable #3

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and [human-readable changelog](https://keepachangelog.com/en/1.0.0/).
- Syntax adapted to standard
- Conversion of the traefik ocnfig dir variable from `traefik_host_vol` to `traefik_dir`

### Added

- Added the possibility to define container environment variable

## [1.0.2] - 2020-05-31

### Fixed
Expand Down
32 changes: 17 additions & 15 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,42 @@

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## How to Contribute

### Reporting Bugs

To report bugs, please open an issue containing:

* Clear description of the problem
* Messages, log entries etc.
* Example configuration to reproduce the issue
- Clear description of the problem
- Messages, log entries etc.
- Example configuration to reproduce the issue

### Suggesting Enhancements

To suggest an enhancement, open an issue containing:

* Clear description of the feature you are suggesting
- Clear description of the feature you are suggesting

### Contribute Code

Follow these steps to contribute code:

1. Open an issue describing what you want to change (follow one of the previous
chapters).
chapters).
2. Create a fork and implement your changes
3. Open a pull request to `develop`

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ The quick-setup variables are prefixed with `traefik_qs_`.
| `traefik_add_volumes` | `[]` | additional volumes to mount |
| `traefik_ports` | `['80:80', '443:443']` | the ports shared |
| `traefik_labels` | `{}` | labels to set on the traefik container. |
| `traefik_container_environment` | `[]` | environment variable to set on the traefik container. |

The default names of the generated configs are:

Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ traefik_ports:
- '80:80'
- '443:443'
traefik_labels: {}
traefik_container_environment: []

# traefik_confkey_global: {}
# traefik_confkey_serversTransport: {}
Expand Down
1 change: 1 addition & 0 deletions tasks/1_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
published_ports: '{{ traefik_ports }}'
volumes: '{{ traefik_volumes + traefik_add_volumes }}'
labels: '{{ traefik_labels }}'
env: '{{ traefik_container_environment }}'
command:
- '--configFile=/etc/traefik/traefik.yml'
networks:
Expand Down