{"id":22908897,"url":"https://github.com/ipunkt/docker-ansible-ufw","last_synced_at":"2026-01-12T00:41:09.033Z","repository":{"id":66084694,"uuid":"136245318","full_name":"ipunkt/docker-ansible-ufw","owner":"ipunkt","description":"Docker image using ansible to allow ufw access on certain servers for the running machine","archived":false,"fork":false,"pushed_at":"2020-07-31T08:22:15.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-07T05:27:47.098Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/ipunkt.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}},"created_at":"2018-06-05T23:21:04.000Z","updated_at":"2020-07-31T08:18:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"64336e5a-a558-41de-8df7-964211861fec","html_url":"https://github.com/ipunkt/docker-ansible-ufw","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fdocker-ansible-ufw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fdocker-ansible-ufw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fdocker-ansible-ufw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Fdocker-ansible-ufw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipunkt","download_url":"https://codeload.github.com/ipunkt/docker-ansible-ufw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620260,"owners_count":20806722,"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-12-14T03:33:02.092Z","updated_at":"2026-01-12T00:41:08.995Z","avatar_url":"https://github.com/ipunkt.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-ansible-ufw\n\nDocker image using ansible to allow ufw access on certain servers for the\nrunning machine\n\n## Use case\n\nIn a cloud environment you have throw away hosts(also called droplets). To run\nstateful apps on them they need access to a permanent network storage, most\nlikely nfs.\n\nTo allow access from the droplet to the storage server it has to register with\nthe storage server, allowing traffic from the droplets ip to the necessary ports\n\n## Concept\n\nThe sotrage server has a management user which has passwordless sudo to the ufw\ncommand. TODO: subset of the ufw command necessary for adding ports.  \nThe container receives the ssh key necessary to log into the storage server via\nssh and uses ansible to enable the given ports in ufw. Important: Networking\nmode has to be `host` for ansible to use the correct droplet Ip\n\n## Environment\n\n- `HOSTS`: comma separated list of ports. Defaults to 111\n- `PORTS`: comma separated list of ports. Defaults to 111\n- `UFW_USER`: string. Required\n- `UFW_PASSWORD`: string. sudo password. Required\n- `UFW_PRIVATE_KEY`: string. Private Key. Required\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipunkt%2Fdocker-ansible-ufw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipunkt%2Fdocker-ansible-ufw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipunkt%2Fdocker-ansible-ufw/lists"}