os.hostname

Get the hostname

This content is associated with a legacy version of the Replicated product. For the current Replicated product documentation, see docs.replicated.com.

os.hostname

type object

Get the hostname

collect:
  v1:
    - os.hostname:
        output_dir: /system/hostname

Outputs

  • stderr - The stdout from the command

  • stdout - The stdin from the command