Skip to content

Commit aa1a7ed

Browse files
hdepekohlZloeSaboroot-expert
authored
Fix MongoDB installation on RedHat family (#606)
Co-authored-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> Co-authored-by: Evgeny Soynov <esoynov@kogito.network> Co-authored-by: Christos Papageorgiou <christos.papageorgioy@gmail.com>
1 parent 89bf36f commit aa1a7ed

35 files changed

+297
-888
lines changed

.fixtures.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ fixtures:
22
repositories:
33
"stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git"
44
"apt": "git://github.com/puppetlabs/puppetlabs-apt.git"
5+
"systemd": "https://github.com/voxpupuli/puppet-systemd.git"
56
yumrepo_core:
67
repo: https://github.com/puppetlabs/puppetlabs-yumrepo_core.git
78
puppet_version: ">= 6.0.0"

.github/CONTRIBUTING.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ By participating in this project you agree to abide by its terms.
3333

3434
Please be prepared to repeat some of these steps as our contributors review your code.
3535

36+
Also consider sending in your profile code that calls this component module as an acceptance test or provide it via an issue. This helps reviewers a lot to test your use case and prevents future regressions!
37+
3638
## Writing proper commits - short version
3739

3840
* Make commits of logical units.
@@ -230,14 +232,14 @@ simple tests against it after applying the module. You can run this
230232
with:
231233

232234
```sh
233-
bundle exec rake acceptance
235+
bundle exec rake beaker
234236
```
235237

236238
This will run the tests on the module's default nodeset. You can override the
237239
nodeset used, e.g.,
238240

239241
```sh
240-
BEAKER_set=centos-7-x64 bundle exec rake acceptance
242+
BEAKER_set=centos-7-x64 bundle exec rake beaker
241243
```
242244

243245
There are default rake tasks for the various acceptance test modules, e.g.,
@@ -264,10 +266,9 @@ The following strings are known to work:
264266

265267
* ubuntu1604
266268
* ubuntu1804
267-
* debian8
269+
* ubuntu2004
268270
* debian9
269271
* debian10
270-
* centos6
271272
* centos7
272273
* centos8
273274

.github/workflows/ci.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: CI
2+
3+
on: pull_request
4+
5+
jobs:
6+
setup_matrix:
7+
name: 'Setup Test Matrix'
8+
runs-on: ubuntu-latest
9+
outputs:
10+
beaker_setfiles: ${{ steps.get-outputs.outputs.beaker_setfiles }}
11+
puppet_major_versions: ${{ steps.get-outputs.outputs.puppet_major_versions }}
12+
puppet_unit_test_matrix: ${{ steps.get-outputs.outputs.puppet_unit_test_matrix }}
13+
env:
14+
BUNDLE_WITHOUT: development:test:release
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Setup ruby
18+
uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: '2.7'
21+
bundler-cache: true
22+
- name: Run rake validate
23+
run: bundle exec rake validate
24+
- name: Setup Test Matrix
25+
id: get-outputs
26+
run: bundle exec metadata2gha --use-fqdn --pidfile-workaround CentOS,Ubuntu
27+
28+
unit:
29+
needs: setup_matrix
30+
runs-on: ubuntu-latest
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
include: ${{fromJson(needs.setup_matrix.outputs.puppet_unit_test_matrix)}}
35+
env:
36+
BUNDLE_WITHOUT: development:system_tests:release
37+
PUPPET_VERSION: "~> ${{ matrix.puppet }}.0"
38+
name: Puppet ${{ matrix.puppet }} (Ruby ${{ matrix.ruby }})
39+
steps:
40+
- uses: actions/checkout@v2
41+
- name: Setup ruby
42+
uses: ruby/setup-ruby@v1
43+
with:
44+
ruby-version: ${{ matrix.ruby }}
45+
bundler-cache: true
46+
- name: Run tests
47+
run: bundle exec rake
48+
49+
acceptance:
50+
needs: setup_matrix
51+
runs-on: ubuntu-latest
52+
env:
53+
BUNDLE_WITHOUT: development:test:release
54+
strategy:
55+
fail-fast: false
56+
matrix:
57+
setfile: ${{fromJson(needs.setup_matrix.outputs.beaker_setfiles)}}
58+
puppet: ${{fromJson(needs.setup_matrix.outputs.puppet_major_versions)}}
59+
name: ${{ matrix.puppet.name }} - ${{ matrix.setfile.name }}
60+
steps:
61+
- name: Enable IPv6 on docker
62+
run: |
63+
echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
64+
sudo service docker restart
65+
- uses: actions/checkout@v2
66+
- name: Setup ruby
67+
uses: ruby/setup-ruby@v1
68+
with:
69+
ruby-version: '2.7'
70+
bundler-cache: true
71+
- name: Run tests
72+
run: bundle exec rake beaker
73+
env:
74+
BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet.collection }}
75+
BEAKER_setfile: ${{ matrix.setfile.value }}

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
env:
9+
BUNDLE_WITHOUT: development:test:system_tests
10+
11+
jobs:
12+
deploy:
13+
name: 'deploy to forge'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
- name: Setup Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: '2.7'
22+
bundler-cache: true
23+
- name: Build and Deploy
24+
env:
25+
# Configure secrets here:
26+
# https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets
27+
BLACKSMITH_FORGE_USERNAME: '${{ secrets.PUPPET_FORGE_USERNAME }}'
28+
BLACKSMITH_FORGE_API_KEY: '${{ secrets.PUPPET_FORGE_API_KEY }}'
29+
run: bundle exec rake module:push

.msync.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
modulesync_config_version: '3.0.0'
1+
---
2+
modulesync_config_version: '4.0.0'

.overcommit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ PrePush:
6161
- 'validate'
6262
- 'test'
6363
- 'rubocop'
64-
command: [ 'bundle', 'exec', 'rake' ]
64+
command: ['bundle', 'exec', 'rake']

.pmtignore

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,34 @@
11
docs/
22
pkg/
3+
Gemfile
34
Gemfile.lock
45
Gemfile.local
56
vendor/
67
.vendor/
7-
spec/fixtures/manifests/
8-
spec/fixtures/modules/
8+
spec/
9+
Rakefile
910
.vagrant/
1011
.bundle/
1112
.ruby-version
1213
coverage/
1314
log/
1415
.idea/
1516
.dependencies/
17+
.github/
1618
.librarian/
1719
Puppetfile.lock
1820
*.iml
21+
.editorconfig
22+
.fixtures.yml
23+
.gitignore
24+
.msync.yml
25+
.overcommit.yml
26+
.pmtignore
27+
.rspec
28+
.rspec_parallel
29+
.rubocop.yml
30+
.sync.yml
1931
.*.sw?
2032
.yardoc/
33+
.yardopts
2134
Dockerfile

0 commit comments

Comments
 (0)