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

option to strip binary #478

Closed
maxadamo opened this issue May 19, 2019 · 4 comments
Closed

option to strip binary #478

maxadamo opened this issue May 19, 2019 · 4 comments
Labels
needs-feedback Further information is requested

Comments

@maxadamo
Copy link
Contributor

would you agree to add an option to strip the binary?
It's just easy:

if ($strip_binary) {
  exec { 'strip_consul_binary':
    path    => '/bin:/usr/bin:/sbin:/usr/sbin',
    command => "strip /var/consul/archives/consul-${consul_version}/consul"
    onlyif  => "file /var/consul/archives/consul-${consul_version}/consul|grep \'not stripped\'";
  }
}
@bastelfreak
Copy link
Member

Hey, could you explain why you need the binary stripped? Is that maybe something that Hashicorp should do during the release process?

@bastelfreak bastelfreak added the needs-feedback Further information is requested label May 19, 2019
@maxadamo
Copy link
Contributor Author

why: because all my C, C++ binaries are already stripped (otherwise I'd need a couple of TB only for the OS) 😸
On a serious note, I can understand your objection and in fact, I have raised the same issue to Sensu, and now the new sensu-go binary is stripped (they can even use the compile flag).
On the other side, if we do it through puppet, we let the user decide whether it must be stripped or not.
If the user needs the symbols for debugging purpose he can simply set "strip-binary = false"
There is pros and there is cons.

@maxadamo
Copy link
Contributor Author

maxadamo commented May 19, 2019

now there is maybe a related question:

du -sh /var/consul/archives/
560M	/var/consul/archives/

does the module have an option to purge old downloads?
Maybe this is a more important feature and I can probably agree to run "strip" myself (maybe using the above exec).

@maxadamo
Copy link
Contributor Author

@bastelfreak I'm gonna close this one (this is something I can do and I have already done myself).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-feedback Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants