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

Research: salt content consumption from git repository #9608

Open
rjmateus opened this issue Jan 9, 2025 · 0 comments
Open

Research: salt content consumption from git repository #9608

rjmateus opened this issue Jan 9, 2025 · 0 comments

Comments

@rjmateus
Copy link
Member

rjmateus commented Jan 9, 2025

Description

Uyuni uses Salt to perform actions on the registered machines. Users may have the need to store more Salt content remotely on a git repository and configure Uyuni to consume it.
On top of this, some Salt Formulas, and the Uyuni-specific formulas with forms can be configured [1]

Currently, we have two options to consume it:

  • Salt gitfs configuration: there is a performance problem with this option, it doesn't support formulas with forms and users must configure it on the Salt configuration files inside the container.
  • Manually pull the git repository and copy the files to inside Salt known locations on the container file system.

The goal for this task is to allow users to configure git (github, gitlab or gitea) integration by providing the GIT URL and specify a folder organizational structure that would allow Uyuni to automatically synchronize content to be used by salt.
With this information, Uyuni would automatically synchronize content from the remote git repository and make it available for Salt and Uyuni server consumption.

Tasks overview

  • UI and API development to collect git connection information (URL, authentication?)
  • Specify the folder structure that Uyuni can understand (for example: pillars, states, formulas, and formula-form)
  • Develop a taskomatic task responsible for synchronizing content (can delegate it on a python script)

Languages and technologies

  • Java
  • Git
  • Python?

Next steps

  • Webhooks to automatically synchronize content (may not be possible for world-facing git server, like github)
  • Synchronize ansible content as well

Mentors

  • @?

[1] https://www.uyuni-project.org/uyuni-docs/en/uyuni/specialized-guides/salt/salt-formulas-custom.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant