Skip to main content

No project description provided

Project description

GitOps Configserver

gitops-configserver Release gitops-configserver Test PyPI version PyPI - Python Version Documentation Status

Inspired by puppet, kustomized and GitOps practices.

Planned features

  • multitenant templates
  • hieradata variables
  • template plugins
  • flask rest service
  • gitsync for config repository synchronization in web mode

Usage

$ python -m gitops_server.cli config_gen -h
usage: cli.py config_gen [-h] --config_dir CONFIG_DIR

options:
  -h, --help            show this help message and exit
  --config_dir CONFIG_DIR
                        Config directory

Example target repository:

$ python -m gitops_server.cli server --config_dir=config
...
$ curl http://localhost:8002/configs
{"tenants":["tenant1"]}

Using cli for generating config

$ pip install -e .
$ gitops-configserver \
      template_gen \
      --config_dir=resources/test_config \
      --tenant_name=tenant2 \
      --template_name=build_variants.yaml \
      --facts='{"environment": "test"}' > result1.txt
$ cat result1.txt
build:
  my_application:
    - env: test
      os: ubuntu22.04
      python: 3.12
    - env: test
      os: ubuntu22.04
      python: 3.13
    - env: test
      os: ubuntu24.04
      python: 3.12
    - env: test
      os: ubuntu24.04
      python: 3.13
    - env: dev
      os: ubuntu18.04
      python: python3.8

Setting up GitHub tokens

  • Go to Setting -> Developer Settings -> Fine-grained personal access tokens
  • Create a token with following settings:
    • Only select repositories and select your repository
    • Repository permissions and select Content

Set the token as $GH_PAT in your local environment.

Publish new release

$ git tag v1.0
$ git push origin v1.0

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

gitops_configserver-1.4.20250413150319.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file gitops_configserver-1.4.20250413150319.tar.gz.

File metadata

File hashes

Hashes for gitops_configserver-1.4.20250413150319.tar.gz
Algorithm Hash digest
SHA256 a848082d67e6790d4e0e44f32cba8dd9d78083780ed9dfeee014a86540e105f5
MD5 380e11757c8f9f0c88933123f1719351
BLAKE2b-256 4143ab91698d4c714305bbd8424bc8edaca845745c51d3879df5c2481c215992

See more details on using hashes here.

File details

Details for the file gitops_configserver-1.4.20250413150319-py3-none-any.whl.

File metadata

File hashes

Hashes for gitops_configserver-1.4.20250413150319-py3-none-any.whl
Algorithm Hash digest
SHA256 b10d855a48194f97def0881965fe1573ba9c24f3d6136e105295fe484ac4a51b
MD5 21f9a3886946443ee5733c618098260c
BLAKE2b-256 e0a2fc185149e7e71bd32a721163125e56cd832216b0ae3a6d179c1bd7b7f837

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