Added ability to specify security group for node group templates.