Skip to content

Passenger Ruby Report App Tutorial

Eric Franz edited this page Sep 13, 2017 · 14 revisions

Passenger Ruby Report App Tutorial

**Note: this is a DRAFT of a tutorial that will be moved to **

This is a description. TODO.

Passenger Overview

Tutorial

Ruby example

def foo
  "bar"
end
  • a regular expression that best describes all the hosts that you would want a user to connect to through the proxy (e.g., [\w.-]+\.osc\.edu)

  • confirm that if you run the command hostname from a compute node it will return a string that matches the above regular expression

    Ruby example:

    def foo
      "bar"
    end

    Yaml example:

    # /etc/ood/config/clusters.d/cluster1.yml
    ---
    v2:
      # ...
      # ... other configuration options ...
      # ...
      batch_connect:
        basic:
          # ...
          # set_host: "host=$(hostname)"
          set_host: "host=$(hostname -A | awk '{print $1}')"
        vnc:
          # ...
          # set_host: "host=$(hostname)"
          set_host: "host=$(hostname -A | awk '{print $1}')"

Numbered List Example

  1. We will update the Apache configuration file by adding Location directives that will be used for the reverse proxy. This requires modifying the configuration file for the :ref:`ood-portal-generator`.

    cd ~/ood/src/ood-portal-generator
  2. Something... Another thing.

  3. Re-build the Apache config:

Clone this wiki locally