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

allow labelling docker web container #8449

Merged

Conversation

lennart
Copy link
Contributor

@lennart lennart commented Oct 25, 2020

SUMMARY

for local docker installations, this pull request allows to label the awx_web container. this can be used to make container aware software e.g. automatically discover awx and route or generate ssl certs for it (one use case would be traefik which does both).

labels can be set in installer inventory via:

awx_web_container_labels="my.custom.label=foo"

and in a less contrived example (using traefik):

awx_web_container_lables="traefik.enable=true,traefik.http.routers.awx_web.rule=Host(`awx.example.com`),traefik.http.routers.awx_web.tls.certresolver=letsencrypt"

which is picked up by traefik when awx_web starts and routes access to awx.example.com to the awx_web container (without awx_web binding any port on the host interface) and also (optionally) requests an ssl cert via letsencrypt

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME
  • Installer
AWX VERSION
awx: 15.0.1
ADDITIONAL INFORMATION

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@a0n
Copy link

a0n commented Oct 25, 2020

awesome!

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit db3e79e into ansible:devel Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants