parameters: (distro)
docstring: Configure Websocket proxy (noVNC)
docstring_summary: Configure Websocket proxy (noVNC)
docstring_tokens: Configure Websocket proxy ( noVNC )
function: def configure_novnc(distro):
      """
      Configure Websocket proxy (noVNC)
      """
      if distro in ["Debian", "Ubuntu"]:
          with settings(warn_only=True):
              sudo("service novnc stop")
              sudo("rm /etc/init.d/novnc")
          sudo("update-rc.d -f novnc remove")
          sudo("cp /var/www/webvirtmgr/conf/initd/webvirtmgr-console-ubuntu\
               /etc/init.d/webvirtmgr-console")
          sudo("service webvirtmgr-console start")
          sudo("update-rc.d webvirtmgr-console defaults")
          sudo("chown -R www-data:www-data /var/www/webvirtmgr")
      elif distro in ["CentOS", "RHEL", "Fedora"]:
          sudo("cp /var/www/webvirtmgr/conf/initd/webvirtmgr-console-redhat\
               /etc/init.d/webvirtmgr-console")
          sudo("service webvirtmgr-console start")
          sudo("chkconfig webvirtmgr-console on")
          sudo("chown -R nginx:nginx /var/www/webvirtmgr")
function_tokens: def configure_novnc ( distro ) : if distro in [ "Debian" , "Ubuntu" ] : with settings ( warn_only = True ) : sudo ( "service novnc stop" ) sudo ( "rm /etc/init.d/novnc" ) sudo ( "update-rc.d -f novnc remove" ) sudo ( "cp /var/www/webvirtmgr/conf/initd/webvirtmgr-console-ubuntu\
               /etc/init.d/webvirtmgr-console" ) sudo ( "service webvirtmgr-console start" ) sudo ( "update-rc.d webvirtmgr-console defaults" ) sudo ( "chown -R www-data:www-data /var/www/webvirtmgr" ) elif distro in [ "CentOS" , "RHEL" , "Fedora" ] : sudo ( "cp /var/www/webvirtmgr/conf/initd/webvirtmgr-console-redhat\
               /etc/init.d/webvirtmgr-console" ) sudo ( "service webvirtmgr-console start" ) sudo ( "chkconfig webvirtmgr-console on" ) sudo ( "chown -R nginx:nginx /var/www/webvirtmgr" )