Closed petemounce closed 4 years ago
Oh, excuse me; I've just noticed the template feature. I'll experiment with that.
The closest I've been able to come is
service:
buildkite-agent:
enabled: false
{{ range mkSlice 1 2 3 4 5 6 7 8 }}
buildkite-agent@{{ . }}:
enabled: true
running: true
{{ end }}
I came across a stackoverflow and have opened a PR to add what I'd like. It's fledgling, because I wasn't sure it'd be a welcome contribution. If it is, I'd be happy to add tests and docs as you advise?
I like the PR you submitted, once the PR contains documentation it can be merged/released.
Was this fixed by the addition of sprig functions?
Yes, I think I can use | repeat 8
(or some env-var). Thanks!
I'm setting up some buildkite agents. I'm running several instances per host, via their documentation.
I've got 8 running:
I've set up assertions as this, and they pass:
I'd like to be able to make assertions like (as in, this is a sketch, I don't know whether it's a good one):
I'd like to be able to supply the
count
as a parameter. Failing that, I'd like to template it in, somehow - I'm probably happy to do that externally rather than ask to complicate goss by building in templating, but I also don't know whether that's a reasonable thing to suggest or not.What do you think?