Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
typo3-solr
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chef Cookbooks
typo3-solr
Commits
7b782acc
Commit
7b782acc
authored
8 years ago
by
Markus Guenther
Browse files
Options
Downloads
Patches
Plain Diff
[FEATURE] Install tika server
parent
2fbf3b45
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
attributes/default.rb
+2
-1
2 additions, 1 deletion
attributes/default.rb
providers/app.rb
+10
-0
10 additions, 0 deletions
providers/app.rb
recipes/default.rb
+7
-0
7 additions, 0 deletions
recipes/default.rb
resources/app.rb
+1
-0
1 addition, 0 deletions
resources/app.rb
with
20 additions
and
1 deletion
attributes/default.rb
+
2
−
1
View file @
7b782acc
...
...
@@ -22,4 +22,5 @@ default['tomcat']['work_dir'] = "/var/cache/tomcat#{node['tomcat']['base_version
default
[
'tomcat'
][
'context_dir'
]
=
"
#{
node
[
'tomcat'
][
'config_dir'
]
}
/Catalina/localhost"
default
[
'tomcat'
][
'webapp_dir'
]
=
"/var/lib/tomcat
#{
node
[
'tomcat'
][
'base_version'
]
}
/webapps"
default
[
'typo3_solr'
][
'solr'
][
'solr_home'
]
=
'/srv/solr'
\ No newline at end of file
default
[
'typo3_solr'
][
'solr'
][
'solr_home'
]
=
'/srv/solr'
default
[
'typo3_solr'
][
'solr'
][
'tika_home'
]
=
'/srv/tika'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
providers/app.rb
+
10
−
0
View file @
7b782acc
...
...
@@ -18,6 +18,7 @@ action :add do
ext_solr_uri
=
"https://raw.githubusercontent.com/TYPO3-Solr/ext-solr/
#{
remote_branch
}
/
#{
resources_path
}
"
plugin_uri
=
"https://github.com/TYPO3-Solr/solr-typo3-plugin/releases/download/release-
#{
new_resource
.
plugin
}
"
tika_server_uri
=
"http://mirror.dkd.de/apache/tika"
service
'tomcat'
do
service_name
node
[
'tomcat'
][
'base_instance'
]
...
...
@@ -221,6 +222,15 @@ action :add do
only_if
{
Gem
::
Version
.
new
(
new_resource
.
plugin_lang
)
>
Gem
::
Version
.
new
(
'0.0.0'
)
}
end
# tika server
remote_file
"
#{
node
[
'typo3_solr'
][
'solr'
][
'tika_home'
]
}
/tika-server-
#{
new_resource
.
tika_server
}
"
do
source
"
#{
tika_server_uri
}
/tika-server-
#{
new_resource
.
tika_server
}
.jar"
mode
0550
notifies
:restart
,
'service[tomcat]'
,
:immediately
only_if
{
Gem
::
Version
.
new
(
new_resource
.
tika_server
)
>
Gem
::
Version
.
new
(
'0.0.0'
)
}
end
# reset directory access restrictions
execute
"chown -
#{
new_resource
.
name
}
"
do
...
...
This diff is collapsed.
Click to expand it.
recipes/default.rb
+
7
−
0
View file @
7b782acc
...
...
@@ -29,4 +29,11 @@ directory node['typo3_solr']['solr']['solr_home'] do
group
'root'
mode
0770
action
:create
end
directory
node
[
'typo3_solr'
][
'solr'
][
'tika_home'
]
do
owner
node
[
'tomcat'
][
'user'
]
group
'root'
mode
0770
action
:create
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resources/app.rb
+
1
−
0
View file @
7b782acc
...
...
@@ -2,6 +2,7 @@ actions :add, :remove
attribute
:name
,
:kind_of
=>
String
,
:name_attribute
=>
true
attribute
:solr
,
:kind_of
=>
String
,
:default
=>
'3.6.2'
attribute
:tika_server
,
:kind_of
=>
String
,
:default
=>
'0.0.0'
attribute
:extension
,
:kind_of
=>
String
,
:default
=>
'2.8'
attribute
:plugin
,
:kind_of
=>
String
,
:default
=>
'0.0.0'
attribute
:plugin_access
,
:kind_of
=>
String
,
:default
=>
'0.0.0'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment