Template based configuration management