Repository navigation
Conversation
|
Thanks for the pull req, I am going to run this by some of our guys more familiar with upstart take a look |
|
You're welcome, (corresponding discussion on stackoverflow |
|
I am going to close this guy out pending a more robust solution |
|
When can we expect more robust solution? If I can help with anything let me know |
|
We are running behind proxy too with the same problem. Any updates? |
|
You're welcome to modify your upstart scripts as was done in this pull req, but as @thatch45 said, we want to find a more robust solution than using |
|
I was just curious if you did something about that, having separate fork is fine with me. |
|
Nope, not yet. We really need to get an issue open so that we don't forget about this...... |
|
I didn't want to modify the upstart directly. My workaround for RHEL based system was to add the env variables to /etc/sysconfig/init which is sourced by /etc/init.d/functions from all init scripts. |
|
exact same problem here, but on Ubuntu. |
Hi guys I have a problem with env variables (set in /etc/environment) as they are not passed when running salt-minion as a service (ubuntu)
I found that this post http://serverfault.com/questions/128605/have-upstart-read-environment-from-etc-environment-for-a-service and basically they advice to use exec su -c in upstart scripts, which pointed me to https://github.com/saltstack/salt/blob/develop/pkg/salt-minion.service and I think in this script there should be exec su -c salt-minion (at least I have tested that one with:
salt '*' cmd.exec_code python 'import os; print os.environ' (and /etc/environment variables are passed)
any comments appreciated