code: 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')
docs: Upload RabbitMQ configuration from a template.