Skip to content

🌱 Ansible playbook installer (kind + OpenShift) - #383

Merged
pdettori merged 17 commits into
rossoctl:mainfrom
pdettori:ansible
Nov 12, 2025
Merged

pdettori merged 17 commits into
rossoctl:mainfrom
pdettori:ansible

Conversation

@pdettori

@pdettori pdettori commented Nov 7, 2025 •

Copy link
Copy Markdown
Member

Summary

A new Ansible-based installer that automates installing Kagenti and its dependencies using the repository Helm charts. The playbook targets both local Kubernetes (kind) and OpenShift clusters and encapsulates platform-specific steps so contributors can reproduce consistent installs without manual ad-hoc commands.

Motivation

Manually installing Kagenti requires a series of fragile, error-prone steps that differ between kind and OpenShift. An idempotent Ansible playbook reduces onboarding friction, standardizes installations for demos and CI, and centralizes platform differences in one place.

What this PR adds

  • Ansible playbook(s) to install Kagenti and required dependencies via Helm charts, with support for:
    kind (local Kubernetes)
  • OpenShift (oc + platform-specific adjustments)
  • Inventory/vars to select target platform and tune install options (chart versions, namespaces, image overrides).
  • Idempotent tasks that:
    • install required CRDs and cluster-level resources
    • deploy Helm charts in the correct order

This is a work in progress (WIP). The intent is to orchestrate existing Helm charts and platform differences; it does not change chart internals.
Playbooks are focused on developer/demo workflows, not on hardened production deployment defaults.

Related issue(s)

Fixes #390

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new Ansible-based installer that automates the deployment of Kagenti and its dependencies using Helm charts. The installer supports both local Kubernetes (kind) and OpenShift clusters, providing idempotent installation tasks that handle platform-specific requirements. Additionally, it includes fixes to SSL certificate verification logic in the UI OAuth secret creation process.

Key changes:

  • New Ansible playbook and role infrastructure for automated installation
  • Environment-specific configuration files for different deployment targets (dev, minimal, OCP)
  • Python dependencies management via uv.lock and pyproject.toml
  • SSL certificate verification improvements in the OAuth secret creation job
  • Helm chart updates with better labeling and configuration flexibility

Reviewed Changes

Copilot reviewed 58 out of 61 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
pyproject.toml Defines Python project dependencies including Ansible and Kubernetes libraries
uv.lock Lock file for Python dependencies ensuring reproducible installations
deployments/ansible/ New Ansible playbook, roles, and configuration for automated installation
deployments/envs/ Environment-specific value files for dev, minimal, and OCP deployments
kagenti/auth/ui-oauth-secret/auth_secret.py Fixed SSL verification logic to use system CA bundle by default
charts/kagenti/ Updated Helm chart with improved configuration options and labeling
charts/kagenti-deps/ Updated dependencies chart with consistent labeling and fixes
docs/ Updated documentation for the new installer and OCP configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread deployments/ansible/run-install.sh Resolved
Comment thread charts/kagenti/values.yaml Resolved
@pdettori pdettori changed the title 🌱 [WIP] Ansible playbook installer (kind + OpenShift) 🌱 Ansible playbook installer (kind + OpenShift) Nov 12, 2025
Signed-off-by: Paolo Dettori <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 59 out of 62 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyproject.toml Resolved
Comment thread deployments/ansible/run-install.sh Resolved
Comment thread charts/kagenti/values.yaml Resolved
Comment thread Makefile Resolved
Signed-off-by: Paolo Dettori <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 60 out of 63 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

feature: Ansible-based installer for Kagenti (kind + OpenShift)

3 participants