-
Notifications
You must be signed in to change notification settings - Fork 2
/
reindex-everything.yml
30 lines (27 loc) · 1.02 KB
/
reindex-everything.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
# reindex everything starting from fedora
- name: Reindex everything
hosts:
- main
- standalone
become: true
become_user: app
tasks:
- name: Index fedora into vecnet solr
shell: >
source /etc/profile.d/chruby.sh
&& chruby 2.0.0-p353
&& exec bundle exec rake RAILS_ENV={{ rails_env }} solrizer:fedora:solrize_objects
chdir=/opt/vecnet-dl/current
- name: Index vecnet solr into discovery solr
shell: >
source /etc/profile.d/chruby.sh
&& chruby 2.0.0-p353
&& exec bundle exec ./script/harvest-dl.rb https://{{ site_fqdn }} http://localhost:8081/solr/discovery
chdir=/opt/vecnet-discovery/current
- name: Index simulations into discovery solr
shell: >
source /etc/profile.d/chruby.sh
&& chruby 2.0.0-p353
&& exec bundle exec ./script/harvest-ci.rb https://ci-qa.vecnet.org https://dl.vecnet.org http://localhost:8081/solr/discovery
chdir=/opt/vecnet-discovery/current