{"id":18147251,"url":"https://github.com/pprzetacznik/gitops-configserver","last_synced_at":"2026-03-03T16:45:52.831Z","repository":{"id":260183470,"uuid":"878603040","full_name":"pprzetacznik/gitops-configserver","owner":"pprzetacznik","description":"GitOps ConfigServer","archived":false,"fork":false,"pushed_at":"2025-05-05T22:21:27.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-03T21:00:58.816Z","etag":null,"topics":["config","configserver","gitops","hieradata","jinja2","multitenancy","puppet","templates","yaml"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/gitops-configserver/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pprzetacznik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-25T17:40:08.000Z","updated_at":"2025-05-05T22:21:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"04bdec39-0ccf-44da-9cc3-f9dd8b48bd6c","html_url":"https://github.com/pprzetacznik/gitops-configserver","commit_stats":null,"previous_names":["pprzetacznik/gitops-configserver"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pprzetacznik/gitops-configserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pprzetacznik%2Fgitops-configserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pprzetacznik%2Fgitops-configserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pprzetacznik%2Fgitops-configserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pprzetacznik%2Fgitops-configserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pprzetacznik","download_url":"https://codeload.github.com/pprzetacznik/gitops-configserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pprzetacznik%2Fgitops-configserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30052132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T15:26:47.567Z","status":"ssl_error","status_checked_at":"2026-03-03T15:26:17.132Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["config","configserver","gitops","hieradata","jinja2","multitenancy","puppet","templates","yaml"],"created_at":"2024-11-01T22:06:06.089Z","updated_at":"2026-03-03T16:45:52.824Z","avatar_url":"https://github.com/pprzetacznik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitOps Configserver\n\n[![gitops-configserver Release](https://github.com/pprzetacznik/gitops-configserver/actions/workflows/release.yml/badge.svg)](https://github.com/pprzetacznik/gitops-configserver/actions/workflows/release.yml)\n[![gitops-configserver Test](https://github.com/pprzetacznik/gitops-configserver/actions/workflows/test.yml/badge.svg)](https://github.com/pprzetacznik/gitops-configserver/actions/workflows/test.yml)\n[![PyPI version](https://badge.fury.io/py/gitops-configserver.svg)](https://pypi.org/project/gitops-configserver/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/gitops-configserver)](https://pypi.org/project/gitops-configserver/)\n[![Documentation Status](https://readthedocs.org/projects/gitops-configserver/badge/?version=latest)](https://gitops-configserver.readthedocs.io/en/latest/?badge=latest)\n\nInspired by puppet, kustomized and GitOps practices.\n\n## Planned features\n\n* multitenant templates\n* hieradata variables\n* template plugins\n* flask rest service\n* gitsync for config repository synchronization in web mode\n\n## Usage\n\n```\n$ python -m gitops_server.cli config_gen -h\nusage: cli.py config_gen [-h] --config_dir CONFIG_DIR\n\noptions:\n  -h, --help            show this help message and exit\n  --config_dir CONFIG_DIR\n                        Config directory\n```\n\nExample target repository:\n* see `config` directory for example configuration with templates,\n* https://github.com/pprzetacznik/gitops-configserver-tests\n\n```\n$ python -m gitops_server.cli server --config_dir=config\n...\n$ curl http://localhost:8002/configs\n{\"tenants\":[\"tenant1\"]}\n$ curl -X GET \\\n    -H \"Content-type: application/json\" \\\n    -H \"Accept: application/json\" \\\n    -d \"{\\\"environment\\\": \\\"prod\\\"}\" \\\n    http://localhost:8002/configs/tenant1/template1.tpl\n```\n\n## Using cli for generating config\n\n```\n$ pip install -e .\n$ gitops-configserver \\\n      template_gen \\\n      --config_dir=resources/test_config \\\n      --tenant_name=tenant2 \\\n      --template_name=build_variants.yaml \\\n      --facts='{\"environment\": \"test\"}' \u003e result1.txt\n$ cat result1.txt\nbuild:\n  my_application:\n    - env: test\n      os: ubuntu22.04\n      python: 3.12\n    - env: test\n      os: ubuntu22.04\n      python: 3.13\n    - env: test\n      os: ubuntu24.04\n      python: 3.12\n    - env: test\n      os: ubuntu24.04\n      python: 3.13\n    - env: dev\n      os: ubuntu18.04\n      python: python3.8\n```\n\n## Setting up GitHub tokens\n\n* Go to Setting -\u003e Developer Settings -\u003e Fine-grained personal access tokens\n* Create a token with following settings:\n  * `Only select repositories` and select your repository\n  * `Repository permissions` and select `Content`\n\nSet the token as `$GH_PAT` in your local environment.\n\n## Publish new release\n\n```\n$ git tag v1.0\n$ git push origin v1.0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpprzetacznik%2Fgitops-configserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpprzetacznik%2Fgitops-configserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpprzetacznik%2Fgitops-configserver/lists"}