Skip to content

Commit 22acb7e

Browse files
author
carabasdaniel
authored
Merge pull request #732 from puppetlabs/release
(maint) Release mergeback v3.14.0
2 parents 9abbe30 + fc58afa commit 22acb7e

File tree

4 files changed

+31
-8
lines changed

4 files changed

+31
-8
lines changed

CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
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).
44

5+
## [v3.14.0](https://github.com/puppetlabs/puppetlabs-docker/tree/v3.14.0) (2021-03-04)
6+
7+
[Full Changelog](https://github.com/puppetlabs/puppetlabs-docker/compare/v3.13.1...v3.14.0)
8+
9+
### Fixed
10+
11+
- \[MODULES-10898\] Disable forced docker service restart for RedHat 7 and docker server 1.13 [\#730](https://github.com/puppetlabs/puppetlabs-docker/pull/730) ([carabasdaniel](https://github.com/carabasdaniel))
12+
513
## [v3.13.1](https://github.com/puppetlabs/puppetlabs-docker/tree/v3.13.1) (2021-02-02)
614

715
[Full Changelog](https://github.com/puppetlabs/puppetlabs-docker/compare/v3.13.0...v3.13.1)
@@ -72,6 +80,7 @@ All notable changes to this project will be documented in this file. The format
7280
- \(MODULES-10691\) - Add root\_dir in daemon.json [\#632](https://github.com/puppetlabs/puppetlabs-docker/pull/632) ([daianamezdrea](https://github.com/daianamezdrea))
7381
- Fixing the fix 'Fix the docker\_compose options parameter position \#378' [\#631](https://github.com/puppetlabs/puppetlabs-docker/pull/631) ([awegmann](https://github.com/awegmann))
7482
- Blocking ordering between non-Windows service stops [\#622](https://github.com/puppetlabs/puppetlabs-docker/pull/622) ([ALTinners](https://github.com/ALTinners))
83+
- Allow all 3.x docker-compose minor versions [\#620](https://github.com/puppetlabs/puppetlabs-docker/pull/620) ([runejuhl](https://github.com/runejuhl))
7584

7685
## [v3.10.1](https://github.com/puppetlabs/puppetlabs-docker/tree/v3.10.1) (2020-05-27)
7786

@@ -100,7 +109,6 @@ All notable changes to this project will be documented in this file. The format
100109

101110
### Fixed
102111

103-
- Allow all 3.x docker-compose minor versions [\#620](https://github.com/puppetlabs/puppetlabs-docker/pull/620) ([runejuhl](https://github.com/runejuhl))
104112
- Enforce TLS1.2 on Windows; minor fixes for RH-based testing [\#603](https://github.com/puppetlabs/puppetlabs-docker/pull/603) ([carabasdaniel](https://github.com/carabasdaniel))
105113
- \[MODULES-10628\] Update documentation for docker volume and set options as parameter [\#599](https://github.com/puppetlabs/puppetlabs-docker/pull/599) ([carabasdaniel](https://github.com/carabasdaniel))
106114
- Allow module to work on SLES [\#591](https://github.com/puppetlabs/puppetlabs-docker/pull/591) ([npwalker](https://github.com/npwalker))

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1012,12 +1012,14 @@ This module supports:
10121012
* Debian 8.0
10131013
* Debian 9.0
10141014
* Debian 10
1015-
* RedHat 7.0
1015+
* RedHat 7.0 - limited support available
10161016
* Ubuntu 14.04
10171017
* Ubuntu 16.04
10181018
* Ubuntu 18.04
10191019
* Windows Server 2016 (Docker Enterprise Edition only)
10201020

1021+
On RedHat 7 the default docker package installs docker server version 1.13.1. The default docker.service uses the docker-storage-service in this version and creates /etc/sysconfig/docker-storage based on the container-storage-setup configuration and /etc/sysconfig/docker-storage-setup file. As the puppetlabs-docker module manages both the docker-storage and docker-storage-setup files it causes a conflict with the container-storage-setup forcing a docker service restart, therefore a workaround was included in the service manifest that disables the service restart on storage configuration changes for this version of docker on RedHat 7. As a side effect of these changes, storage configuration changes with this docker version on RedHat 7 are not picked up by default by the docker.service.
1022+
10211023
## Development
10221024

10231025
If you would like to contribute to this module, see the guidelines in [CONTRIBUTING.MD](https://github.com/puppetlabs/puppetlabs-docker/blob/main/CONTRIBUTING.md).

manifests/service.pp

+18-5
Original file line numberDiff line numberDiff line change
@@ -356,12 +356,25 @@
356356
default: {}
357357
}
358358

359+
#workaround for docker 1.13 on RedHat 7
360+
if $facts['docker_server_version']{
361+
if $facts['os']['family'] == 'RedHat' and $facts['docker_server_version'] =~ /1\.13.+/{
362+
$_skip_storage_config = true
363+
} else {
364+
$_skip_storage_config = false
365+
}
366+
} else {
367+
$_skip_storage_config = false
368+
}
369+
359370
if $storage_config {
360-
file { $storage_config:
361-
ensure => file,
362-
force => true,
363-
content => template($storage_config_template),
364-
notify => $_manage_service,
371+
unless $_skip_storage_config {
372+
file { $storage_config:
373+
ensure => file,
374+
force => true, #force rewrite storage configuration
375+
content => template($storage_config_template),
376+
notify => $_manage_service,
377+
}
365378
}
366379
}
367380

metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puppetlabs-docker",
3-
"version": "3.13.1",
3+
"version": "3.14.0",
44
"author": "puppetlabs",
55
"summary": "Module for installing and managing docker",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)