-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move recipes to different names add contributing disable java * add source-distribution * fix lint * fix distribution typo * change install-unix modes to safer ones * move java + package installation to prerequesites * let chef manage the home directory of artifactory user * set directories without ::File.join * change zip_url and zip_checksum to package_* * change default run_list * reorder attributes + add new attributes for distribution installation * fix link in contribution * add suites for testing * Add helpers for package detection * change usage in recipes * update server.xml.erb template * update with tests, add missing installs and enables * rename stages + add concurrent to 2 * fix stage renaming * specify version, add missing service resource, * add excludes and fix bugs * change to concurrent 3 * fix yum repo and add install of package * add monthly integration test * add gpg check for yum repository * fix test for different os environments * add service test for runit_service, which is used in zip archives * add integration test for zip package * add changelog + bump metadata.rb * update changelog * only 1 test at a time * disable some kitchen tests * circle ci * retries 2 * add retry_delay as artifactory needs some more time for it * try killing apt lock * again * redo config * fix dokken start command + fix naming in header of recipe files * reenable tests * update changelog
- Loading branch information
1 parent
e6b5245
commit 4d7f671
Showing
18 changed files
with
509 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Contributing | ||
|
||
1. Fork the repository on Github | ||
2. Create a named feature branch (like `feature/add_foobar`) | ||
3. Write your change | ||
4. Write tests for your change (if applicable) | ||
5. Run the tests, ensuring they all pass | ||
6. Submit a Pull Request using Github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,35 @@ | ||
default['artifactory']['zip_url'] = 'http://dl.bintray.com/content/jfrog/artifactory/jfrog-artifactory-oss-5.2.1.zip' | ||
default['artifactory']['zip_checksum'] = '993d9abd188a6b1eaf4c762f201f0ba70f545ca68ad099f9a9a48bec3470d68d' | ||
# This file contains all possible attributes, which can be set | ||
# artifactory configurations | ||
default['artifactory']['home'] = '/var/lib/artifactory' | ||
default['artifactory']['log_dir'] = '/var/log/artifactory' | ||
default['artifactory']['catalina_base'] = ::File.join(node['artifactory']['home'], 'tomcat') | ||
default['artifactory']['java']['xmx'] = '1g' | ||
default['artifactory']['java']['xms'] = '512m' | ||
default['artifactory']['java']['extra_opts'] = '-XX:+UseG1GC' | ||
default['artifactory']['java']['jdk_version'] = 8 | ||
|
||
default['artifactory']['user'] = 'artifactory' | ||
default['artifactory']['group'] = 'artifactory' | ||
default['artifactory']['port'] = 8081 | ||
# default['artifactory']['max_threads'] = 200 | ||
default['artifactory']['shutdown_port'] = 8015 | ||
default['artifactory']['install_java'] = true | ||
|
||
# java configurations | ||
default['artifactory']['catalina_base'] = ::File.join(node['artifactory']['home'], 'tomcat') | ||
default['artifactory']['java']['xmx'] = '1g' | ||
default['artifactory']['java']['xms'] = '512m' | ||
default['artifactory']['java']['extra_opts'] = '-XX:+UseG1GC' | ||
default['artifactory']['java']['jdk_version'] = 8 | ||
|
||
# ajp configurations | ||
default['artifactory']['use_ajp'] = false | ||
default['artifactory']['ajp']['port'] = 8019 | ||
default['artifactory']['ajp']['maxThreads'] = 500 | ||
default['artifactory']['ajp']['minSpareThreads'] = 20 | ||
default['artifactory']['ajp']['enableLookups'] = false | ||
default['artifactory']['ajp']['backlog'] = 100 | ||
|
||
# can be 'distribution' (apt source / yum source) || 'binary' (rpm / deb) | ||
default['artifactory']['install_flavor'] = 'binary' | ||
# when set install_flavor = distribution | ||
default['artifactory']['edition'] = 'oss' # can be ce, oss, pro | ||
default['artifactory']['version'] = '6.8.7' | ||
|
||
# install_flavor = binary | ||
default['artifactory']['package_uri'] = 'http://dl.bintray.com/jfrog/artifactory/jfrog-artifactory-oss-6.8.4.zip' | ||
default['artifactory']['package_sha256'] = '4bbdb76cec091ba61b6d7bffc61b2432327f2e1375efb108468ee445cd5ed261' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module Artifactory | ||
module Cookbook | ||
module Helpers | ||
def file_ending | ||
package = node['artifactory']['package_uri'] | ||
File.extname(package) | ||
end | ||
|
||
def pack_name | ||
case node['artifactory']['edition'] | ||
when 'oss' | ||
'jfrog-artifactory-oss' | ||
when 'ce' | ||
'jfrog-artifactory-cpp-ce' | ||
when 'pro' | ||
'jfrog-artifactory-pro' | ||
end | ||
end | ||
|
||
def binary_file | ||
Chef::Config[:file_cache_path] + '/artifactory' + file_ending | ||
end | ||
end | ||
end | ||
end | ||
|
||
Chef::Recipe.include(Artifactory::Cookbook::Helpers) | ||
Chef::Resource.include(Artifactory::Cookbook::Helpers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# | ||
# Cookbook Name:: artifactory | ||
# Recipe:: deprecations | ||
# | ||
# Copyright (c) 2019 Patrick Schaumburg, Apache-2.0 | ||
|
||
# log "you are using the attribute node['artifactory']['zip_url'], which will be deprecated in future versions" do | ||
# level :warn | ||
# only_if node['artifactory']['zip_url'] | ||
# end | ||
# | ||
# log "you are using the attribute node['artifactory']['zip_checksum'], which will be deprecated in future versions" do | ||
# message "use node['artifactory']['package_checksum'] instead" | ||
# level :warn | ||
# only_if node['artifactory']['zip_checksum'] | ||
# end |
Oops, something went wrong.