Skip to main content

Host inventory

The ray key​

The inventory data key ray holds a host's settings for the runner. Like any inventory data, it can be set on a host, on a group or in the defaults.

hosts.yaml
r1:
hostname: 192.0.2.1
data:
ray:
site: paris
KeyTypeMeaning
sitestringThe host's site. It is copied to the site field of the host's RunLocation

site is the only key. The runner logs a warning for unknown keys under ray and ignores them.

In this version, the site is recorded in the results. It does not change which worker runs the host.

Read the site from another key​

With the runner option site_key, the runner reads the site from that inventory data key instead of ray.site. Use it when your inventory already has a key for the site:

config.yaml
runner:
plugin: ray
options:
site_key: location
hosts.yaml
r1:
hostname: 192.0.2.1
data:
location: paris

What the workers receive​

Each call to a worker carries a copy of the host's inventory data, credentials included. See Security.