This is a Chef Cookbook to Create Yum/Apt Elastic Repository.
For Production environment, always prefer the most recent release.
cookbook 'elastic_repo', '~> 1.2.1'
cookbook 'elastic_repo', github: 'vkhatri/chef-elastic-repo', tag: 'v1.2.1'
https://github.com/vkhatri/chef-elastic-repo
- 6
- 7
Resource elastic_repo
setup apt
and yum
Elastic Repository.
Usage:
elastic_repo 'default'
-
version (String)
default: '7.6.2' -
description (String)
default: 'Elastic Packages Repository' -
gpg_key (String)
default: 'https://artifacts.elastic.co/GPG-KEY-elasticsearch' -
apt_uri (String, NilClass)
default:https://artifacts.elastic.co/packages/#{major_version}.x/apt
-
apt_components (Array)
default: %w[stable main] -
apt_distribution (String)
default: '' -
yum_baseurl (String, NilClass)
default:https://artifacts.elastic.co/packages/#{major_version}.x/yum
-
yum_gpgcheck (TrueClass, FalseClass)
default: true -
yum_enabled (TrueClass, FalseClass)
default: true -
yum_priority (String, NilClass)
default: %w[amazon].include?(node['platform_family']) ? '10' : nil -
yum_metadata_expire (String)
default: '3h'
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests (
rake & rake knife
), ensuring they all pass - Write new resource/attribute description to
README.md
- Write description about changes to PR
- Submit a Pull Request using Github
Authors:: Virender Khatri and Contributors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.