{"id":16072419,"url":"https://github.com/ganchdev/keypea-infra","last_synced_at":"2026-01-02T02:03:59.826Z","repository":{"id":174159115,"uuid":"620045899","full_name":"ganchdev/keypea-infra","owner":"ganchdev","description":"Infrastructure builder for Keypea","archived":false,"fork":false,"pushed_at":"2023-06-19T11:22:21.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T17:48:43.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ganchdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-03-27T23:28:09.000Z","updated_at":"2023-03-27T23:28:48.000Z","dependencies_parsed_at":"2023-08-22T07:00:52.562Z","dependency_job_id":null,"html_url":"https://github.com/ganchdev/keypea-infra","commit_stats":null,"previous_names":["naft-a/keypea-infra","ganchdev/keypea-infra"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganchdev%2Fkeypea-infra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganchdev%2Fkeypea-infra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganchdev%2Fkeypea-infra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganchdev%2Fkeypea-infra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ganchdev","download_url":"https://codeload.github.com/ganchdev/keypea-infra/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243672371,"owners_count":20328762,"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":[],"created_at":"2024-10-09T08:01:15.086Z","updated_at":"2026-01-02T02:03:54.794Z","avatar_url":"https://github.com/ganchdev.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# keypea-infra\n\nInfrastructure management for Keypea.\n\n## Requirements\n\n- Python 3.7 or later with `pip`.\n- Make\n\n## Quick Start\n\n1. Install all Python and Ansible dependencies on your system run:\n   ```\n   make bootstrap\n   ```\n2. Check SSH connectivity to all machines:\n   ```\n   make ping INVENTORY=production ANSIBLE_USER=\u003cyour-username\u003e\n   ```\n3. Provision/deploy against all machines:\n   ```\n   make provision INVENTORY=production ANSIBLE_USER=\u003cyour-username\u003e\n   ```\n\n## Make Targets\n\n### `bootstrap`\n\nThe `bootstrap` make target basically runs the following two commands to install\nrequired Python packages and Ansible dependencies:\n\n- `pip install -r requirements.txt`\n- `ansible-galaxy install -f -r requirements.yml`\n\n### `ping`\n\nChecks connectivity too all machines that would be provisioned via the\n`provision` target. Hence `ping` uses the same exact options as `provision`. It\neffectively performs `ansible -m ping all`.\n\n### `provision`\n\nThe `provision` make target runs ansible-playbook against the specified\ninventory. It also passes in some extra command line flags which are most likely\nneeded. They are each configured with the following environment variables:\n\n- `INVENTORY` — Used to specify the inventory name to use. Effectively adds\n  `-i inventories/$INVENTORY` to the list of Ansible arguments. When this is set\n  to `production` the `--ask-become-pass` flag is also passed making Ansible\n  prompt for the sudo password on the target machines.\n- `ANSIBLE_USER` — The user Ansible will use to establish a SSH connection to\n  the target machines. This overrides any `ansible_user` vars specified in\n  inventory files directly. This is mostly needed for the `production` inventory\n  where each person have their own unique username.\n- `TAGS` — When set to a non-empty string `--tag=$TAGS` will be added to the\n  list of Ansible arguments.\n- `ANSIBLE_ARGS` — Allows specifying additional arguments passed to\n  `ansible-playbook`.\n- `APT_UPGRADE` — Upgrade packages with `apt-get upgrade` when set to a\n  non-empty string.\n- `APT_DIST_UPGRADE` — Upgrade packages with `apt-get dist-upgrade` when set to\n  a non-empty string.\n\n### Post provisioning\n\nOn first run against a specific system, it is generally a good idea to upgrade\nsystem packages.\n\n### `deploy`\n\nThe `deploy` make target runs the deploy playbook located to trigger a deployment against\nthe specified inventory and host group.\n\n- `INVENTORY` - the inventory\n- `GROUP` - the group against we run the deployment, for example if we want to deploy only\n  the gateway we would run `make deploy INVENTORY=production GROUP=gateway`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganchdev%2Fkeypea-infra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganchdev%2Fkeypea-infra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganchdev%2Fkeypea-infra/lists"}