Skip to content
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

Merged
merged 1 commit into from
May 10, 2023

Conversation

rhatdan
Copy link
Contributor

@rhatdan rhatdan commented Apr 21, 2023

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.

@mwperina
Copy link
Member

#147 describes existing configuration files location and purpose

@rhatdan
Copy link
Contributor Author

rhatdan commented Apr 21, 2023

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.
Having them with different names to me was very hard to understand.

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.

@alexlarsson
Copy link
Contributor

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.

@alexlarsson
Copy link
Contributor

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.

@alexlarsson
Copy link
Contributor

I think the later is probably better than falling over if the default file is not found

@engelmi
Copy link
Member

engelmi commented Apr 25, 2023

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.

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).

@rhatdan
Copy link
Contributor Author

rhatdan commented May 4, 2023

@alexlarsson @mwperina @engelmi @pypingou PTAL

I think this is ready to merge.

Copy link
Member

@engelmi engelmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@mwperina mwperina left a 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>
@pypingou pypingou merged commit 9b480ee into eclipse-bluechi:main May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants