j0sh | how do i propagate an instance variable to dependent jobs? | 21:23 |
---|---|---|
j0sh | eg, jobs that rely on "start on foo" behavior, and if 'foo' depends on an instance, how can i pass that information along? | 21:23 |
JanC | j0sh: you want to start on a particular instance of foo? | 22:02 |
JanC | particular instance of foo being started? | 22:03 |
JanC | you can do something like: "start on started foo INSTANCE=bar" | 22:08 |
j0sh | JanC: i need to start on all instances | 22:13 |
j0sh | i think i figured something Close Enough by exporting the environment variable i'm trying to capture the instance into | 22:14 |
JanC | http://upstart.ubuntu.com/cookbook/#standard-environment-variables --> you can probably export those | 22:15 |
j0sh | yeah but im not sure if the INSTANCE environment variable is exported across dependencies (and i dont know how to check) | 22:17 |
j0sh | but doing something like this worked okay | 22:17 |
j0sh | 4 instance $PORT | 22:17 |
j0sh | 5 export PORT | 22:17 |
j0sh | is there any way to manipulate that variable, eg arithmetically? | 22:19 |
JanC | you can change environment variables in a script section... | 22:27 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!