def upload_rabbitmq_environment_conf(template_name=None, context=None, restart=True):
    """Upload RabbitMQ environment configuration from a template."""
    
    template_name = template_name or u'rabbitmq/rabbitmq-env.conf'
    destination = u'/etc/rabbitmq/rabbitmq-env.conf'
    upload_template(template_name, destination, context=context, use_sudo=True)
    if restart:
        restart_service(u'rabbitmq')
Upload RabbitMQ environment configuration from a template.