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

Adding recaptool and better path handling. #79

Merged
merged 1 commit into from
Mar 3, 2017

Conversation

tonyskapunk
Copy link
Contributor

No description provided.

Copy link

@troyengel troyengel left a comment

Choose a reason for hiding this comment

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

It's looking good to me - all permissions on the files are correct, all files install and uninstall cleanly and are where they are expected to be.

Knowing this was traditionally a RHEL/CentOS install, I tested specifically on a minimal Ubuntu 16 VM adding nothing more than 'make' to the base image and it's as expected, ready for packagers to build as non-root user.

1c0aaaf

@echo "Installing configuration..."
@install -Dm0644 src/recap.conf $(SYSCONFDIR)/recap

Choose a reason for hiding this comment

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

My only question is this one -- why are we stripping the dot-conf off the end of the file when installing it? Is this part of expected operation?

Choose a reason for hiding this comment

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

oops tagged one line in the PR too high, I meant the next line down sorry.

Copy link
Contributor

@thebwt thebwt Feb 17, 2017

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

sigh OK - changing that would break a simple upgrade, we should really be naming that file recap.conf. :(

Copy link
Contributor Author

@tonyskapunk tonyskapunk Feb 17, 2017

Choose a reason for hiding this comment

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

So yes, as @thebwt points out is what's used on recap. I chase whether or not this is a good practice and could've swear I found a source that would make a distinction on that matter, something like this (from what I remember):

  • /etc/project - OK when there is no other config file
  • /etc/project.conf - OK when there is a directory file for that project and requires more configs, e.g. /etc/project/
  • /etc/project/ - From above, when needed to include more configs
  • /etc/project.d/ - Similar as above but more explicit, when needed to include more configs

Don't remember if it was a best practice for packaging or something similar but that made me think it was not completely wrong. But truth is I don't find at the moment anything to support that and since I don't see any reference to this in the FSH for /etc/ this opens the question to. What's the right thing to do?

For now is clear that without a new release a change like this may not be recommended, but definitely something to take into consideration.

Copy link
Contributor

@thebwt thebwt Feb 17, 2017

Choose a reason for hiding this comment

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

I agree, this PR is not the place for a change like that. Though I am not taking a stance on the merits of the proposal in any way, just open an issue/pr to fix it.

Copy link
Contributor Author

@tonyskapunk tonyskapunk Feb 22, 2017

Choose a reason for hiding this comment

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

alright, I've created #80 to keep the discussion of the config file, since there is no other problem with the Makefile I'll wait a couple of days then proceed to merge it.

Choose a reason for hiding this comment

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

👍

@tonyskapunk tonyskapunk mentioned this pull request Feb 22, 2017
@tonyskapunk
Copy link
Contributor Author

Merging this one.

@tonyskapunk tonyskapunk merged commit fb2109b into rackerlabs:master Mar 3, 2017
@tonyskapunk tonyskapunk deleted the makefile branch March 3, 2017 19:00
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.

3 participants