-
Notifications
You must be signed in to change notification settings - Fork 859
Support for service alias with systemd. (enhancement) #336
Comments
I thinks it's a part of #354 discussion. |
Although this seems to be very useful, I'd be against allowing further customizations to the unit file that elastic provides (in the spirit of #285). Systemd encourages use of override files, which could be utilized for adding any customizations to the original vendor unit.
|
Several options:
|
I agree that override is a better solution but it did not work for me. On CentOS 7 I try to use the override but it did not work.
|
To get around this, I set up my ansible inventory as follows (the names have been changed to protect the innocent);
Next, I override the following variables as follows;
I'm glazing over a lot of the details, but this is how I use this role to provide multi-node installation/administration. This also bypasses the need to run multiple playbooks for a single host. |
@mapo-job ah, The workaround that I found in that issue is to just create the symlink in
Hope that helps! |
#566 is merged. |
Would like the possibility to add an alias in systems script.
This is using a new variable es_service_alias.
Update templates/systemd/elasticsearch.j2, add at the end after WantedBy line:
Reason: the current implementation does
- set_fact: instance_init_script={{init_script | dirname }}/{{es_instance_name}}_{{init_script | basename}}
and the service name is nodeName_elasticsearch.service
I want to use the service name elasticsearch instead.
The text was updated successfully, but these errors were encountered: