mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
dev/cluster meta tagged clients, raw_exec
This commit is contained in:
@@ -13,6 +13,15 @@ client {
|
||||
server_join {
|
||||
retry_join = ["127.0.0.1:4647", "127.0.0.1:5647", "127.0.0.1:6647"]
|
||||
}
|
||||
meta {
|
||||
tag = "foo"
|
||||
}
|
||||
}
|
||||
|
||||
plugin "raw_exec" {
|
||||
config {
|
||||
enabled = true
|
||||
}
|
||||
}
|
||||
|
||||
ports {
|
||||
|
||||
@@ -10,10 +10,18 @@ name = "client2"
|
||||
# Enable the client
|
||||
client {
|
||||
enabled = true
|
||||
|
||||
server_join {
|
||||
retry_join = ["127.0.0.1:4647", "127.0.0.1:5647", "127.0.0.1:6647"]
|
||||
}
|
||||
meta {
|
||||
tag = "foo"
|
||||
}
|
||||
}
|
||||
|
||||
plugin "raw_exec" {
|
||||
config {
|
||||
enabled = true
|
||||
}
|
||||
}
|
||||
|
||||
ports {
|
||||
|
||||
29
dev/cluster/client3.hcl
Normal file
29
dev/cluster/client3.hcl
Normal file
@@ -0,0 +1,29 @@
|
||||
# Increase log verbosity
|
||||
log_level = "DEBUG"
|
||||
|
||||
# Setup data dir
|
||||
data_dir = "/tmp/client3"
|
||||
|
||||
# Give the agent a unique name. Defaults to hostname
|
||||
name = "client3"
|
||||
|
||||
# Enable the client
|
||||
client {
|
||||
enabled = true
|
||||
server_join {
|
||||
retry_join = ["127.0.0.1:4647", "127.0.0.1:5647", "127.0.0.1:6647"]
|
||||
}
|
||||
meta {
|
||||
tag = "bar"
|
||||
}
|
||||
}
|
||||
|
||||
plugin "raw_exec" {
|
||||
config {
|
||||
enabled = true
|
||||
}
|
||||
}
|
||||
|
||||
ports {
|
||||
http = 9646
|
||||
}
|
||||
Reference in New Issue
Block a user