NETWAYS / NETWAYS/ansible-collection-elasticstack

Make sysconfig / defaults file configurable

Open
#65 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component:elasticsearch
Dominant language
Jinja
Stars
14
Forks
11
Avg merge
1d 47m
Merged PRs (30d)
6

Description

We need to change a line in /etc/sysconfig/elasticsearch or /etc/default/elasticsearch for https://github.com/NETWAYS/ansible-role-elasticsearch/issues/74 . The current impelementation is not very friendly for more upcoming changes.

So either find a way to merge ES_JAVA_OPTS and use several lineinfile or change the current implementation and go for a template. (Might be better but way more work due to possibly version dependent contents of the file)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining how /etc/sysconfig/elasticsearch and /etc/default/elasticsearch are currently managed, then review the requested ES_JAVA_OPTS change from the linked issue. Compare merging ES_JAVA_OPTS with multiple lineinfile tasks against using a template, including version-dependent file contents. Done means the defaults file can support the requested change without making future changes unnecessarily difficult.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, elasticsearch
Domain
devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.