https://github.com/python-discord/infra
Infrastructure for Python Discord
https://github.com/python-discord/infra
propaganda webscale
Last synced: 4 months ago
JSON representation
Infrastructure for Python Discord
- Host: GitHub
- URL: https://github.com/python-discord/infra
- Owner: python-discord
- License: mit
- Created: 2022-01-10T16:04:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-15T16:13:16.000Z (4 months ago)
- Last Synced: 2025-02-15T17:20:17.400Z (4 months ago)
- Topics: propaganda, webscale
- Language: Jinja
- Homepage: https://docs.pydis.wtf
- Size: 3.02 MB
- Stars: 15
- Watchers: 24
- Forks: 4
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Infra
This repository contains the infrastructure configuration for Python Discord, the file structure is shown below, with well known files omitted for brevity:
[//]: <> (This structure is generated using https://tree.nathanfriend.io/.)
```
.github/
└── workflows/ # GitHub Actions Workflows for CI
ansible/
├── host_vars/ # Host specific Ansible variables
├── inventory/ # Ansible Inventory files
├── local_testing/ # Vagrant configuration to test Ansible playbook locally using VMs
├── roles/ # Directory containing all Ansible roles
├── .ansible-lint # Configuration for ansible lint
├── ansible.cfg # Ansible Configurartion file
└── playbook.yml # Root playbook pulling all roles together
dns/
├── zones/ # Zone configuration for each supported DNS Zone
└── production.yaml # Configuration for OctoDNS planning and deployment
docs/
└── meeting_notes/ # Minutes for previous devops meetings
kubernetes/
├── cluster-wide-secrets/ # Kubernetes secrets shared by multiple pods across namespaces
├── namespaces/ # Kubernetes manifests, separated by namespace
└── scripts/ # Scripts used to lint manifests in CI
.pre-commit-config.yaml # pre-commit configuration
server_bootstrap.sh # A bash script used to init our bare metal servers
```## Documentation
Infrastructure-related documentation ("the big picture"), can be found in [`docs/`](./docs/).
Many folders have a `README.md` file within them, which have more detailed explanations on what
that folder, and the files within, is used for.## Linting
To lint everything with `pre-commit` locally, run the command
```sh
$ poetry run task lint
```Any trivial errors (formatting, minor linting problems) will automatically be fixed.