Fork me on GitHub
#juxt
<
2017-09-13
>
steveb8n00:09:13

@dominicm I found the problem. It’s a bug in the tfjson code. Logged an issue. https://github.com/juxt/roll/issues/11

stijn08:09:03

is it possible to pass parameters to mach? I didn't find that in de docs

stijn08:09:22

the use case is passing the environment such that you can select the right profile from aero

dominicm08:09:44

@stijn you can pass in a constants parameter

dominicm08:09:12

Pro tip for all: mach --help works

dominicm08:09:33

I should generate bash completion

stijn08:09:26

hmmm, I can't figure out what the syntax of mach/constants is (in the Machfile)

stijn08:09:48

mach/constants [environment "staging"] doesn't seem to work

stijn08:09:04

mach/constants {environment "staging"} neither

stijn08:09:53

in both cases it says WARNING: Use of undeclared Var cljs.user/environment

stijn08:09:27

ok, you have to use #ref [mach/constant environment], but that doesn't work yet in mach/props

stijn09:09:47

@dominicm I think this is a limitation on the usage of constants, no?

dominicm09:09:24

mach/constants {environment "staging"} used to work

stijn09:09:40

yes, but how do I read the value in mach/props?

dominicm09:09:56

Tbh props and constants are two people doing the same thing and giving it a different name

stijn09:09:41

ok, so what is needed is a --property option on the command line 🙂

steveb8n10:09:43

@dominicm @jonpither now that I have a reliable deploy working, I have 2 questions. I’ll raise them here now to start the conversation but I suspect there’s no quick answer

steveb8n10:09:04

1/ the only repeatable way to tf apply is to tf destroy before doing so. without that I consistently get an error about the ALB already being in use. Should this work or what is the plan for this use case. I need this for my CI/Staging deploy. Using destroy before is fine for this use case but I suspect that’s not intended behaviour.

steveb8n10:09:30

2/ I can’t see how Blue/Green is achieved with Roll. I will need this for my prod deploys. Can you give me a bit of insight into the vision for this? Or (better) add some text to the README?

steveb8n10:09:55

BTW: my SSL service is working beautifully now. very happy with that progress