Hosts.yaml file example

Dear Sailors,
I have tried several different formats for hosts.yaml file but I got error all the time. Do you have an sample hosts.yaml file that you can share?

1 Like

Edit “vi /home/sailpoint/hosts.yaml” or edit on your device and scp it to the VA. Enter any entries needed in the /etc/hosts file as it is overwritten on reboot.
Reboot the VA to apply what is in hosts.yaml in /etc/hosts.

sample hosts.yaml:

hosts:
  10.10.10.10:
  - hostname.mydomain1.com
  - hostname
  11.11.11.11:
  - hostname.mydomain2.com
  - hostname1

Notes:

  • The spacing and indentation must be precise.
  • The 2nd line must start with 2 spaces followed by a valid IP address matching the IP address configured for the host.
  • The 3rd line must start with 2 spaces followed by a dash and 1 additional spaces. It must contain a fully-qualified hostname.
  • The 4th line must must start with 2 spaces followed by a dash and 1 additional spaces. It must contain a hostname, and must match the hostname configured for the source. Both are required.
  • Repeat 2nd to 4th lines for multiple entries.
4 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.