Added attributes and template update to support slave mode in my.cfg file