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
2fbf3b45
Commit
2fbf3b45
authored
8 years ago
by
Stefan Galinski
Browse files
Options
Downloads
Patches
Plain Diff
[FEATURE] Xenial compatibility
parent
a3292373
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
attributes/default.rb
+24
-0
24 additions, 0 deletions
attributes/default.rb
metadata.rb
+1
-1
1 addition, 1 deletion
metadata.rb
providers/app.rb
+3
-3
3 additions, 3 deletions
providers/app.rb
with
28 additions
and
4 deletions
attributes/default.rb
+
24
−
0
View file @
2fbf3b45
if
node
[
'platform_version'
]
==
'16.04'
default
[
'tomcat'
][
'base_version'
]
=
8
default
[
'java'
][
'jdk_version'
]
=
8
else
default
[
'tomcat'
][
'base_version'
]
=
6
default
[
'java'
][
'jdk_version'
]
=
7
default
[
'java'
][
'install_flavor'
]
=
'oracle'
default
[
'java'
][
'oracle'
][
'accept_oracle_download_terms'
]
=
true
end
default
[
'tomcat'
][
'base_instance'
]
=
"tomcat
#{
node
[
'tomcat'
][
'base_version'
]
}
"
default
[
'tomcat'
][
'packages'
]
=
[
"tomcat
#{
node
[
'tomcat'
][
'base_version'
]
}
"
]
default
[
'tomcat'
][
'deploy_manager_packages'
]
=
[
"tomcat
#{
node
[
'tomcat'
][
'base_version'
]
}
-admin"
]
default
[
'tomcat'
][
'user'
]
=
"tomcat
#{
node
[
'tomcat'
][
'base_version'
]
}
"
default
[
'tomcat'
][
'group'
]
=
"tomcat
#{
node
[
'tomcat'
][
'base_version'
]
}
"
default
[
'tomcat'
][
'home'
]
=
"/usr/share/tomcat
#{
node
[
'tomcat'
][
'base_version'
]
}
"
default
[
'tomcat'
][
'base'
]
=
"/var/lib/tomcat
#{
node
[
'tomcat'
][
'base_version'
]
}
"
default
[
'tomcat'
][
'config_dir'
]
=
"/etc/tomcat
#{
node
[
'tomcat'
][
'base_version'
]
}
"
default
[
'tomcat'
][
'log_dir'
]
=
"/var/log/tomcat
#{
node
[
'tomcat'
][
'base_version'
]
}
"
default
[
'tomcat'
][
'tmp_dir'
]
=
"/tmp/tomcat
#{
node
[
'tomcat'
][
'base_version'
]
}
-tmp"
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
This diff is collapsed.
Click to expand it.
metadata.rb
+
1
−
1
View file @
2fbf3b45
...
...
@@ -10,4 +10,4 @@ issues_url 'https://gitlab.sgalinski.de/chef-cookbooks/typo3_solr/issues'
source_url
'https://gitlab.sgalinski.de/chef-cookbooks/typo3_solr'
depends
'apt'
depends
'tomcat'
,
'~> 2.3.1'
\ No newline at end of file
depends
'tomcat'
,
'~> 1.3.0'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
providers/app.rb
+
3
−
3
View file @
2fbf3b45
...
...
@@ -20,7 +20,7 @@ action :add do
plugin_uri
=
"https://github.com/TYPO3-Solr/solr-typo3-plugin/releases/download/release-
#{
new_resource
.
plugin
}
"
service
'tomcat'
do
service_name
'tomcat
6
'
service_name
node
[
'tomcat'
][
'base_instance'
]
supports
:restart
=>
true
,
:reload
=>
true
,
:status
=>
true
end
...
...
@@ -40,7 +40,7 @@ action :add do
end
execute
"decompress-solr-archive -
#{
new_resource
.
name
}
"
do
cwd
#{
Chef::Config['file_cache_path']
}
cwd
Chef
::
Config
[
'file_cache_path'
]
command
"tar -xzf apache-solr-
#{
new_resource
.
solr
}
.tar.gz"
creates
"
#{
Chef
::
Config
[
'file_cache_path'
]
}
/apache-solr-
#{
new_resource
.
solr
}
/dist/apache-solr-
#{
new_resource
.
solr
}
.war"
end
...
...
@@ -232,7 +232,7 @@ end
action
:remove
do
service
'tomcat'
do
service_name
'tomcat
6
'
service_name
node
[
'tomcat'
][
'base_instance'
]
supports
:restart
=>
true
,
:reload
=>
true
,
:status
=>
true
end
...
...
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