make function more flexible and work with different master-ips and status
make function more flexible and work with different master-ips and status

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt