modify-nomad-configs #19
|
@ -5,6 +5,7 @@ node.reverse_merge!({
|
||||||
'nomad' => {
|
'nomad' => {
|
||||||
'manager' => false,
|
'manager' => false,
|
||||||
'client' => false,
|
'client' => false,
|
||||||
|
'consul_token' => "f1d577dc-9216-d72a-cc09-1962b1009273",
|
||||||
'lokiendpoint' => 'loki.service.consul:3100',
|
'lokiendpoint' => 'loki.service.consul:3100',
|
||||||
'synology' => '192.168.10.200'
|
'synology' => '192.168.10.200'
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ if node['nomad']['client']
|
||||||
group 'nomad'
|
group 'nomad'
|
||||||
mode '664'
|
mode '664'
|
||||||
|
|
||||||
variables(consul-token: node['nomad']['consul-token'])
|
variables(consul_token: node['nomad']['consul_token'])
|
||||||
|
|
||||||
notifies :restart, 'service[nomad]'
|
notifies :restart, 'service[nomad]'
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,6 +6,6 @@ client {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# consul {
|
consul {
|
||||||
# token = "11800359-1330-fe54-d858-44e8de9a14f6"
|
token = "<%= @consul_token %>"
|
||||||
# }
|
}
|
Loading…
Reference in New Issue