Skip to content

Commit dfa02f3

Browse files
committed
Modulesync 2.12.0 and adding support for CentOS/RHEL 8
1 parent c4dccd3 commit dfa02f3

File tree

6 files changed

+77
-15
lines changed

6 files changed

+77
-15
lines changed

.travis.yml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,51 +24,59 @@ matrix:
2424
env: PUPPET_VERSION="~> 5.0" CHECK=build DEPLOY_TO_FORGE=yes
2525
- rvm: 2.5.3
2626
bundler_args: --without development release
27-
env: BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_setfile=debian8-64 CHECK=beaker
27+
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=debian8-64 BEAKER_HYPERVISOR=docker CHECK=beaker
2828
services: docker
2929
- rvm: 2.5.3
3030
bundler_args: --without development release
31-
env: BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_setfile=debian8-64 CHECK=beaker
31+
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=debian8-64 BEAKER_HYPERVISOR=docker CHECK=beaker
3232
services: docker
3333
- rvm: 2.5.3
3434
bundler_args: --without development release
35-
env: BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_setfile=debian9-64 CHECK=beaker
35+
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=debian9-64 BEAKER_HYPERVISOR=docker CHECK=beaker
3636
services: docker
3737
- rvm: 2.5.3
3838
bundler_args: --without development release
39-
env: BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_setfile=debian9-64 CHECK=beaker
39+
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=debian9-64 BEAKER_HYPERVISOR=docker CHECK=beaker
4040
services: docker
4141
- rvm: 2.5.3
4242
bundler_args: --without development release
43-
env: BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_setfile=ubuntu1604-64 CHECK=beaker
43+
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=ubuntu1604-64 BEAKER_HYPERVISOR=docker CHECK=beaker
4444
services: docker
4545
- rvm: 2.5.3
4646
bundler_args: --without development release
47-
env: BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_setfile=ubuntu1604-64 CHECK=beaker
47+
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=ubuntu1604-64 BEAKER_HYPERVISOR=docker CHECK=beaker
4848
services: docker
4949
- rvm: 2.5.3
5050
bundler_args: --without development release
51-
env: BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_setfile=ubuntu1804-64 CHECK=beaker
51+
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=ubuntu1804-64 BEAKER_HYPERVISOR=docker CHECK=beaker
5252
services: docker
5353
- rvm: 2.5.3
5454
bundler_args: --without development release
55-
env: BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_setfile=ubuntu1804-64 CHECK=beaker
55+
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=ubuntu1804-64 BEAKER_HYPERVISOR=docker CHECK=beaker
5656
services: docker
5757
- rvm: 2.5.3
5858
bundler_args: --without development release
59-
env: BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_setfile=centos6-64 CHECK=beaker
59+
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=centos6-64 BEAKER_HYPERVISOR=docker CHECK=beaker
6060
services: docker
6161
- rvm: 2.5.3
6262
bundler_args: --without development release
63-
env: BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_setfile=centos6-64 CHECK=beaker
63+
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=centos6-64 BEAKER_HYPERVISOR=docker CHECK=beaker
6464
services: docker
6565
- rvm: 2.5.3
6666
bundler_args: --without development release
67-
env: BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_setfile=centos7-64 CHECK=beaker
67+
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=centos7-64 BEAKER_HYPERVISOR=docker CHECK=beaker
6868
services: docker
6969
- rvm: 2.5.3
7070
bundler_args: --without development release
71-
env: BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_setfile=centos7-64 CHECK=beaker
71+
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=centos7-64 BEAKER_HYPERVISOR=docker CHECK=beaker
72+
services: docker
73+
- rvm: 2.5.3
74+
bundler_args: --without development release
75+
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=centos8-64 BEAKER_HYPERVISOR=docker CHECK=beaker
76+
services: docker
77+
- rvm: 2.5.3
78+
bundler_args: --without development release
79+
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=centos8-64 BEAKER_HYPERVISOR=docker CHECK=beaker
7280
services: docker
7381
branches:
7482
only:

Gemfile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,27 @@ group :development do
2424
end
2525

2626
group :system_tests do
27-
gem 'voxpupuli-acceptance', :require => false
27+
gem 'winrm', :require => false
28+
if beaker_version = ENV['BEAKER_VERSION']
29+
gem 'beaker', *location_for(beaker_version)
30+
else
31+
gem 'beaker', '>= 4.2.0', :require => false
32+
end
33+
if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
34+
gem 'beaker-rspec', *location_for(beaker_rspec_version)
35+
else
36+
gem 'beaker-rspec', :require => false
37+
end
38+
gem 'serverspec', :require => false
39+
gem 'beaker-hostgenerator', '>= 1.1.22', :require => false
40+
gem 'beaker-docker', :require => false
41+
gem 'beaker-puppet', :require => false
42+
gem 'beaker-puppet_install_helper', :require => false
43+
gem 'beaker-module_install_helper', :require => false
44+
gem 'rbnacl', '>= 4', :require => false
45+
gem 'rbnacl-libsodium', :require => false
46+
gem 'bcrypt_pbkdf', :require => false
47+
gem 'ed25519', :require => false
2848
end
2949

3050
group :release do

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
4. [Usage - Configuration options and additional functionality](#usage)
1919
5. [Reference - An under-the-hood peek at what the module is doing and how](#reference)
2020
5. [Limitations - OS compatibility, etc.](#limitations)
21-
* [RedHat module dependencies](#redhat-module-dependecies)
2221
6. [Development - Guide for contributing to the module](#development)
2322

2423
## Overview
@@ -54,6 +53,34 @@ You can view example usage in [REFERENCE](REFERENCE.md).
5453

5554
See [REFERENCE](REFERENCE.md).
5655

56+
## Limitations
57+
58+
If running CentOS/RHEL, ensure the `epel` repo, or another repo containing a
59+
suitable Erlang version, is present. On Debian systems, puppetlabs/apt
60+
(>=2.0.0 < 5.0.0) is a soft dependency.
61+
62+
To have a suitable erlang version installed on RedHat and Debian systems,
63+
you have to install another puppet module from http://forge.puppetlabs.com/garethr/erlang with:
64+
65+
puppet module install garethr-erlang
66+
67+
This module handles the packages for erlang.
68+
To use the module, add the following snippet to your site.pp or an appropriate profile class:
69+
70+
For RedHat systems:
71+
72+
include 'erlang'
73+
class { 'erlang': epel_enable => true}
74+
75+
For Debian systems:
76+
77+
include 'erlang'
78+
package { 'erlang-base':
79+
ensure => 'latest',
80+
}
81+
82+
This module also depends on voxpupuli/archive to install rabbitmqadmin.
83+
5784
## Development
5885

5986
This module is maintained by [Vox Pupuli](https://voxpupuli.org/). Voxpupuli

data/family/RedHat-8.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
rabbitmq::python_package: 'python3'
3+
rabbitmq::repos_ensure: true

hiera.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ hierarchy:
1010
path: "os/%{facts.os.name}-%{facts.os.release.major}.yaml"
1111
- name: 'Distribution Name'
1212
path: "os/%{facts.os.name}.yaml"
13+
- name: 'Operating System Family Version'
14+
path: "family/%{facts.os.family}-%{facts.os.release.major}.yaml"
1315
- name: 'Operating System Family'
1416
path: "family/%{facts.os.family}.yaml"
1517
- name: 'Common'

metadata.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212
"operatingsystem": "RedHat",
1313
"operatingsystemrelease": [
1414
"6",
15-
"7"
15+
"7",
16+
"8"
1617
]
1718
},
1819
{
1920
"operatingsystem": "CentOS",
2021
"operatingsystemrelease": [
2122
"6",
23+
"7",
2224
"7"
2325
]
2426
},

0 commit comments

Comments
 (0)