Icinga add diffrent services with override

Dear Team,

I am setting up 20 servers for monitoring .Different services are running in one server itself
Created host and service templates and host and service groups .everything works fine.
But in future i want to add some parameters in same server with the host template how we will override it in a director approach.
Tried creating external commands+add custom variables+ cmdb as datasource
but unable to add sync property rule

Below is the example these values will change from server to server

vars["_override_servicevars"] += {
“ENV_MYSQL_Connect” = {
mysql_dbname = “DB1prod”
mysql_dbuser = “DB1prod”
mysql_port = “15003”
}
“ENV_MYSQL_BackendsConnLimit” = {
mysql_dbname = “DB1prod”
mysql_dbuser = “DB1prod”
mysql_port = “15003”
}
“ENV_MYSQL_DatabaseConn” = {
mysql_dbname = “DB1prod”
mysql_dbuser = “DB1prod”
mysql_port = “15003”
}
how to automate this setup in a director approach
Thanks