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

Fix Katello product resource API call #142

Merged
merged 7 commits into from
Jan 29, 2024

Commits on Nov 28, 2023

  1. Fix Katello product resource API call JSON payload

    foreman_katello_product used an old wrapper that did not include
    location_id and organization_id in the payload of calls towards the API.
    
    Resolves terraform-coop#54
    
    Signed-off-by: Dominik Pataky <pataky@mindful-security.eu>
    bitkeks committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    bc544ce View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2023

  1. Fix Katello product create/destroy; implement async foreman_tasks

    On the way to fix the creation, modification and deletion of Katello
    products, it turned out that Katello uses async responses in its API.
    Specifically, the destroy (DELETE) endpoints return an async task, which
    must be checked for completion. This check is now implemented. If a
    product is destroyed, the API client detects the usage of foreman_tasks
    and invokes a routine to check the task by its ID, waiting for it to
    finish.
    
    Signed-off-by: Dominik Pataky <pataky@mindful-security.eu>
    bitkeks committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    96ab602 View commit details
    Browse the repository at this point in the history
  2. Katello product: re-add SSL-related fields

    Signed-off-by: Dominik Pataky <pataky@mindful-security.eu>
    bitkeks committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    efd71f5 View commit details
    Browse the repository at this point in the history
  3. katello_product: fix product data source query by adding orgId

    As seen in
    https://apidocs.theforeman.org/katello/latest/apidoc/v2/products.html,
    the organization_id is a required parameter for the GET endpoint. It is
    now sent with the name query term.
    
    Signed-off-by: Dominik Pataky <pataky@mindful-security.eu>
    bitkeks committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    cb079bb View commit details
    Browse the repository at this point in the history
  4. Move foreman_task into own api/ file

    Signed-off-by: Dominik Pataky <pataky@mindful-security.eu>
    bitkeks committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    f956434 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2023

  1. Configuration menu
    Copy the full SHA
    8987a17 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2023

  1. Update example for Katello sync_plan

    Signed-off-by: Dominik Pataky <pataky@mindful-security.eu>
    bitkeks committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    725ce80 View commit details
    Browse the repository at this point in the history