Skip to content

Commit

Permalink
Merge pull request #138 from sermo-de-arboribus/solr-9-default-cores
Browse files Browse the repository at this point in the history
Adjust path for default cores in Solr 9
  • Loading branch information
geerlingguy authored Oct 5, 2023
2 parents a11102f + f470d6a commit 2a5d7ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ solr_opts: "$SOLR_OPTS -Dlog4j2.formatMsgNoLookups=true"
solr_cores:
- collection1

solr_default_core_path: "{% if solr_version.split('.')[0] < '9' %}{{ solr_install_path }}/example/files/conf/{% else %}{{ solr_install_path }}/server/solr/configsets/_default/conf/{% endif %}"

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

Check warning on line 32 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

32:121 [line-length] line too long (192 > 120 characters)

solr_config_file: /etc/default/{{ solr_service_name }}.in.sh

# Enable restart solr handler
Expand Down
2 changes: 1 addition & 1 deletion tasks/cores.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
with_items: "{{ solr_cores }}"

- name: Ensure core configuration directories exist.
command: "cp -r {{ solr_install_path }}/example/files/conf/ {{ solr_home }}/data/{{ item }}/"
command: "cp -r {{ solr_default_core_path }} {{ solr_home }}/data/{{ item }}/"
when: "item not in solr_cores_current.content"
with_items: "{{ solr_cores }}"
become: true
Expand Down

0 comments on commit 2a5d7ec

Please sign in to comment.