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

Elasticsearch user homedir deleted #328

Closed
jro opened this issue Jul 3, 2015 · 3 comments
Closed

Elasticsearch user homedir deleted #328

jro opened this issue Jul 3, 2015 · 3 comments
Assignees
Labels
Bug Something isn't working

Comments

@jro
Copy link

jro commented Jul 3, 2015

Why is the elasticsearch user's homedir being deleted? It caused me some confusion and seems a bit counterintuitive.

https://github.com/elastic/cookbook-elasticsearch/blob/master/libraries/provider_user.rb#L28-L33

@martinb3
Copy link
Contributor

martinb3 commented Jul 4, 2015

Hi @jro -- it's because the user provider automatically creates a user home dir whether you want one or not. We should probably use a different resource and provider, or figure out a better workaround.

@martinb3 martinb3 self-assigned this Jul 4, 2015
@jro
Copy link
Author

jro commented Jul 4, 2015

For me I tried setting $HOME to be the parent directory /somedir/elasticsearch which contained the installed version and all the /etc /data /logs dirs as well. Then on each chef run it would dutifully delete that homedir and recreate all that.

@martinb3 martinb3 added the Bug Something isn't working label Jul 7, 2015
@martinb3 martinb3 added this to the 1.0.x bugfix release milestone Aug 2, 2015
@martinb3
Copy link
Contributor

Howdy -- I'm removing the delete feature to solve this issue @jro. We can re-explore it later, but I don't want you to be too long without a released version that works. Thanks for the bug report! We'll be releasing a new version in the next day or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants