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

PoC SUMA integration #2063

Closed
wants to merge 1 commit into from
Closed

PoC SUMA integration #2063

wants to merge 1 commit into from

Conversation

nelsonkopliku
Copy link
Member

@nelsonkopliku nelsonkopliku commented Dec 4, 2023

Description

Tiny PoC for SUMA integration supporting exploration. Not meant to be production ready.

How to play with it:
edit ./config/dev.local.exs by adding

config :trento, :suma,
  user: "<the username>",
  password: "<the password>",
  base_url: "<the base suma url>/rhn/manager/api"

start the system iex -S mix phx.server and the following functions can be called

iex(109)> Trento.Infrastructure.SUMA.login # to make a login
iex(110)> Trento.Infrastructure.SUMA.get_auth_cookies # to see the auth cookie
iex(111)> Trento.Infrastructure.SUMA.list_affected_systems # to trigger a listAffectedSystems API call

@nelsonkopliku nelsonkopliku force-pushed the poc-suma-integration branch 2 times, most recently from a3ca654 to 12f4275 Compare December 4, 2023 10:08
@nelsonkopliku nelsonkopliku changed the title Poc SUMA integration PoC SUMA integration Dec 4, 2023
@nelsonkopliku nelsonkopliku force-pushed the poc-suma-integration branch 2 times, most recently from d8a2939 to 67d0c9c Compare December 4, 2023 10:23
@dottorblaster dottorblaster deleted the poc-suma-integration branch March 18, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant