templates: allow to get the ip from a cmdb section if present