{"id":13510375,"url":"https://github.com/packit/deployment","last_synced_at":"2025-07-14T22:30:56.530Z","repository":{"id":37543705,"uuid":"201919335","full_name":"packit/deployment","owner":"packit","description":"Ansible playbooks and scripts for deploying packit-service to OpenShift","archived":false,"fork":false,"pushed_at":"2024-11-20T18:02:58.000Z","size":1537,"stargazers_count":8,"open_issues_count":19,"forks_count":25,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-11-20T19:19:10.723Z","etag":null,"topics":["ansible","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/packit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2019-08-12T11:44:08.000Z","updated_at":"2024-11-20T18:03:04.000Z","dependencies_parsed_at":"2023-09-27T19:40:52.825Z","dependency_job_id":"8bce4fb2-eb2b-411f-8ec8-fbffe3ebbaac","html_url":"https://github.com/packit/deployment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Fdeployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Fdeployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Fdeployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Fdeployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/packit","download_url":"https://codeload.github.com/packit/deployment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226001559,"owners_count":17558004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ansible","hacktoberfest"],"created_at":"2024-08-01T02:01:36.519Z","updated_at":"2025-07-14T22:30:56.521Z","avatar_url":"https://github.com/packit.png","language":"Jinja","funding_links":[],"categories":["Jinja","ansible"],"sub_categories":[],"readme":"# Deploying Packit service or Stream service to Openshift\n\nThis repository contains Ansible playbooks/roles\nto deploy our services/bots to Openshift cluster.\nThis file documents basic usage, for more info see\n[docs](docs/) (below).\n\n## What's in here\n\n- [containers/](containers/) - files used to build container images\n- [cron-jobs/](cron-jobs/) - OpenShift cron jobs\n- [docs/](docs/) - more documentation\n  - [Images](docs/deployment/images.md) - what images we have and how we build them\n  - [Continuous deployment](docs/deployment/continuous-deployment.md) - how are the deployed services/bots updated\n  - [Testing changes](docs/deployment/testing-changes.md) - how to test our services/bots locally\n  - [Let's encrypt TLS certs](docs/deployment/tls-certs.md) - generating \u0026 renewing with `certbot`\n  - [Monitoring](docs/deployment/monitoring/index.md)\n  - [PostgreSQL specifics](docs/deployment/postgresql.md)\n  - [Packit service deployment specifics](docs/deployment/specifics/packit-service.md)\n  - [Fedora source-git bot deployment specifics](docs/deployment/specifics/fedora-source-git.md)\n  - [CentOS Stream source-git bot deployment specifics](docs/deployment/specifics/centos-stream-source-git.md)\n  - [Logs](docs/deployment/monitoring/logs.md) - how we aggregate worker logs and where to find them\n- [playbooks/](playbooks/) - Ansible playbooks\n- [roles/](roles/) - Ansible roles\n- [vars/](vars/) - Variable file(s). See [vars/README.md](vars/README.md).\n- [openshift/](openshift/) - Openshift resource configuration files (templates).\n- [secrets/](secrets/) - secret stuff to be used from `openshift/secret-*.yml.j2`\n- [scripts/](scripts/) - devops scripts used in multiple repositories\n\n## tl;dr How to deploy\n\n1. Configure the deployment by creating a variable file in 'vars/' from a\n   template as described in [vars/README](vars/README.md).\n2. Install some dependencies:\n   - `dnf install ansible python3-openshift python3-passlib jq make`\n   - `dnf install origin-clients` or (for a more recent version) download\n     `openshift-client-linux` from the [OKD\n     releases](https://github.com/openshift/okd/releases) page, unpack it, and\n     place `oc` in your `$PATH` (ex: `~/.local/bin`).\n   - Download the [Bitwarden\n     CLI](https://bitwarden.com/help/cli/#download-and-install),\n     unpack and place it in your `$PATH` (ex: `~/.local/bin`).\n3. `[SERVICE={service}] DEPLOYMENT={deployment} make deploy` (see\n   [vars/README](vars/README.md)).\n\nBy default, the playbook checks that the local copy of the deployment is\nup-to-date, and the variable file used is\nup-to-date with the corresponding template.\n\nTo disable these checks, set `check_up_to_date` to `false` in the\nvariable file.\n\nTo only disable comparing the variable file to the template, set\n`check_vars_template_diff` to `false`.\n\n### Partial deployments\n\nTo run only the tasks related to some of the services, this way doing a\npartial deployment, you can set the `TAGS` environment variable before calling\n`make`. For example, to run only the tasks to deploy Redict and Redis\nCommander, run:\n\n    $ DEPLOYMENT=dev TAGS=\"redict,redis-commander\" make deploy\n\nUse `make tags` to list the currently available tags.\n\n## See [docs/](docs/) for more documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpackit%2Fdeployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpackit%2Fdeployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpackit%2Fdeployment/lists"}