-
Notifications
You must be signed in to change notification settings - Fork 80
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 arbitrary service environment variables #74
Conversation
- New var: `rocket_chat_service_environment`: - This is designed to be a dict, so for every key value pair will appear a new line in the rocketchat.service file to be exported to the environment of the nodejs process. - Closes #67
This would also allow for injecting service environment variables from the commandline too via the |
CAUTION: Special attention needs to be given to quoting the original value data.Since this is not well tested. Perhaps at a later date we'll need to |
I'd guess for completeness this should probably also be added to rocketchat_upstart.j2 template for the case of images that use upstart instead of systemd, which I think is the case for Ubuntu Trusty. |
Tough customer :). Ultimately you're right, though I'm wanting to drop Ubuntu 14 soonish. The hassle it brings to the role is unlike any other distro at the current moment. |
I wouldn't mind if you dropped Ubuntu Trusty support. |
I've just tested this, and it appears to work for my use case. It will be great to able to bring up a Rocket.Chat server already configured using Ansible. |
Soonish, I'm working on the last set of updates for mongodb and other stuff, and then vagrant testing all the distros before I release to master. |
New var:
rocket_chat_service_environment
:will appear a new line in the rocketchat.service file to
be exported to the environment of the nodejs process.
Closes Enhancement: Support ADMIN_USERNAME and ADMIN_PASS role variables #67