Skip to content

Conversation

@nzlosh
Copy link
Contributor

@nzlosh nzlosh commented Jun 6, 2025

This PR rewrites the st2bootstrap script generation process to use jinja templates. A datafile is used to define the set of supported Linux distributions. Jinja templates are defined by functionality, e.g. a mongodb template, redis template, systems template etc to give modularity to the shell script.

Documentation describing how the template and scripts are structured in readme-install-script.md

The re-write is fundamental to addressing package build / test and publish failures in the st2 ci/cd. It has been failing for the last year due to lack of maintenance to the st2bootstrap script.

@nzlosh nzlosh requested a review from a team June 6, 2025 10:37
Copy link
Member

@cognifloyd cognifloyd left a comment

Choose a reason for hiding this comment

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

I finally finished reviewing this. I've got some questions and suggested changes.

@nzlosh nzlosh force-pushed the generic_template branch from 19374bb to 8fafa7e Compare June 18, 2025 07:39
@nzlosh nzlosh force-pushed the generic_template branch 2 times, most recently from e9b3ec8 to e707cd6 Compare June 18, 2025 13:25
@nzlosh nzlosh force-pushed the generic_template branch 2 times, most recently from 7636d76 to 52ad4e8 Compare June 18, 2025 14:03
cognifloyd

This comment was marked as resolved.

@nzlosh nzlosh force-pushed the generic_template branch 3 times, most recently from 536cc7e to fc005f9 Compare June 18, 2025 23:53
Copy link
Member

@cognifloyd cognifloyd left a comment

Choose a reason for hiding this comment

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

This is so close! And it is so much easier to follow the logic of these templates, minimizing the duplication from the old method.

@nzlosh nzlosh force-pushed the generic_template branch from fc005f9 to 32ff7f8 Compare June 19, 2025 05:48
@nzlosh nzlosh force-pushed the generic_template branch from 0ba1432 to 52145c6 Compare June 19, 2025 06:37
Copy link
Member

@cognifloyd cognifloyd left a comment

Choose a reason for hiding this comment

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

Woohoo. The only question left is about that packaging bug and you mentioned adding a comment about the ASCII logo. In any case I'm satisfied. This looks great!

"nodejs-${NODE_VERSION}-key" \
"https://rpm.nodesource.com/gpgkey/ns-operations-public.key"

{#- repository jinja template enables repo_gpgcheck which breaks on nodejs 20.x #}
Copy link
Member

Choose a reason for hiding this comment

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

Shame on node.js! Oh well.

@nzlosh
Copy link
Contributor Author

nzlosh commented Jun 19, 2025

@cognifloyd If you're OK with circling back to the packaging /var/log/st2 issue later on, I think I've addressed all other points.

@cognifloyd
Copy link
Member

@cognifloyd If you're OK with circling back to the packaging /var/log/st2 issue later on, I think I've addressed all other points.

Yup. Sounds good. Merge!

@nzlosh nzlosh merged commit 6fc3b78 into StackStorm:master Jun 20, 2025
2 checks passed
@nzlosh nzlosh deleted the generic_template branch June 26, 2025 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants