{"id":31601764,"url":"https://github.com/pitabwire/ansible_role_microceph","last_synced_at":"2025-10-06T07:59:28.223Z","repository":{"id":200649980,"uuid":"705987712","full_name":"pitabwire/ansible_role_microceph","owner":"pitabwire","description":"Ansible role to bootstraps a ceph cluster using microceph","archived":false,"fork":false,"pushed_at":"2024-02-02T06:37:36.000Z","size":37,"stargazers_count":1,"open_issues_count":4,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-01T18:45:13.978Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/pitabwire.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}},"created_at":"2023-10-17T05:01:30.000Z","updated_at":"2024-01-06T20:04:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"0cfd7ab9-14ce-4006-b9b0-88d12df00807","html_url":"https://github.com/pitabwire/ansible_role_microceph","commit_stats":null,"previous_names":["pitabwire/ansible_role_microceph"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pitabwire/ansible_role_microceph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitabwire%2Fansible_role_microceph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitabwire%2Fansible_role_microceph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitabwire%2Fansible_role_microceph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitabwire%2Fansible_role_microceph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pitabwire","download_url":"https://codeload.github.com/pitabwire/ansible_role_microceph/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitabwire%2Fansible_role_microceph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278577931,"owners_count":26009701,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-10-06T07:59:23.787Z","updated_at":"2025-10-06T07:59:28.207Z","avatar_url":"https://github.com/pitabwire.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role: microceph\n\nRole installs a ceph cluster using [microceph](https://canonical-microceph.readthedocs-hosted.com/en/latest/)\n\n## Requirements\n\n* Ansible \u003e= 2.7\n* Linux Distribution\n    * Debian Family\n        * Ubuntu\n            * Xenial (16.04)\n            * Bionic (18.04)\n            * Focal (20.04) (untested)\n            * Jammy (22.04) (untested)\n    * Arch Linux (untested)\n\n## License\n\nMIT\n\n## Usage\n\n### Role Variables\n\nSome variables available in this role are listed here.  The full set is\ndefined in `[defaults/main.yml](defaults/main.yml)`.\n\n* `microceph_version`: Version to utilize, defaults value is `latest/edge`.\n* `microceph_cluster_nodes`: Hostgroup whose members will form ceph cluster\n* `microceph_seed_node`: Node name that will be used to start cluster formation\n* `microceph_encrypt_data`: Encrypt all the data in the microceph drive at rest see : [Full disk encryption](https://canonical-microceph.readthedocs-hosted.com/en/latest/explanation/fde-osd/) \n* `microceph_disk_devices`: List of all the devices the role should add as osds once the nodes join. Make sure they exist prior otherwise the playbook will skip.\n\n### Playbook example\n\n```yaml\n- hosts: servers\n  roles:\n    - role: pitabwire.microceph\n      vars:\n        microceph_cluster_nodes: ceph_nodes\n        microceph_seed_node: ceph-node-1\n        microceph_encrypt_data: False\n\n```\n\n\n### Increasing data nodes\n\nAdditional nodes to the cluster can be added at any time. All nodes in the `microceph_cluster_nodes` hostgroup \nwill run `microceph cluster join \u003cjoin token\u003e`, more info on this can be found here: [microceph join non primary node](https://canonical-microceph.readthedocs-hosted.com/en/latest/tutorial/multi-node/#join-the-non-primary-nodes-to-the-cluster).\n\n\n## Testing\n\n### Using Molecule wrapper and system Python\n\n* `./moleculew lint`\n* `./moleculew create`\n* `./moleculew list`\n* `./moleculew check`\n* `./moleculew test`\n\n### Using Python virtual environment\n\n* Set up virtual environment\n    ```\n    $ python3 -m venv venv\n    ```\n* Activate the environment\n    ```\n    $ . venv/bin/activate\n    ```\n* Install Molecule with lint and Docker options\n    ```\n    $ pip install molecule molecule-plugins[vagrant]\n    ```\n* Install up-to-date Ansible package if necessary\n    ```\n    $ pip install ansible\n    ```\n* Run the test commands:\n  * `molecule lint`\n  * `molecule create`\n  * `molecule list`\n  * `molecule check`\n  * `molecule test`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpitabwire%2Fansible_role_microceph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpitabwire%2Fansible_role_microceph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpitabwire%2Fansible_role_microceph/lists"}