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
- None
Process
-
Log in to the orchestrator as
root
. -
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.
- Locate the variable
opsview_host_update_etc_hosts
and set it toFalse
, 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.
- 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
.
Comments
0 comments
Please sign in to leave a comment.