{"id":42924993,"url":"https://github.com/tulibraries/ansible-role-solrcloud","last_synced_at":"2026-01-30T18:07:35.678Z","repository":{"id":38182772,"uuid":"193780573","full_name":"tulibraries/ansible-role-solrcloud","owner":"tulibraries","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-29T16:03:59.000Z","size":338,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-30T04:43:17.713Z","etag":null,"topics":["ansible-roles","solr"],"latest_commit_sha":null,"homepage":null,"language":"Jinja","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/tulibraries.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-06-25T20:42:54.000Z","updated_at":"2026-01-29T16:07:48.000Z","dependencies_parsed_at":"2026-01-29T18:11:26.281Z","dependency_job_id":null,"html_url":"https://github.com/tulibraries/ansible-role-solrcloud","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/tulibraries/ansible-role-solrcloud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tulibraries%2Fansible-role-solrcloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tulibraries%2Fansible-role-solrcloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tulibraries%2Fansible-role-solrcloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tulibraries%2Fansible-role-solrcloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tulibraries","download_url":"https://codeload.github.com/tulibraries/ansible-role-solrcloud/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tulibraries%2Fansible-role-solrcloud/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28917034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T16:37:38.804Z","status":"ssl_error","status_checked_at":"2026-01-30T16:37:37.878Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-roles","solr"],"created_at":"2026-01-30T18:07:35.177Z","updated_at":"2026-01-30T18:07:35.674Z","avatar_url":"https://github.com/tulibraries.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TU Libraries SolrCloud Ansible Role\n\n[![Build Status](https://travis-ci.com/tulibraries/ansible-role-solrcloud.svg?branch=main)](https://travis-ci.com/tulibraries/ansible-role-solrcloud)\n\nThis Ansible role installs an Apache SolrCloud cluster on Centos 7 boxes. It expects Java (tested with Java 8) is installed and a Zookeeper install is running.\n\n## Prerequisities\n\nTo execute this role:\n- Ansible 2.8.1 was used to write + test this role\n- Java 8 installed on hosts\n- Zookeeper (standalone or cluster) running on known IPs\n- Networking is setup to allow VMs in cluster to communicate with each other\n\n## Testing\n\n```\n$ pipenv install -r test-requirements.txt --python 2.7\n$ pipenv run molecule test\n```\n\n## Using in a Playbook\n\nCreate or add to your roles dependency file (e.g requirements.yml):\n\n```\n- src: tulibraries.ansible-role-solrcloud\n  name: solrcloud\n```\n\nInstall the role with ansible-galaxy command:\n\n```\nansible-galaxy install -r requirements.yml\n```\n\n## Usage\n\nInventory:\n\n```\n[solr]\nsolrcloud-stage-01 ansible_host=192.168.138.179\nsolrcloud-stage-02 ansible_host=192.168.156.231\nsolrcloud-stage-03 ansible_host=192.168.199.175\n```\n\nThen run the playbook:\n\n```\n\n- name: Solrcloud cluster setup\n  hosts: solr\n  sudo: yes\n  roles:\n    - role: solrcloud\n```\n\n## Variables\n\nYou need the following set in your playbook for your inventory(ies):\n- zookeeper_hosts: `[zk_1_ip, zk_2_ip, zk_3_ip]` (an array of zookeeper host IPs; include ports if non-standard)\n- solr_collections: `{ 'collection1': { 'shards': 1, 'replicas': 2, 'shards_per_node': 1 } }` (a dictionary of dictionaries for solrcloud collections to be created)\n- solr_collections_template_path: `{{ playbook_dir }}/templates/collections/` (where the playbook can find the solr configs, in directories per collection defined above)\n- solr_collections_transfer_mode: copy or synchronize - basically, copy or rsync the above collection configurations to the hosts for then loading to Zookeeper\n\nOther Variables are defined in `defaults/main.yml`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftulibraries%2Fansible-role-solrcloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftulibraries%2Fansible-role-solrcloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftulibraries%2Fansible-role-solrcloud/lists"}