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