The Source (YAML) view

Edit a host's configuration directly as YAML, and how it relates to the GUI editor.

Every host and group can be edited in two ways: the guided GUI editor, and the Source view, which shows the configuration as raw YAML. Both edit the same configuration. Use whichever suits the task.

The Source view showing a host's YAML configuration with the GUI toggle and Copy button
The Source view showing a host's YAML configuration with the GUI toggle and Copy button

Opening the Source view

In a host's header, click the </> Source button. This opens the YAML editor at /hosts/yaml/{id}. The breadcrumb ends in Source. To go back, click the GUI button in the header.

What you can do

  • Edit the YAML directly - useful for advanced changes, reviewing the whole configuration at a glance, or making many edits quickly.

  • Copy - the Copy menu can pre-fill the configuration From host (another of your hosts) or From template.

The YAML mirrors the structure you see in the GUI, for example:

webserver: nginx
mysql_version: "8.4"

system_users:
  - username: prod
    vhosts:
      - server_name: app.example.com
        php_version: "8.4"
        cert_type: letsencrypt

See Core concepts for the configuration model, and Applications and Services for what these keys control.

Saving and validating

Saving from the Source view works exactly like the GUI: Save stores the configuration, and Save & Publish deploys it (see Publishing changes). Before saving, the YAML is validated. Invalid YAML is flagged and the publish action is disabled until it is fixed.

GUI vs. Source: which to use

Use the GUI when... Use Source (YAML) when...
Making everyday changes with guidance and validation. Making advanced or bulk edits.
You want dropdowns and field help. Reviewing or copying the whole configuration.
You are new to TurboStack. You are comfortable with YAML and the configuration keys.

You can set your preferred default editing mode in Profile & preferences.