Closed
Bug 1183443
Opened 10 years ago
Closed 10 years ago
Create shell scripts on the admin nodes for setting stage vs prod environment variables
Categories
(Tree Management :: Treeherder: Infrastructure, defect, P2)
Tree Management
Treeherder: Infrastructure
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: fubar)
References
Details
In bug 1160561 and friends we're moving towards using environment variables more, and local.py less. On the {stage,prod}-specific nodes we have /etc/profile.d/treeherder.sh for setting environment variables, however on the admin node we need a way to set environment variables when running commands as part of deploy.
I was thinking one way to do this would be to get the same content that's in /etc/profile.d/treeherder.sh on the non-admin nodes, be saved into `treeherder-env.sh` or similar in each of these locations:
/data/treeherder-stage/src/treeherder.allizom.org/treeherder-service/treeherder-env.sh
/data/treeherder/src/treeherder.mozilla.org/treeherder-service/treeherder-env.sh
I can then call these in update.py prior to commands that need them.
As an added bonus, if I ever needed to make changes, I could just create a new file alongside treeherder-env.sh and ask you to update the content in puppet to match.
fubar, does that sound like a reasonable approach? :-)
Flags: needinfo?(klibby)
Reporter | ||
Comment 1•10 years ago
|
||
Sorry, corrected path:
/data/treeherder-stage/src/treeherder.allizom.org/treeherder-env.sh
/data/treeherder/src/treeherder.mozilla.org/treeherder-env.sh
Assignee | ||
Comment 2•10 years ago
|
||
Sounds good. Added to puppet and they're on the admin node now.
Assignee: nobody → klibby
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(klibby)
Resolution: --- → FIXED
Reporter | ||
Comment 3•10 years ago
|
||
That's great - thank you :-)
You need to log in
before you can comment on or make changes to this bug.
Description
•