Hello @nec!
Sounds like you want this:
I.e.:
on_config_committed {
get_host("foobar").vars.custom01 = 42
}
But meanwhile you could define:
template Host default {
if (this.name == "foo") {
vars.bar = 42
}
if (this.name != "foo") {
vars.bar = 23
}
...
}
Best,
A/K