Commit 561a010aeb26e74aeb6be25e2ee33f2f77c9eb71

Authored by Gustavo Jaruga Cruz
1 parent 948a81b5

Add solr schema after configuration changes

Signed-off-by: Gustavo Jaruga Cruz <darksshades@gmail.com>
Signed-off-by: Matheus Faria <matheus.sousa.faria@gmail.com>
Showing 1 changed file with 10 additions and 1 deletions   Show diff stats
cookbooks/colab/recipes/default.rb
@@ -232,16 +232,25 @@ end @@ -232,16 +232,25 @@ end
232 # the package don't know about installed plugins 232 # the package don't know about installed plugins
233 # collectstatic needs to run after package install 233 # collectstatic needs to run after package install
234 # and plugins instantiated. Same for migrate. 234 # and plugins instantiated. Same for migrate.
235 -execute 'colab-admin migrate'  
236 execute 'colab-admin:collectstatic' do 235 execute 'colab-admin:collectstatic' do
237 command 'colab-admin collectstatic --noinput' 236 command 'colab-admin collectstatic --noinput'
238 end 237 end
239 238
  239 +execute 'colab-admin:build_solr_schema' do
  240 + command 'colab-admin build_solr_schema > /usr/share/solr/example/solr/collection1/conf/schema.xml'
  241 + user 'root'
  242 +end
  243 +
240 service 'colab' do 244 service 'colab' do
241 action [:enable, :start] 245 action [:enable, :start]
242 supports :restart => true 246 supports :restart => true
243 end 247 end
244 248
  249 +service 'solr' do
  250 + action [:enable, :start]
  251 + supports :restart => true
  252 +end
  253 +
245 execute 'create-admin-token-colab' do 254 execute 'create-admin-token-colab' do
246 command "colab-admin loaddata admin-gitlab.json" 255 command "colab-admin loaddata admin-gitlab.json"
247 256