lean_delivery.solr_standalone
Solr Installation
Zusammenfassung
Diese Rolle:
- Installiert Solr standalone auf CentOS 7, Ubuntu oder Windows.
- Konfiguriert SSL für Solr 7.x und 8.x.
- Konfiguriert die Authentifizierung für Solr 7.x und 8.x.
- Konfiguriert Solr.
- Unterstützte Solr-Versionen: 6.x - 8.x. Die letzte getestete Version ist 8.0.0.
Für zusätzliche Konfigurationen, wie Master- oder Slave-Modus, verwenden Sie die Rollen:
- solr-master (lean-delivery.ansible-role-solr-master)
- solr-slave (lean-delivery.ansible-role-solr-slave)
- solr-cloud (lean-delivery.ansible-role-solr-cloud)
- zur Integration von SAP-Hybris und Solr mit Hybris-Extras (lean-delivery.ansible-role-solr-hybris-config)
Anforderungen
- Minimale Version von Ansible für die Installation: 2.7
- Java 8
- Unterstützte Betriebssysteme:
- CentOS
- 7
- Ubuntu
- Debian
- Windows
- "Windows Server 2008"
- "Windows Server 2008 R2"
- "Windows Server 2012"
- "Windows Server 2012 R2"
- "Windows Server 2016"
- "Windows Server 2019"
- "Windows 7"
- "Windows 8.1"
- "Windows 10"
- CentOS
Rollvariablen
solr_version
- entspricht der verfügbaren Version auf https://archive.apache.org/dist/lucene/solr/. Getestete Versionen 6.x-8.xStandard:
8.0.0
solr_use_java_version_8
- falls Wahr, wird Solr auf Java-Version 8 oder früher installiert. Bei späteren Versionen auf Falsch setzen.Standard:
True
solr_url
- Root-URL zum Herunterladen von SolrStandard:
http://archive.apache.org/dist/lucene/solr
solr_distr_url
- URL zur Zip-DateiStandard:
{{ solr_url }}/{{ solr_version }}/solr-{{ solr_version }}.zip
solr_host
- Solr-ServernameStandard:
{{ ansible_fqdn }}
solr_dest_main_path
- Rootverzeichnis zur Speicherung des Solr-OrdnersStandard:
/opt
für Linux-BetriebssystemeStandard:
C:\Solr
für Windows-Betriebssystemesolr_dest_path
- Pfad zum Solr-OrdnerStandard:
{{ solr_dest_main_path }}/solr-{{ solr_version }}
solr_change_default_password
- um das Standardpasswort für den Solr-Benutzer zu ändern (wird solr_auth_pass sein)Standard:
True
solr_auth_configure
- Authentifizierung aktivierenStandard:
True
solr_auth_type
- AuthentifizierungstypStandard:
basic
solr_auth_user
- Standard-Solr-BenutzerStandard:
solrserver
solr_auth_pass
- Standard-Solr-BenutzerpasswortStandard:
server123
solr_default_auth_user
- Standard-Solr-BenutzerStandard:
solr
solr_default_auth_pass
- Standard-Solr-BenutzerpasswortStandard:
SolrRocks
solr_authentication_opts
- Solr-AuthentifizierungsoptionenStandard:
-Dbasicauth={{ solr_auth_user }}:{{ solr_auth_pass }}
solr_insh_default
- Solr in.sh-OrdnerStandard:
/etc/default/solr.in.sh
solr_java_xms
- Heap-GrößeStandard:
512m
solr_java_xmx
- Heap-GrößeStandard:
512m
solr_master_enable_jmx
- JMX für Solr aktivierenStandard:
false
solr_additional_opts
- Solr-OptionenStandard:
-Xss256k
solr_user
- OS-Benutzer zur Ausführung des Solr-DienstesStandard:
solr
solr_group
- OS-Gruppe des BenutzersStandard:
solr
solr_port
- Port für den Start von SolrStandard:
8983
solr_service_name
- Name des Solr-DienstesStandard:
solr
solr_base_path
- Pfad zum Solr-BasisverzeichnisStandard:
/var/solr
solr_home
- Pfad zu SOLR_HOMEStandard:
{{ solr_base_path }}/data
solr_with_systemd
- um Solr als Dienst auszuführenStandard:
True
solr_logs_dir
- Pfad zur Speicherung von ProtokollenStandard:
{{ solr_base_path }}/logs
solr_wait_for_zk
- Timeout für die Wiederverbindung zum Zookeeper (in Sekunden)Standard:
30
solr_client_timeout
- ZooKeeper-Client-Timeout (im SolrCloud-Modus)Standard:
15000
solr_timezone
- Zeitzone für den Solr-ServerStandard:
UTC
solr_service_restart
- Option zum Neustarten des Solr-DienstesStandard:
always
solr_service_start
- um den Solr-Dienst am Ende der Rolle/Playbook zu startenStandard:
True
solr_service_autostart
- Solr-Dienst automatisch starten.Standard:
True
solr_copy_default_configsets
- OOTB-Konfigurationssets in den {{ solr_home }}/configsets-Ordner kopierenStandard:
False
https://lucene.apache.org/solr/guide/7_1/enabling-ssl.html
solr_local_keystore
- falls Wahr - um nach dem Keystore beim Ansible-Host unter {{ solr_local_keystore_path }} zu suchen. Wenn Falsch - nach dem Keystore auf dem Remote-Host suchen.Standard:
True
solr_local_keystore_path
- Pfad zur lokalen Keystore-Datei (um keinen selbstsignierten zu erstellen)Standard:
{{ role_path }}/files/{{ solr_ssl_key_store_name }}
solr_ssl_configure
- SSL konfigurierenStandard:
True
solr_ssl_key_size
- Schlüsselgröße des ZertifikatsStandard:
4096
solr_ssl_key_store_path
- Verzeichnis zur Speicherung des KeystoresStandard:
{{ solr_dest_path }}/server/solr
solr_ssl_key_store_name
- Name des Keystores. Wenn eine Datei mit diesem Namen im Rollen-Ordner/files vorhanden ist, wird sie als Keystore verwendet.Standard:
solr-ssl.keystore.jks
solr_ssl_key_store
- Pfad zum Solr-Keystore.Standard:
{{ solr_ssl_key_store_path }}/{{ solr_ssl_key_store_name }}
solr_ssl_key_store_password
- Passwort für den KeystoreStandard:
123456
solr_ssl_trust_store
- Pfad zum Trust-KeystoreStandard:
{{ solr_ssl_key_store_path }}/{{ solr_ssl_key_store_name }}
solr_ssl_trust_store_password
- Passwort für den vertrauenswürdigen KeystoreStandard:
123456
solr_ssl_need_client_auth
- Einstellungen zur Client-AuthentifizierungStandard:
false
solr_ssl_want_client_auth
- Einstellungen zur Client-AuthentifizierungStandard:
false
solr_ssl_key_store_type
- Keystore-TypStandard:
JKS
solr_ssl_trust_store_type
- Pfad zum vertrauenswürdigen KeystoreStandard:
JKS
solr_ssl_check_peer_name
- Wenn dies auf Falsch gesetzt ist, kann es nützlich sein, diese Prüfungen zu deaktivieren, wenn ein Zertifikat auf vielen Hosts wiederverwendet wird.Standard:
true
solr_ssl_certificate_provider
- nur für Linux-Betriebssysteme. https://docs.ansible.com/ansible/latest/openssl_certificate_module.htmlStandard:
selfsigned
solr_ca_domain
- Zertifikats-DomainnameStandard:
example.com
local_cert_file_path
- Pfad zum privaten ZertifikatStandard:
/etc/pki/tls/private
für RHEL-basierteStandard:
/etc/ssl/private
für Debian-basiertesolr_local_pkey_file_name
- Name des privaten ZertifikatsStandard:
{{ ansible_hostname }}.ca-pkey.pem
local_cert_file_path
- Pfad zum öffentlichen ZertifikatStandard:
/etc/pki/tls/certs
für RHEL-basierteStandard:
/etc/ssl/certs
für Debian-basiertesolr_local_cert_file_name
- Name des öffentlichen ZertifikatsStandard:
{{ ansible_hostname }}.ca-cert.pem
solr_set_limits
- um Limits festzulegenStandard:
True
solr_open_files_limit
- Limit für offene Dateien in LinuxStandard:
65000
solr_max_processes_limit
- Maximalwert für Prozesse in LinuxStandard:
65000
Windows-Variablen
solr_win_temp_dir
- temporäres VerzeichnisStandard:
C:\Windows\Temp
solr_win_ssl_subj
- CSR-SubjektStandard:
/C=BY/ST=Minsk/L=Minsk/O=O/OU=IT/CN={{ solr_ca_domain }}
Beispielinventar
[solr]
solr.example.com
[solrwin]
solrwin.example.com
[solrwin:vars]
ansible_user=admin
ansible_password=password
ansible_connection=winrm
ansible_winrm_server_cert_validation=ignore
Beispiel-Playbook
- name: Solr installieren und konfigurieren
hosts: solr
vars:
solr_change_default_password: False
roles:
- role: lean_delivery.java
- role: lean_delivery.solr_standalone
Lizenz
Apache
Autoreninformation
autoren:
- Lean Delivery Team team@lean-delivery.com
Lean Delivery Solr installation and configurationn
ansible-galaxy install lean_delivery.solr_standalone