-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hirte config files should be called the same everywhere #253
Conversation
#147 describes existing configuration files location and purpose |
I personally don't like having files installed by default in /etc, if possible. Now or soon you would not need a config file by default. The directories are fine, but I don't see the reason for the files. One issue with having the files automatically in /etc is when systemd updates them it has issues, either creating backup files or removing them. hirte-default.conf being the default for agent.conf? I would prefer to have the agent.conf and hirte.conf currently installed in /etc to be installed in /usr/share and then admin can simply copy them to /etc directory. or use the conf.d subdirs. |
It seems like this just deletes the default files, but i think we need those default set, because the defaults is not otherwise built into hirte. So, rather than we should rename hirte-default.conf to hirte.conf and then install that to usr. |
Alternatively we should hardcode defaults like the port in the actual code, and then we don't need the default file to have a value for it. |
I think the later is probably better than falling over if the default file is not found |
Defaults for the port and, recently, for the manager host and the node name have been hardcoded already. However, we probably might want to rethink the structure (later). |
@alexlarsson @mwperina @engelmi @pypingou PTAL I think this is ready to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
hirte-agent should read the agent.conf file in /usr and optionally in /etc. hirte should read the hirte.conf file in /usr and optionally in /etc. Only install hirte.conf and agent.conf once. Distros should install in /usr/share/hirte/config/ and admins can copy it to /etc/hirte/ Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
hirte-agent should read the agent.conf file in /usr and optionally in /etc.
Not sure why we are installing this file twice, but definitely do not want it named differently. Distros should install in /usr/share/hirte/config/ and admins can copy it to /etc/hirte/
Similarly hirte should read hirte.conf should be in both locations.