From 1b767380d4d209d13993c4bb4db283d8fb07926e Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Fri, 27 Jan 2023 10:17:20 +0100 Subject: [PATCH] Release 2.2.0 --- .puppet-lint.rc | 2 -- .sync.yml | 8 ++++---- CHANGELOG.md | 12 ++++++++++++ Gemfile | 9 ++++----- REFERENCE.md | 47 ++++++++++++++++++++++++++++------------------- manifests/repo.pp | 3 +++ metadata.json | 2 +- 7 files changed, 52 insertions(+), 31 deletions(-) diff --git a/.puppet-lint.rc b/.puppet-lint.rc index dd8272c..02a3e71 100644 --- a/.puppet-lint.rc +++ b/.puppet-lint.rc @@ -1,3 +1 @@ --fail-on-warnings ---no-parameter_documentation-check ---no-parameter_types-check diff --git a/.sync.yml b/.sync.yml index 35424a9..130aaeb 100644 --- a/.sync.yml +++ b/.sync.yml @@ -1,5 +1,5 @@ --- -Gemfile: - optional: - ':test': - - gem: puppet-lint-param-docs +.puppet-lint.rc: + enabled_lint_checks: + - parameter_documentation + - parameter_types diff --git a/CHANGELOG.md b/CHANGELOG.md index 95a2315..f50748e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file. Each new release typically also includes the latest modulesync defaults. These should not affect the functionality of the module. +## [v2.2.0](https://github.com/voxpupuli/puppet-hashi_stack/tree/v2.2.0) (2023-01-27) + +[Full Changelog](https://github.com/voxpupuli/puppet-hashi_stack/compare/v2.1.0...v2.2.0) + +**Implemented enhancements:** + +- add toggle for enabling yum repo [\#21](https://github.com/voxpupuli/puppet-hashi_stack/pull/21) ([wimkorevaar](https://github.com/wimkorevaar)) + +**Merged pull requests:** + +- use new gpg key [\#22](https://github.com/voxpupuli/puppet-hashi_stack/pull/22) ([BDelacour](https://github.com/BDelacour)) + ## [v2.1.0](https://github.com/voxpupuli/puppet-hashi_stack/tree/v2.1.0) (2022-08-28) [Full Changelog](https://github.com/voxpupuli/puppet-hashi_stack/compare/v2.0.1...v2.1.0) diff --git a/Gemfile b/Gemfile index 2125027..7cd2f17 100644 --- a/Gemfile +++ b/Gemfile @@ -4,11 +4,10 @@ source ENV['GEM_SOURCE'] || 'https://rubygems.org' group :test do - gem 'voxpupuli-test', '~> 5.4', :require => false - gem 'coveralls', :require => false - gem 'simplecov-console', :require => false - gem 'puppet_metadata', '~> 2.0', :require => false - gem 'puppet-lint-param-docs', :require => false + gem 'voxpupuli-test', '~> 5.4', :require => false + gem 'coveralls', :require => false + gem 'simplecov-console', :require => false + gem 'puppet_metadata', '~> 2.0', :require => false end group :development do diff --git a/REFERENCE.md b/REFERENCE.md index 0f08b44..a61d1a8 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -6,11 +6,11 @@ ### Classes -* [`hashi_stack::repo`](#hashi_stackrepo): Set up the package repository for the HashiCorp Stack components +* [`hashi_stack::repo`](#hashi_stack--repo): Set up the package repository for the HashiCorp Stack components ## Classes -### `hashi_stack::repo` +### `hashi_stack::repo` This class installs the hashicorp repository @@ -36,23 +36,24 @@ package { 'packer': The following parameters are available in the `hashi_stack::repo` class: -* [`priority`](#priority) -* [`proxy`](#proxy) -* [`key_id`](#key_id) -* [`key_source`](#key_source) -* [`description`](#description) -* [`rpm_base`](#rpm_base) -* [`repo_gpgcheck`](#repo_gpgcheck) +* [`priority`](#-hashi_stack--repo--priority) +* [`proxy`](#-hashi_stack--repo--proxy) +* [`key_id`](#-hashi_stack--repo--key_id) +* [`key_source`](#-hashi_stack--repo--key_source) +* [`description`](#-hashi_stack--repo--description) +* [`rpm_base`](#-hashi_stack--repo--rpm_base) +* [`repo_gpgcheck`](#-hashi_stack--repo--repo_gpgcheck) +* [`repo_enabled`](#-hashi_stack--repo--repo_enabled) -##### `priority` +##### `priority` Data type: `Optional[Integer]` A numeric priority for the repo, passed to the package management system -Default value: ``undef`` +Default value: `undef` -##### `proxy` +##### `proxy` Data type: `String` @@ -60,15 +61,15 @@ The URL of a HTTP proxy to use for package downloads (YUM only) Default value: `'absent'` -##### `key_id` +##### `key_id` Data type: `String` GPG key to authenticate Apt package signatures. -Default value: `'E8A032E094D8EB4EA189D270DA418C88A3219F7B'` +Default value: `'798AEC654E5C15428C8E42EEAA16FCBCA621E701'` -##### `key_source` +##### `key_source` Data type: `Stdlib::HTTPSUrl` @@ -76,7 +77,7 @@ The location of an existing GPG key file to copy. Default value: `'https://apt.releases.hashicorp.com/gpg'` -##### `description` +##### `description` Data type: `String` @@ -84,7 +85,7 @@ Repository description Default value: `'HashiCorp package repository.'` -##### `rpm_base` +##### `rpm_base` Data type: `String` @@ -92,11 +93,19 @@ Base URL for the Yum repository Default value: `'https://rpm.releases.hashicorp.com'` -##### `repo_gpgcheck` +##### `repo_gpgcheck` Data type: `Integer[0,1]` - +enables gpg validation of packages from the repo Default value: `0` +##### `repo_enabled` + +Data type: `Integer[0,1]` + +enables/disables the repository + +Default value: `1` + diff --git a/manifests/repo.pp b/manifests/repo.pp index 471013c..15d64a4 100644 --- a/manifests/repo.pp +++ b/manifests/repo.pp @@ -18,6 +18,9 @@ # @param key_source The location of an existing GPG key file to copy. # @param description Repository description # @param rpm_base Base URL for the Yum repository +# @param repo_gpgcheck enables gpg validation of packages from the repo +# @param repo_enabled enables/disables the repository +# class hashi_stack::repo ( Optional[Integer] $priority = undef, String $proxy = 'absent', diff --git a/metadata.json b/metadata.json index a74e953..9d7dd8c 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "puppet-hashi_stack", - "version": "2.1.1-rc0", + "version": "2.2.0", "author": "Vox Pupuli", "summary": "This module contains shared code for various HashiCorp modules", "license": "AGPL-3.0",