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

Cannot override "init_source" with nil as documented #725

Open
sglajchEG opened this issue Oct 25, 2019 · 1 comment
Open

Cannot override "init_source" with nil as documented #725

sglajchEG opened this issue Oct 25, 2019 · 1 comment
Labels
Bug Something isn't working

Comments

@sglajchEG
Copy link

When I set the "init_source" to nil, it just uses the default value. This looks like it never would have worked?
I need to be able to provide my own init scripts, and since this cookbook doesn't do that well (doesn't let me pass my own variables in the init script I provide), I have to be able to turn off the init scripts altogether.

@martinb3 martinb3 added Bug Something isn't working doc labels Dec 31, 2019
@martinb3
Copy link
Contributor

martinb3 commented Dec 31, 2019

Can you show us how you're setting init_source? It seems weird that nil would turn into 'initscript.erb', but perhaps something else is going on. There's definitely a guard checking if it's nil, that should cause it to skip writing a file in /etc/init.d.

Also, you might consider just not using the elasticsearch_service resource if you want to go ahead and do your own thing with init scripts.

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

3 participants