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

Using a an overridable systemd unit #675

Open
pshroads opened this issue Jul 26, 2018 · 2 comments
Open

Using a an overridable systemd unit #675

pshroads opened this issue Jul 26, 2018 · 2 comments
Labels
Help Wanted Assistance is required to resolve this issue Needs Triage Issue is waiting to be categorised

Comments

@pshroads
Copy link

Is anyone successfully using a custom systemd script? This is what I have in my wrapper cookbook 'elsaticsearch-cvent' that calls this public elasticsearch cookbook:

elasticsearch_service 'elasticsearch' do
  action :start
  systemd_source 'systemd_unit_cvent.erb'
  systemd_cookbook 'elasticsearch-cvent'
end

Then I have systemd_unit_cvent.erb in the template section of my ''elsaticsearch-cvent' wrapper cookbook.

But the elasticsearch.service file that gets generated doesn't contain my customizations in my systemd_unit_cvent.erb template file.

Any ideas?

Thanks

@bincentvaret
Copy link

bincentvaret commented Aug 2, 2018

Working here, but not the same usage.

Our wrapper is called elasticsearch-wrapper

In the role (ruby role)

'elasticsearch' => {
  'service' => {
      'systemd_cookbook' => 'elasticsearch-wrapper'
  }
 }

and our template is named as the default

cookbooks/elasticsearch-wrapper/templates/systemd_unit.erb

@martinb3
Copy link
Contributor

martinb3 commented Aug 20, 2018

@damacus damacus added Needs Triage Issue is waiting to be categorised Help Wanted Assistance is required to resolve this issue labels Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted Assistance is required to resolve this issue Needs Triage Issue is waiting to be categorised
Projects
None yet
Development

No branches or pull requests

5 participants