No project description provided
Project description
GitOps Configserver
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:
- see
configdirectory for example configuration with templates, - https://github.com/pprzetacznik/gitops-configserver-tests
$ 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 repositoriesand select your repositoryRepository permissionsand selectContent
Set the token as $GH_PAT in your local environment.
Publish new release
$ git tag v1.0
$ git push origin v1.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitops_configserver-1.4.20250413150319.tar.gz.
File metadata
- Download URL: gitops_configserver-1.4.20250413150319.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a848082d67e6790d4e0e44f32cba8dd9d78083780ed9dfeee014a86540e105f5
|
|
| MD5 |
380e11757c8f9f0c88933123f1719351
|
|
| BLAKE2b-256 |
4143ab91698d4c714305bbd8424bc8edaca845745c51d3879df5c2481c215992
|
File details
Details for the file gitops_configserver-1.4.20250413150319-py3-none-any.whl.
File metadata
- Download URL: gitops_configserver-1.4.20250413150319-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b10d855a48194f97def0881965fe1573ba9c24f3d6136e105295fe484ac4a51b
|
|
| MD5 |
21f9a3886946443ee5733c618098260c
|
|
| BLAKE2b-256 |
e0a2fc185149e7e71bd32a721163125e56cd832216b0ae3a6d179c1bd7b7f837
|