Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MongoDB installation on RedHat family #606

Merged
merged 65 commits into from
Aug 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
b79ccf4
Modulesync 4.0.0
ekohl Nov 25, 2020
860736f
debug centos
hdep Feb 12, 2021
2882c24
debug
hdep Feb 13, 2021
8bf07d2
set needed variable
hdep Feb 18, 2021
2e4c2dd
debug variables
hdep Feb 18, 2021
b38d122
fix indent
hdep Feb 18, 2021
36b6bc0
debug rhel
hdep Mar 1, 2021
3f25e90
debug rhel
hdep Mar 1, 2021
c4c872d
fix style
hdep Mar 1, 2021
7b32e45
debug
hdep Mar 1, 2021
a699d36
fix pick
hdep Mar 1, 2021
d951a26
fix pidfile issue
hdep Mar 2, 2021
7cb04d8
pidfile-workaround
hdep Mar 2, 2021
7e800f4
fix rspec for centos package name
hdep Mar 2, 2021
7fdd79d
fix client class
hdep Mar 2, 2021
f70d3dc
fix rspec
hdep Mar 2, 2021
cee602a
fix mongos package
hdep Mar 2, 2021
6fbff97
manage mongos service
hdep Mar 2, 2021
2f25563
fix if statement
hdep Mar 2, 2021
c01257e
fix variable name
hdep Mar 2, 2021
bb91459
fix template path
hdep Mar 2, 2021
bf48a37
fix systemd mongos service
hdep Mar 2, 2021
85d1bbf
fix systemd mongos
hdep Mar 2, 2021
3a6a4ec
fix mongos systemd
hdep Mar 3, 2021
a3cd8ba
fix systemd init script
hdep Mar 5, 2021
3d5aab4
fix style
hdep Mar 5, 2021
7af6a8e
set replset name into configdb variable
hdep Mar 5, 2021
1e5c3fb
set replset to test
hdep Mar 5, 2021
ebec35d
fix rspec for mongos need a replicasetname
hdep Mar 5, 2021
e9b8185
fix mongos config
hdep Mar 5, 2021
d968e35
reduce timeout systemd
hdep Mar 5, 2021
9912ec0
revert timeout settings
hdep Mar 5, 2021
f4e0f7b
remove rspec for mongos
hdep Mar 26, 2021
79ef938
removemongos rspec for debug
hdep Mar 26, 2021
468ccb5
fix package name for redhat
hdep Mar 26, 2021
e747ecf
fix rspec for rhel
hdep Mar 26, 2021
55cbaf8
revert mongos rspec
hdep Mar 26, 2021
fe69f29
fix rspec for mongos
hdep Mar 26, 2021
a0db30f
fix rspec
hdep Mar 26, 2021
47f0031
modify fact
hdep Mar 26, 2021
373b035
add missing service_template variable
hdep Mar 26, 2021
06f70f3
fix service_template variable
hdep Mar 26, 2021
aea71fb
update fixtures
hdep Mar 26, 2021
2fdc641
update fixtures
hdep Mar 26, 2021
33aba63
debug systemd
hdep Apr 5, 2021
d177e2d
debug service
hdep Apr 5, 2021
aa31476
debug
hdep Apr 5, 2021
7dbb50d
Try to fix service enabled for mongos
hdep Apr 5, 2021
4a5c0a6
fix style
hdep Apr 5, 2021
49dcb13
fix style
hdep Apr 5, 2021
7ff18a9
Fixed acceptance tests for mongos
ZloeSabo Jun 24, 2021
48b3758
Fixed db_ismaster check to work with unauthorized user
ZloeSabo Aug 3, 2021
b3f0e66
Added hack to return empty user list from admin until admin is created
ZloeSabo Aug 3, 2021
709579d
Fixed styling with rubocop
ZloeSabo Aug 3, 2021
4736ee0
Fixed mongos dangling on debian after uninstall
ZloeSabo Aug 3, 2021
4d5bf3d
Merge pull request #1 from ZloeSabo/fix_mongos_tests
hdep Aug 17, 2021
c8f689d
Update .fixtures.yml
hdep Aug 18, 2021
b3ac32d
Update .github/workflows/ci.yml
hdep Aug 18, 2021
bbae78e
Update .sync.yml
hdep Aug 18, 2021
b604248
Update metadata.json
hdep Aug 18, 2021
c20928f
Update manifests/mongos.pp
hdep Aug 18, 2021
9e1fc8d
Drop Ubuntu 16/Add Ubuntu 20 support
root-expert Aug 18, 2021
171bff7
Drop Puppet 5/Add puppet 7 support
root-expert Aug 18, 2021
f4ae5c8
add puppet header
hdep Aug 18, 2021
16775ff
fix indent
hdep Aug 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ fixtures:
repositories:
"stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git"
"apt": "git://github.com/puppetlabs/puppetlabs-apt.git"
"systemd": "https://github.com/voxpupuli/puppet-systemd.git"
yumrepo_core:
repo: https://github.com/puppetlabs/puppetlabs-yumrepo_core.git
puppet_version: ">= 6.0.0"
9 changes: 5 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ By participating in this project you agree to abide by its terms.

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

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!

## Writing proper commits - short version

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

```sh
bundle exec rake acceptance
bundle exec rake beaker
```

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

```sh
BEAKER_set=centos-7-x64 bundle exec rake acceptance
BEAKER_set=centos-7-x64 bundle exec rake beaker
```

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

* ubuntu1604
* ubuntu1804
* debian8
* ubuntu2004
* debian9
* debian10
* centos6
* centos7
* centos8

Expand Down
75 changes: 75 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: CI

on: pull_request

jobs:
setup_matrix:
name: 'Setup Test Matrix'
runs-on: ubuntu-latest
outputs:
beaker_setfiles: ${{ steps.get-outputs.outputs.beaker_setfiles }}
puppet_major_versions: ${{ steps.get-outputs.outputs.puppet_major_versions }}
puppet_unit_test_matrix: ${{ steps.get-outputs.outputs.puppet_unit_test_matrix }}
env:
BUNDLE_WITHOUT: development:test:release
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- name: Run rake validate
run: bundle exec rake validate
- name: Setup Test Matrix
id: get-outputs
run: bundle exec metadata2gha --use-fqdn --pidfile-workaround CentOS,Ubuntu

unit:
needs: setup_matrix
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include: ${{fromJson(needs.setup_matrix.outputs.puppet_unit_test_matrix)}}
env:
BUNDLE_WITHOUT: development:system_tests:release
PUPPET_VERSION: "~> ${{ matrix.puppet }}.0"
name: Puppet ${{ matrix.puppet }} (Ruby ${{ matrix.ruby }})
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake

acceptance:
needs: setup_matrix
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: development:test:release
strategy:
fail-fast: false
matrix:
setfile: ${{fromJson(needs.setup_matrix.outputs.beaker_setfiles)}}
puppet: ${{fromJson(needs.setup_matrix.outputs.puppet_major_versions)}}
name: ${{ matrix.puppet.name }} - ${{ matrix.setfile.name }}
steps:
- name: Enable IPv6 on docker
run: |
echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- name: Run tests
run: bundle exec rake beaker
env:
BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet.collection }}
BEAKER_setfile: ${{ matrix.setfile.value }}
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
tags:
- '*'

env:
BUNDLE_WITHOUT: development:test:system_tests

jobs:
deploy:
name: 'deploy to forge'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- name: Build and Deploy
env:
# Configure secrets here:
# https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets
BLACKSMITH_FORGE_USERNAME: '${{ secrets.PUPPET_FORGE_USERNAME }}'
BLACKSMITH_FORGE_API_KEY: '${{ secrets.PUPPET_FORGE_API_KEY }}'
run: bundle exec rake module:push
3 changes: 2 additions & 1 deletion .msync.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
modulesync_config_version: '3.0.0'
---
modulesync_config_version: '4.0.0'
2 changes: 1 addition & 1 deletion .overcommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ PrePush:
- 'validate'
- 'test'
- 'rubocop'
command: [ 'bundle', 'exec', 'rake' ]
command: ['bundle', 'exec', 'rake']
17 changes: 15 additions & 2 deletions .pmtignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
docs/
pkg/
Gemfile
Gemfile.lock
Gemfile.local
vendor/
.vendor/
spec/fixtures/manifests/
spec/fixtures/modules/
spec/
Rakefile
.vagrant/
.bundle/
.ruby-version
coverage/
log/
.idea/
.dependencies/
.github/
.librarian/
Puppetfile.lock
*.iml
.editorconfig
.fixtures.yml
.gitignore
.msync.yml
.overcommit.yml
.pmtignore
.rspec
.rspec_parallel
.rubocop.yml
.sync.yml
.*.sw?
.yardoc/
.yardopts
Dockerfile
Loading