Skip to main content

AI-powered infrastructure management

Project description

Opsbox

AI-Powered Infrastructure Management

Welcome to Opsbox, the open-source platform that adds a dash of AI magic to your infrastructure management. With our flexible plugin system and policy-as-code approach using Rego, managing your infrastructure has never been this enjoyable!

Features

  • 🎛️ Plugin System: Customize and extend functionality with ease.
  • 📝 Policy-as-Code with Rego: Define compliance checks and policies efficiently.
  • 🤖 AI Assistance: Leverage AI models to analyze and process your infrastructure data.
  • 💻 Command-Line Interface: An interactive CLI.
  • 📚 Documentation Support: Generate and view documentation effortlessly using mkdocs.

Installation

Ready to dive in? Let's get you set up!

Prerequisites

  • Python 3.11
  • uv

Step-by-Step

  1. Clone the Repository

    git clone https://github.com/sudoersllc/Opsbox.git
    cd Opsbox
    
  2. Install with uv

    We use [uv] for managing dependencies. If you don't have it installed, you can get it via pip:

    pip install uv
    

    Now, let's install Opsbox:

    uv sync
    

    This command will install all required dependencies specified in pyproject.toml.

Running Opsbox

Time to see the magic in action!

Simply run:

python -m opsbox

This will launch Opsbox and display the CLI help along with available commands.

Example Usage

Want to run a specific pipeline? Here's how:

python -m opsbox --modules your_input-your_optional_assistant-your_output --opa_upload_url http://your-opa-upload-url --opa_apply_url http://your-opa-apply-url

Configuration

Opsbox is flexible when it comes to configuration. You can provide options via:

  • Command-Line Arguments
  • Configuration Files
  • Environment Variables

Using a Configuration File

Create a file named .opsbox_conf.json in your home directory:

{
  "aws_access_key_id": "YOUR_ACCESS_KEY_ID",
  "aws_secret_access_key": "YOUR_SECRET_ACCESS_KEY",
  "aws_region": "YOUR_AWS_REGION",
  "opa_upload_url": "http://your-opa-upload-url",
  "opa_apply_url": "http://your-opa-apply-url"
}

Command-Line Arguments

You can also provide configuration options directly through the command line:

python -m opsbox --modules example_module --aws_access_key_id YOUR_ACCESS_KEY_ID --aws_secret_access_key YOUR_SECRET_ACCESS_KEY --aws_region YOUR_AWS_REGION --opa_upload_url http://your-opa-upload-url --opa_apply_url http://your-opa-apply-url

Let's Get Started!

Now that you're all set, it's time to unleash the power of AI on your infrastructure. Happy automating!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opsbox-0.1.1.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opsbox-0.1.1-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file opsbox-0.1.1.tar.gz.

File metadata

  • Download URL: opsbox-0.1.1.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.25

File hashes

Hashes for opsbox-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9277d5afe597be67aebf47638f407f9c5020a69e40ed0650d77d3525437718e6
MD5 2b77a05f9a59574bb2317dcf943e9985
BLAKE2b-256 0c1483f6f2517c81104b8836aed35e10f8f50bae77d6ed07a798dbd54c7fb182

See more details on using hashes here.

File details

Details for the file opsbox-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: opsbox-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.25

File hashes

Hashes for opsbox-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8adbdccd51a67fc159870a157e5ca6cb685ae1d021f7ae525b8d882373f295c5
MD5 4fac018e7bc092b82d97640f745e6b35
BLAKE2b-256 67c7ef6ef06f1bea1a459016b8030dfffcee2e7abf3d8297c303d96986bfcb2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page