Back to Opsview FAQ

Disable changes to hosts files when running opsview-deploy

When you run opsview-deploy, it can modify the /etc/hosts files on the Opsview hosts it runs against. You can disable this behavior. After doing so, you will need to manage the /etc/hosts files of your Opsview hosts yourself. See our article on managing collector hosts files for more information.

Prerequisites Copied

Process Copied

  1. Log in to the orchestrator as root.
  2. Open user_vars.yml in your preferred text editor.

YML editing

Take care to ensure proper formatting when editing YML files, including using only two spaces per level of indentation.

  1. Locate the variable opsview_host_update_etc_hosts and set it to False, e.g.
opsview_host_update_etc_hosts: False

Uncomment this variable if it is commented out.

If the opsview_host_update_etc_hosts variable is not defined in your user_vars.yml file, add the above definition to the end of your user_vars.yml file.

  1. Add the following variable definition to a new line beneath opsview_host_update_etc_hosts: False:
opsview_host_resolve_groups: []

Your user_vars.yml file should now contain both of these lines:

opsview_host_update_etc_hosts: False
opsview_host_resolve_groups: []

Next time you run opsview-deploy, it will not change the /etc/hosts files on any of your Opsview hosts. You do not need to run any playbooks to apply this new setting, it will be used automatically for all future runs of opsview-deploy.

["Geneos"] ["FAQ"]

Was this topic helpful?