{"id":21217027,"url":"https://github.com/ansible-collections/community.cassandra","last_synced_at":"2025-07-10T11:33:05.825Z","repository":{"id":38028681,"uuid":"240054958","full_name":"ansible-collections/community.cassandra","owner":"ansible-collections","description":"Cassandra Ansible Collection","archived":false,"fork":false,"pushed_at":"2025-04-22T18:22:03.000Z","size":807,"stargazers_count":28,"open_issues_count":10,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T18:51:32.661Z","etag":null,"topics":["ansible-collection","cassandra","database","nosql"],"latest_commit_sha":null,"homepage":"http://galaxy.ansible.com/community/cassandra","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ansible-collections.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-02-12T16:03:36.000Z","updated_at":"2025-03-07T14:45:04.000Z","dependencies_parsed_at":"2023-01-30T04:16:17.509Z","dependency_job_id":"2f6125c6-7e61-41ec-bc4b-87f13d6a8199","html_url":"https://github.com/ansible-collections/community.cassandra","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/ansible-collections/community.cassandra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-collections%2Fcommunity.cassandra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-collections%2Fcommunity.cassandra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-collections%2Fcommunity.cassandra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-collections%2Fcommunity.cassandra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansible-collections","download_url":"https://codeload.github.com/ansible-collections/community.cassandra/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-collections%2Fcommunity.cassandra/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264573302,"owners_count":23630463,"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-collection","cassandra","database","nosql"],"created_at":"2024-11-20T21:56:44.560Z","updated_at":"2025-07-10T11:33:05.330Z","avatar_url":"https://github.com/ansible-collections.png","language":"Python","funding_links":[],"categories":["Packages"],"sub_categories":["Tools"],"readme":"# Cassandra Collection\n![CI](https://github.com/ansible-collections/community.cassandra/workflows/CI/badge.svg)\n![CI_roles](https://github.com/ansible-collections/community.cassandra/workflows/CI_roles/badge.svg)\n[![Codecov](https://img.shields.io/codecov/c/github/ansible-collections/community.cassandra)](https://codecov.io/gh/ansible-collections/community.cassandra)\n![Build \u0026 Publish Collection](https://github.com/ansible-collections/community.cassandra/workflows/Build%20\u0026%20Publish%20Collection/badge.svg)\n\nThis collection called `cassandra` aims at providing all Ansible modules allowing to interact with Apache Cassandra.\n\nAs this is an independent Collection, it can be released on it's own release cadance.\n\nIf you like this collection please give us a rating on [Ansible Galaxy](https://galaxy.ansible.com/community/cassandra).\n\n## Collection contents\n\n### Roles\n\nThese roles prepare servers with Debian-based and RHEL-based distributions to run Cassandra.\n\n- `cassandra_firewall`- Manage the firewall on Cassandra nodes.\n- `cassandra_install`- Install Cassandra.\n- `cassandra_linux`- Configure Linux OS Settings for Cassandra.\n- `cassandra_repository`- Configures a package repository for Cassandra on Debian and RedHat based platforms.\n\n#### Modules\n\n- `cassandra_assassinate`- Run the assassinate command against a node.\n- `cassandra_autocompaction`- Enables or disables autocompaction.\n- `cassandra_backup`- Enables or disables incremental backup.\n- `cassandra_batchlogreplaythrottle`- Sets the batch log replay throttle.\n- `cassandra_binary`- Enables or disables the binary protocol.\n- `cassandra_cleanup`- Runs cleanup on a Cassandra node.\n- `cassandra_concurrency`- Manage concurrency parameters on the Cassandra node.\n- `cassandra_compact`- Manage compaction on the Cassandra node.\n- `cassandra_compactionthreshold`- Sets the compaction threshold.\n- `cassandra_compactionthroughput`- Sets the compaction throughput.\n- `cassandra_cqlsh`- Run cql commands via the clqsh shell.\n- `cassandra_decommission`- Deactivates a node by streaming its data to another node.\n- `cassandra_drain`- Drains a Cassandra node.\n- `cassandra_flush`- Flushes one or more tables from the memtable to SSTables on disk.\n- `cassandra_fullquerylog`-  Manages the full query log feature.\n- `cassandra_garbagecollect`- Removes deleted data from one or more tables. \n- `cassandra_gossip`- Enables or disables gossip.\n- `cassandra_handoff`- Enables or disables the storing of future hints on the current node.\n- `cassandra_interdcstreamthroughput`- Sets the inter-dc stream throughput.\n- `cassandra_invalidatecache`- Invalidates the various caches on the Cassandra node.\n- `cassandra_keyspace`- Manage keyspaces on your Cassandra cluster.\n- `cassandra_maxhintwindow`- Set the specified max hint window in ms.\n- `cassandra_reload`-  Reloads various objects into the local node.\n- `cassandra_removenode`- Removes a node by the given host id from the cluster.\n- `cassandra_role`- Manage roles on your Cassandra Cluster.\n- `cassandra_schema`- Validates the schema version as seen from the node.\n- `cassandra_status`- Validates the status of the cluster as seen from the node.\n- `cassandra_stopdaemon`- Stops the Cassandra daemon.\n- `cassandra_streamthroughput`- Sets the stream throughput.\n- `cassandra_table`- Create or drop tables on a Cassandra Keyspace.\n- `cassandra_thrift`- Enables or disables the Thrift server.\n- `cassandra_timeout`- Manages the timeout on the Cassandra node. \n- `cassandra_traceprobability`- Sets the trace probability.\n- `cassandra_truncatehints`- Truncate all hints on the local node, or truncate hints for the endpoint(s) specified.\n- `cassandra_upgradesstables`- Upgrade SSTables which are not on the current Cassandra version.\n- `cassandra_verify`- Checks the data checksum for one or more tables.\n\n## Module support for Consistency Level\n\nThe pure-python modules, currently cassandra_role, cassandra_keyspace \u0026 cassandra_table all have a consistency_level parameter, through which the consistency level can be changed. Not all consistency levels are supported by read and write. The table below summarizes this.\n\n| **Consistency Level**   | **Read** | **Write** |\n|-------------------------|----------|-----------|\n| **ANY**                 | No       | Yes       |\n| **ONE**                 | Yes      | Yes       |\n| **TWO**                 | Yes      | Yes       |\n| **THREE**               | Yes      | Yes       |\n| **QUORUM**              | Yes      | Yes       |\n| **ALL**                 | Yes      | Yes       |\n| **LOCAL_ONE**           | Yes      | Yes       |\n| **LOCAL_QUORUM**        | Yes      | Yes       |\n| **EACH_QUORUM**         | No       | Yes       |\n| **SERIAL**              | Yes      | No        |\n| **LOCAL_SERIAL**        | Yes      | No        |\n\nIf the chosen consistency level is not supported, by either read or write, then the default *LOCAL_ONE* is used.\n\n## Supported Cassandra Versions\n\n* 4.0.X\n* 3.11.X\n* ~~2.2.X~~ Dropped on 21.10.2021.\n\n## GitHub workflow\n\n* Maintainers would be members of this GitHub Repo.\n* Branch protections could be used to enforce 1 (or 2) reviews from relevant maintainers [CODEOWNERS](.github/CODEOWNERS)\n\n## Contributing\n\nAny contribution is welcome and we only ask contributors to:\n* Provide *at least* integration tests for any contribution.\n* Create an issues for any significant contribution that would change a large portion of the code base.\n\n## Running integration tests locally\n\nClone the collection git project. The ansible-test tool requires a specific directory setup to function correctly so please follow carefully.\n\n```\ncd \u0026\u0026 mkdir -p git/ansible_collections/community\ngit clone https://github.com/ansible-collections/community.cassandra.git ./ansible_collections/community/cassandra\ncd ./git/ansible_collections/community/cassandra\n```\n\nCreate a virtual environment\n\n```\nvirtualenv venv\nsource venv/bin/activate\npip install -r requirements-3.6.txt\n```\n\nRun all tests\n\n```\nansible-test integration --docker ubuntu1804 -v --color --python 3.6\n```\n\nRun tests just for the cassandra_role module\n\n```\nansible-test integration --docker ubuntu1804 -v --color --python 3.6 cassandra_role\n```\n\n\n## License\n\nGNU General Public License v3.0 or later\n\nSee LICENCING to see the full text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansible-collections%2Fcommunity.cassandra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansible-collections%2Fcommunity.cassandra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansible-collections%2Fcommunity.cassandra/lists"}