cbdc1978bf
* adds meta object to service in job spec, sends it to consul * adds tests for service meta * fix tests * adds docs * better hashing for service meta, use helper for copying meta when registering service * tried to be DRY, but looks like it would be more work to use the helper function
15 lines
230 B
HCL
15 lines
230 B
HCL
job "service_meta" {
|
|
type = "service"
|
|
group "group" {
|
|
task "task" {
|
|
service {
|
|
name = "http-service"
|
|
meta {
|
|
foo = "bar"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|