Skip to content

Commit 0007b36

Browse files
committed
Update to PDK 1.16.0, migrate changelog
This PR updates .sync.yml with multiple PDK settings including setting up the github_changelog_generator. It also migrates the old CHANGELOG.md to HISTORY.md which is then consumed by `pdk bundle exec rake changelog` This commit is in preparation for doing the next Forge release.
1 parent 4310ef4 commit 0007b36

File tree

10 files changed

+291
-111
lines changed

10 files changed

+291
-111
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.sync.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
---
2+
.gitlab-ci.yml:
3+
delete: true
24
.rubocop.yml:
35
include_todos: true
4-
5-
spec/spec_helper.rb:
6-
mock_with: ':mocha'
7-
86
.travis.yml:
97
simplecov: true
8+
appveyor.yml:
9+
delete: true
10+
Gemfile:
11+
optional:
12+
':development':
13+
- gem: 'github_changelog_generator'
14+
version: '~> 1.15.0'
15+
Rakefile:
16+
changelog_version_tag_pattern: 'v%s'
17+
changelog_since_tag: '1.2.0'
18+
requires:
19+
- 'puppet-strings/tasks'
20+
spec/spec_helper.rb:
21+
mock_with: ':mocha'
22+
coverage_report: true

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ cache: bundler
55
before_install:
66
- bundle -v
77
- rm -f Gemfile.lock
8-
- gem update --system $RUBYGEMS_VERSION
8+
- "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
9+
- "# See https://github.com/puppetlabs/pdk-templates/commit/705154d5c437796b821691b707156e1b056d244f for an example of how this was used"
10+
- "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
11+
- '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
912
- gem --version
1013
- bundle -v
1114
script:

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
# Change log
2+
3+
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
4+
5+
## [v1.3.0](https://github.com/puppetlabs/puppetlabs-lvm/tree/v1.3.0) (2020-02-11)
6+
7+
[Full Changelog](https://github.com/puppetlabs/puppetlabs-lvm/compare/v1.3.0...v1.3.0)
8+
9+
### Added
10+
11+
- volume\_group type does not handle passing of physical\_volumes as a hash [\#219](https://github.com/puppetlabs/puppetlabs-lvm/pull/219) ([dacron](https://github.com/dacron))
12+
13+
### Fixed
14+
15+
- Make lv that is a substring of a vg work [\#244](https://github.com/puppetlabs/puppetlabs-lvm/pull/244) ([genebean](https://github.com/genebean))
16+
- Revert "volume\_group type does not handle passing of physical\_volumes as a hash" [\#238](https://github.com/puppetlabs/puppetlabs-lvm/pull/238) ([tphoney](https://github.com/tphoney))
17+
18+
## [v1.3.0](https://github.com/puppetlabs/puppetlabs-lvm/tree/v1.3.0) (2019-05-31)
19+
20+
[Full Changelog](https://github.com/puppetlabs/puppetlabs-lvm/compare/1.2.0...v1.3.0)
21+
22+
### Fixed
23+
24+
- \(MODULES-9004\) Resize XFS file system by mount point, not by volume [\#232](https://github.com/puppetlabs/puppetlabs-lvm/pull/232) ([foofoo-2](https://github.com/foofoo-2))
25+
126
## Release 1.2.0
227
### Summary
328
This release is a roll up of minor bugfixes.
@@ -223,3 +248,6 @@ fistful of bugfixes too which should help RHEL5 users.
223248
- Allow for physical_volumes and volume_groups that change as system lives.
224249
- On RHEL 5 family systems ext4 filesystems can not be resized using resize2fs.
225250
- Suppress facter warnings on systems that don't support LVM.
251+
252+
253+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*

Gemfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ group :development do
2424
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
2525
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
2626
gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
27-
gem "puppet-module-posix-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
28-
gem "puppet-module-posix-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
29-
gem "puppet-module-win-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
30-
gem "puppet-module-win-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
27+
gem "puppet-module-posix-default-r#{minor_version}", '~> 0.4', require: false, platforms: [:ruby]
28+
gem "puppet-module-posix-dev-r#{minor_version}", '~> 0.4', require: false, platforms: [:ruby]
29+
gem "puppet-module-win-default-r#{minor_version}", '~> 0.4', require: false, platforms: [:mswin, :mingw, :x64_mingw]
30+
gem "puppet-module-win-dev-r#{minor_version}", '~> 0.4', require: false, platforms: [:mswin, :mingw, :x64_mingw]
31+
gem "github_changelog_generator", '~> 1.15.0', require: false
3132
end
3233

3334
puppet_version = ENV['PUPPET_GEM_VERSION']

HISTORY.md

Lines changed: 225 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
1+
## Release 1.2.0
2+
### Summary
3+
This release is a roll up of minor bugfixes.
4+
5+
### Added
6+
- The upper bound for the stdlib dependency has been increased to 6.0.0
7+
- The module mount_core has been added as a dependency after having been removed from the puppet core.
8+
- Support added for Puppet 5 and 6.
9+
10+
### Bugfixes
11+
- Test code left over from previous work has been removed.
12+
- Fix added so that attempts are no longer made to run lvm commands when they are not supported.
13+
- Rubygem version pinned on travis when ruby version less than 2.3.0.
14+
15+
## Release 1.1.0
16+
### Summary
17+
This is a feature release in order to add facts, functions, tasks and plans alongside some smaller bugfixes and additions.
18+
19+
### Added
20+
- Functions added for onverting to and from bytes.
21+
- Tasks added for common actions that use types and providors.
22+
- Plan for one touch expanding, expanded.
23+
- Support has been added for LVM thin volumes.
24+
- Facts have been structured.
25+
- Provider modified to allow `puppet resource` to work with `logical_volumes`.
26+
- LVM providers have been confined to linux.
27+
28+
### Bugfixes
29+
- Redundant code removed from facts.
30+
- Fixed issues that were causing compilation to fail in tests.
31+
32+
## Release 1.0.1
33+
### Summary
34+
This release is a roll up of minor bugfixes.
35+
36+
### Fixed
37+
- Don't execute the lvm commands when not supported.
38+
- Fix error when creating XFS on top of another Filesystem.
39+
- Type `Hash` added as acceptable type for physical_volumes.
40+
41+
## Release 1.0.0
42+
### Summary
43+
This release is a roll up of bug fixes and minor features. It also includes the introduction of Puppet 4 daya types. This release was prompted by the following issue: ([MODULES-4067](https://tickets.puppet.com/browse/MODULES-4067))
44+
45+
### Added
46+
- `createonly` option for the volumegroup
47+
- 30s Timeout for lvm support
48+
- `followsymlinks` parameter
49+
- Archlinux entry to 'metadata.json'
50+
- Puppet 4 data types
51+
- 'swapon' command to filesystem provider ([MODULES-4753](https://tickets.puppet.com/browse/MODULES-4753))
52+
- Allow removal of swap LVMs ([MODULES-4753](https://tickets.puppet.com/browse/MODULES-4753))
53+
- Logic preventing a mount on fs_type swap ([MODULES-4753](https://tickets.puppet.com/browse/MODULES-4753))
54+
- Gracefully handle blkid return code 2 ([MODULES-4067](https://tickets.puppet.com/browse/MODULES-4067))
55+
56+
### Changed
57+
- Set default mount option for dump to 0
58+
- Better regexp for parsing the output of lvs
59+
- Facter::Util::Resolution to Facter::Core::Execution
60+
- `thinpool` parameter default to `false`
61+
- stdlib requirement to >= 4.13.1
62+
- Puppet minial version requirement to >= 4.6.1
63+
- Provider and tests ([MODULES-4753](https://tickets.puppet.com/browse/MODULES-4753))
64+
65+
### Removed
66+
- 'extent size' check in logical_volume provider
67+
- redundant swap exec resources ([MODULES-4753](https://tickets.puppet.com/browse/MODULES-4753))
68+
69+
## Release 0.9.0
70+
### Summary
71+
Small release that bumps up rspec version and adds a new parameter
72+
73+
### Features
74+
- Adds `followsymlinks` parameter
75+
76+
## Release 0.8.0
77+
### Summary
78+
This release includes more testing, support for ruby 2.3.1, thin provisioning and manage mirrors.
79+
80+
### Features
81+
- Lots of test maintenance, tests updated and improved
82+
- Add flag to Logical_volume to not resize filesystem
83+
- Add support for thin provisioning and setting poolmetadatasize
84+
85+
### Bugfixes
86+
- Add missing parameters to manage mirrors for lvm::logical_volume
87+
- Executed command `swapoff` before unmount swap partion
88+
- Fix parsing size from lvs output
89+
- Numerous documentation fixes
90+
91+
## Release 0.7.0
92+
### Features
93+
- Add a flag `mounted` to tell puppet not to mount a volume itself.
94+
95+
### Bugfixes
96+
- #139: fix errors under strict_variables with `manage_pkg`.
97+
98+
## Release 0.6.0
99+
### Summary
100+
This release includes support for new parameters, lots of unit tests, and tweaks to make sure everything works on different versions of puppet and lvm
101+
102+
#### Features
103+
- Update .travis.yml to run puppet 3.0 and higher
104+
- Add swap support
105+
- Add RAL to types
106+
- List all PVs in a VG
107+
- Unit tests for types
108+
- Adds `type` parameter for logical volume creation
109+
- Adds support to the resize of a logical volume with swap
110+
111+
#### Bugfixes
112+
- Filesystem type can create journal devices
113+
- Add persistent and minor parameters to logical volume type
114+
- Make size_is_minsize usable
115+
- Add support for older lvm versions
116+
- Fixes an error in `pvcreate` produced when `force => false`
117+
118+
## 2015-04-28 - Release 0.5.0
119+
### Summary
120+
121+
This release contains new parameters, a number of bugfixes, and improved tests.
122+
123+
#### Features
124+
- New parameters in `lvm::logical_volume`
125+
- `$readahead`
126+
- `$pass`
127+
- `$dump`
128+
- Mirror support
129+
- Ordering of resource creation
130+
- Allow creation of LV without a filesystem or mount points
131+
132+
#### Bugfixes
133+
- Correctly escape dashes in LVM name
134+
- Updates $ensure checking to be puppet4 compliant.
135+
- Fixes filesystem detection bug
136+
- Correctly escape dashes in VG names (MODULES-1801)
137+
- Validates logical_volume name is not undef
138+
139+
## 2014-12-2 - Release 0.4.0
140+
### Summary
141+
142+
This release contains a number of new parameters, adds support for non-integer sizes, and has a number of bugfixes.
143+
144+
#### Features
145+
- New parameters in `lvm::logical_volume`
146+
- `$initial_size`
147+
- `$mkfs_options`
148+
- `$stripes`
149+
- `$extents`
150+
- `$stripesize`
151+
- `$range`
152+
- New `size_is_minsize` parameter in `logical_volume` type
153+
- Allow non-integer sizes
154+
155+
#### Bugfixes
156+
- Lint fixes
157+
- Fixed volume_group to be sorted upon comparision
158+
- Consider `fs_type` in `exists?` function
159+
- Metadata fixes
160+
161+
## 2014-09-16 - Release 0.3.3
162+
### Summary
163+
164+
This release fixes an issue with the metadata and fixes a bug with
165+
initial_size.
166+
167+
#### Bugfixes
168+
- Remove Modulefile and move dependencies to metadata.json
169+
- Don't set --extents=100%FREE if initial_size is set
170+
171+
## 2014-06-25 - Release 0.3.2
172+
### Summary
173+
174+
This release fixes a couple of small, but important, bugs.
175+
176+
#### Bugfixes
177+
- Fix the size comparision to be unit aware.
178+
- Fix exec that was missing a path attribute.
179+
- Add autorequire for the volume_group.
180+
181+
## 2014-04-11 - Release 0.3.1
182+
### Summary
183+
184+
This release simply adds metadata consumed by the forge for displaying
185+
operating system compatibility. No other changes.
186+
187+
## 2014-04-10 - Release 0.3.0
188+
### Summary
189+
190+
This release features a new base lvm class, and set of defines, that allows you
191+
to express your volume groups through a `volume_groups` parameter. This makes
192+
it easier to hiera backend your LVM configuration.
193+
194+
More information about this feature can be found in the README file.
195+
196+
## 2014-02-04 - Release 0.2.0
197+
### Summary
198+
199+
It's been a long time since the previous release and the LVM module has seen a
200+
lot of community development. It now supports AIX, thanks to Craig Dunn, and
201+
grew an enormous number of facts, properties, and parameters. There's a
202+
fistful of bugfixes too which should help RHEL5 users.
203+
204+
#### Features
205+
- A new `lvm_support` fact was added.
206+
- A new `lvm_vgs` fact was added.
207+
- A new `lvm_pvs` fact was added.
208+
- Dynamic facts were added for lvm_vg_N and lvm_pv_N.
209+
- Support for lvcreate -l argument (extents)
210+
- Added AIX providers for logical_volume and filesystem types.
211+
- Use ensure_resources to handle multiple physical_volume in a volume_group.
212+
- Add XFS online resizing support.
213+
- Add `initial_size` property.
214+
- Add `extents` property.
215+
- Add `stripes` property.
216+
- Add `stripsize` property.
217+
- Huge number of parameters were added, most AIX only.
218+
219+
#### Bugfixes
220+
- Fix messages with new_size variables in logical_volume/lvm.rb
221+
- size 'undef' doesn't work when creating a new logical volume
222+
- resize2fs isn't called during resizing on ruby>1.
223+
- Allow for physical_volumes and volume_groups that change as system lives.
224+
- On RHEL 5 family systems ext4 filesystems can not be resized using resize2fs.
225+
- Suppress facter warnings on systems that don't support LVM.

Rakefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
# frozen_string_literal: true
2+
13
require 'puppet_litmus/rake_tasks' if Bundler.rubygems.find_name('puppet_litmus').any?
24
require 'puppetlabs_spec_helper/rake_tasks'
35
require 'puppet-syntax/tasks/puppet-syntax'
46
require 'puppet_blacksmith/rake_tasks' if Bundler.rubygems.find_name('puppet-blacksmith').any?
57
require 'github_changelog_generator/task' if Bundler.rubygems.find_name('github_changelog_generator').any?
68
require 'puppet-strings/tasks' if Bundler.rubygems.find_name('puppet-strings').any?
9+
require 'puppet-strings/tasks'
710

811
def changelog_user
912
return unless Rake.application.top_level_tasks.include? "changelog"
@@ -45,6 +48,7 @@ if Bundler.rubygems.find_name('github_changelog_generator').any?
4548
raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil?
4649
config.user = "#{changelog_user}"
4750
config.project = "#{changelog_project}"
51+
config.since_tag = "1.2.0"
4852
config.future_release = "#{changelog_future_release}"
4953
config.exclude_labels = ['maintenance']
5054
config.header = "# Change log\n\nAll notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org)."

0 commit comments

Comments
 (0)