Merge lp:~pedronis/charms/trusty/tanuki-result-enum-api/SERVICE_ENVIRONMENT-envvar into lp:~tanuki/charms/trusty/tanuki-result-enum-api/trunk

Proposed by Samuele Pedroni
Status: Merged
Approved by: Facundo Batista
Approved revision: 18
Merged at revision: 18
Proposed branch: lp:~pedronis/charms/trusty/tanuki-result-enum-api/SERVICE_ENVIRONMENT-envvar
Merge into: lp:~tanuki/charms/trusty/tanuki-result-enum-api/trunk
Diff against target: 10 lines (+1/-0)
1 file modified
templates/upstart.conf (+1/-0)
To merge this branch: bzr merge lp:~pedronis/charms/trusty/tanuki-result-enum-api/SERVICE_ENVIRONMENT-envvar
Reviewer Review Type Date Requested Status
Facundo Batista (community) Approve
Review via email: mp+269041@code.launchpad.net

Commit message

introduce a SERVICE_ENVIRONMENT envar

Description of the change

introduce a SERVICE_ENVIRONMENT envar, mostly so the code can take simple decisions, should be used sparingly though

To post a comment you must log in.
Revision history for this message
Facundo Batista (facundo) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'templates/upstart.conf'
2--- templates/upstart.conf 2015-07-22 15:10:24 +0000
3+++ templates/upstart.conf 2015-08-25 11:02:30 +0000
4@@ -16,6 +16,7 @@
5
6 env LOG_DIR=/srv/result-enum-api/{{ environment }}/logs
7 env SERVICE_DIR=/srv/result-enum-api/{{ environment }}/result-enum-api
8+env SERVICE_ENVIRONMENT={{ environment }}
9
10 script
11

Subscribers

People subscribed via source and target branches

to all changes: