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 arbitrary service environment variables #74

Merged
merged 1 commit into from
Feb 27, 2018

Conversation

xenithorb
Copy link
Collaborator

 - 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
@xenithorb
Copy link
Collaborator Author

This would also allow for injecting service environment variables from the commandline too via the ansible-playbook -e flag.

@xenithorb xenithorb merged commit 81060e9 into develop Feb 27, 2018
@xenithorb xenithorb deleted the service_env_template branch February 27, 2018 19:18
@xenithorb
Copy link
Collaborator Author

xenithorb commented Feb 27, 2018

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 | quote the variable or regex_replace.........

@nickbroon
Copy link

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.

@xenithorb
Copy link
Collaborator Author

xenithorb commented Feb 28, 2018

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.

@nickbroon
Copy link

I wouldn't mind if you dropped Ubuntu Trusty support.

@nickbroon
Copy link

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.
Do you plan to merge this to the master branch and release it?
I'd agree that long term quoting is probably a good idea.

@xenithorb xenithorb added this to the 3.1.0 milestone Feb 28, 2018
@xenithorb xenithorb self-assigned this Feb 28, 2018
@xenithorb
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants