{"id":16451597,"url":"https://github.com/jobcespedes/multienv","last_synced_at":"2026-05-04T01:32:06.061Z","repository":{"id":86633994,"uuid":"210457985","full_name":"jobcespedes/multienv","owner":"jobcespedes","description":"A stackable multienvironment directory layout for Ansible using unionfs and docker","archived":false,"fork":false,"pushed_at":"2020-02-26T21:14:06.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T15:14:27.166Z","etag":null,"topics":["ansible","ansible-role","container","docker","role","unionfs"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jobcespedes.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":"2019-09-23T21:43:11.000Z","updated_at":"2021-09-16T04:46:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"1055aa95-5486-48d5-9fed-0a0ca37c7132","html_url":"https://github.com/jobcespedes/multienv","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jobcespedes/multienv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobcespedes%2Fmultienv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobcespedes%2Fmultienv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobcespedes%2Fmultienv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobcespedes%2Fmultienv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jobcespedes","download_url":"https://codeload.github.com/jobcespedes/multienv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobcespedes%2Fmultienv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32591596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","ansible-role","container","docker","role","unionfs"],"created_at":"2024-10-11T10:09:21.983Z","updated_at":"2026-05-04T01:32:06.027Z","avatar_url":"https://github.com/jobcespedes.png","language":"Python","funding_links":["https://www.buymeacoffee.com/jobcespedes"],"categories":[],"sub_categories":[],"readme":"Role Name: multienv\n=========\n\n[![Build Status](https://travis-ci.org/jobcespedes/multienv.svg?branch=master)](https://travis-ci.org/jobcespedes/multienv) [![Buy me a coffee](https://img.shields.io/badge/$-BuyMeACoffee-blue.svg)](https://www.buymeacoffee.com/jobcespedes)\n\nDescription: A stackable multienvironment directory layout for Ansible using unionfs. Check this [Github project](https://github.com/jobcespedes/demo-multienv) with demo data for the environments\n\nThere are three methods to run unionfs binary. From unionfs binary in the host, a docker container or a podman container.\n\nRequirements\n------------\nUsing `unionfs` host binary\n- unionfs-fuse\n\nUsing docker engine\n- Docker\n- Docker SDK for Python\n\nUsing podman engine\n- Podman\n\n- See [`requirements.txt`](requirements.txt)\n\nRole Variables\n--------------\n\nDefine a stackable environment hierarchy in ```multienv_union``` variable using a list. The last environment in the list has the most priority. For example **dev**:\n```yaml\nmultienv_union:\n  - base\n  - dev\n```\nFor example **dev**:\n```yaml\nmultienv_union:\n  - base\n  - production\n```\nMore than two directories can be stacked. For example, to stack **stage** over dev and base:\n\n```yaml\nmultienv_union:\n  - base\n  - dev\n  - stage\n```\nFor the rest of variables:\n\n- See [`defaults/main.yml`](defaults/main.yml).\n\nDependencies\n------------\n- Centos: if using Centos and getting a message like **'is mounted on / but it is not a shared mount'**, you may need to make ```multienv_host_mountpoint``` a shared mount point with ```mount --make-rshared \u003cmultienv_host_mountpoint\u003e```. Replace ```\u003cmultienv_host_mountpoint\u003e``` with the respective value\n- Depends on other Ansible roles: no\n\nExample Playbook\n----------------\n\n```yaml\n- hosts: all\n  roles:\n    - jobcespedes.multienv\n```\nRun it with docker:\n```bash\nansible-playbook -i localhost, multienv.yml\n```\n\nRun it with podman:\n```bash\n# podman method requires sudo\nansible-playbook -i localhost, multienv.yml -e multienv_method=podman -K\n```\n\nRun it with binary in host:\n```bash\n\nansible-playbook -i localhost, multienv.yml -e multienv_method=binary\n```\n\nUnmount it\n```bash\nansible-playbook -i localhost, multienv.yml -e multienv_stop=true\n```\nLicense\n-------\n\nApache 2.0\n\nAuthor Information\n------------------\n\nJob Céspedes: jobcespedes@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjobcespedes%2Fmultienv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjobcespedes%2Fmultienv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjobcespedes%2Fmultienv/lists"}