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

ADD: Additional Client Options #2049

Merged
merged 8 commits into from
Oct 3, 2024
Merged

Conversation

PatrickRL
Copy link
Contributor

Added more client options

PatrickRL and others added 5 commits September 11, 2024 14:04
Added more client options
added more option, including slasher for Lighthouse as well as removing unused pruning option for Besu
this.item.yaml = this.item.yaml.replace(new RegExp(/\n^.*\/opt\/app\/slasher*$/gm), "");
} else if (this.item.yaml.includes("--slasher") && !this.item.yaml.includes("/opt/app/slasher")) {
this.item.yaml = this.item.yaml.replace("--slasher","--slasher\n - --slasher-dir=/opt/app/slasher");
this.item.yaml = this.item.yaml.replace("volumes:" ,"volumes:\n - /opt/stereum/lighthouse-" + this.item.config.serviceID +"/slasher:/opt/app/slasher")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may run into some issues here.
The problem is, that ansible sometimes messes with the format of the config which may result in something like this:

volumes:
- someVolume
- someVolume

your solution would end up as:

volumes:
  - someVolume
- someVolume
- someVolume

Not only that, another problem ist, that users might use another path than the default /opt/stereum for this service.

fixed formating and custom install volume problem
NeoPlays
NeoPlays previously approved these changes Oct 3, 2024
Copy link
Member

@NeoPlays NeoPlays left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 🚀

NeoPlays
NeoPlays previously approved these changes Oct 3, 2024
@NeoPlays NeoPlays merged commit ba51d7a into stereum-dev:main Oct 3, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants