Skip to content

Commit f43093d

Browse files
Merge pull request #313 from Checkmk/devel
Release 0.21.0
2 parents 0697213 + 539359c commit f43093d

File tree

57 files changed

+1153
-133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1153
-133
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Bug report
33
about: Create a report to help us improve
44
title: "[BUG]"
55
labels: bug
6-
assignees: robin-tribe29
6+
assignees: robin-checkmk
77

88
---
99

10-
Verify first that your issue is not already reported [here](https://github.com/tribe29/ansible-collection-tribe29.checkmk/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc).
10+
Verify first that your issue is not already reported [here](https://github.com/Checkmk/ansible-collection-tribe29.checkmk/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc).
1111
Where possible also test if the latest release and main branch are affected too.
1212
Complete all sections as described!
1313

@@ -25,8 +25,8 @@ $ ansible --version
2525

2626
```
2727

28-
**Checkmk Version**
29-
<!-- Paste the version string, that can be found in the 'Help' menu. -->
28+
**Checkmk Version and Edition**
29+
<!-- Paste the version string, that can be found in the 'Help' menu. Please make sure to include the edition!-->
3030
```console
3131
e.g. 2.X.YpZ (CRE)
3232
```
@@ -37,8 +37,6 @@ e.g. 2.X.YpZ (CRE)
3737
$ ansible-galaxy collection list
3838

3939
```
40-
**Environment**
41-
<!-- Provide all relevant information below, e.g. control node OS versions, Python version, etc. -->
4240

4341
**To Reproduce**
4442
Steps to reproduce the behavior:
@@ -53,8 +51,11 @@ Steps to reproduce the behavior:
5351
**Actual behavior**
5452
<!-- A clear and concise description of what actually happens. -->
5553

56-
**Screenshots**
57-
<!-- If applicable, add screenshots to help explain your problem. -->
54+
**Minimum reproduction example**
55+
<!-- If you can, please provide a minimum example of your configuration. This really helps us quickly understand the situation. -->
56+
```yaml
57+
58+
```
5859

5960
**Additional context**
60-
<!-- Add any other context about the problem here. -->
61+
<!-- Add any other context, e.g. OS information about control and managed node, screenshots or background information about the problem. -->

.github/ISSUE_TEMPLATE/feedback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ assignees: robin-tribe29
77

88
---
99

10-
Please verify first that your feedback is not already reported [here](https://github.com/tribe29/ansible-collection-tribe29.checkmk/issues?q=is%3Aissue+sort%3Aupdated-desc).
10+
Please verify first that your feedback is not already reported [here](https://github.com/Checkmk/ansible-collection-tribe29.checkmk/issues?q=is%3Aissue+sort%3Aupdated-desc).
1111
If possible and useful provide additional information below. This is optional however.
1212

1313
**Provide your feedback**

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!--- Please provide a general summary of your changes in the title above -->
1+
<!--- Please provide a brief summary of your changes as a title in the textbox above -->
22

33
<!---
4-
Please use the devel branch as the merge target!
4+
Please use the devel branch as the merge target (see dropdown above)!
55
We use that branch as a staging area, to make sure the main branch
6-
stays as stable as possible, if people are using the branch directly.
6+
stays as stable as possible, in case people are using it to install the collection directly.
77
-->
88

99
## Pull request type
@@ -14,15 +14,15 @@ Please check the type of change your PR introduces:
1414
- [ ] Bugfix
1515
- [ ] Feature
1616
- [ ] Code style update (formatting, renaming)
17-
- [ ] Refactoring (no functional changes, no api changes)
17+
- [ ] Refactoring (no functional changes, no API changes)
1818
- [ ] Build related changes
1919
- [ ] Documentation content changes
2020
- [ ] Other (please describe):
2121

2222
## What is the current behavior?
2323
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
2424

25-
Issue Number: `e.g. #1`
25+
Issue Number: `e.g. #1` <!-- Delete this, if it does not apply. -->
2626

2727
## What is the new behavior?
2828
<!-- Please describe the behavior or changes that are being added by this PR. -->
@@ -32,4 +32,4 @@ Issue Number: `e.g. #1`
3232
-
3333

3434
## Other information
35-
<!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
35+
<!-- Any other information that is important to this PR, e.g screenshots of how the component looks before and after the change. -->

.github/workflows/cla.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: 'CLA Assistant'
2+
on:
3+
issue_comment:
4+
types: [created]
5+
pull_request_target:
6+
types: [opened, closed, synchronize]
7+
8+
# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
9+
permissions:
10+
actions: write
11+
contents: write
12+
pull-requests: write
13+
statuses: write
14+
15+
jobs:
16+
CLAAssistant:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: 'CLA Assistant'
20+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA.') || github.event_name == 'pull_request_target'
21+
uses: contributor-assistant/[email protected]
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
# the below token should have repo scope and must be manually added by you in the repository's secret
25+
# This token is required only if you have configured to store the signatures in a remote repository/organization
26+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN_FOR_CLA }}
27+
with:
28+
path-to-signatures: 'signatures/version1/cla.json'
29+
path-to-document: 'https://github.com/tribe29/checkmk/blob/master/doc/cla/cla.md' # e.g. a CLA or a DCO document
30+
# branch should not be protected
31+
branch: 'main'
32+
allowlist: bot* # comma separated list of users who are allowed to submit without a CLA bot approval
33+
remote-organization-name: 'Checkmk'
34+
remote-repository-name: 'cla'
35+
custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA.'
36+
37+
# the followings are the optional inputs - If the optional inputs are not given, then default values will be taken
38+
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
39+
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
40+
#signed-commit-message: 'For example: $contributorName has signed the CLA in $owner/$repo#$pullRequestNo'
41+
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
42+
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
43+
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
44+
#lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
45+
#use-dco-flag: true - If you are using DCO instead of CLA
46+
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
2+
# README FIRST
3+
# 1. replace "NAMESPACE" and "COLLECTION_NAME" with the correct name in the env section (e.g. with 'community' and 'mycollection')
4+
# 2. If you don't have unit tests remove that section
5+
# 3. If your collection depends on other collections ensure they are installed, see "Install collection dependencies"
6+
# If you need help please ask in #ansible-community on the Libera.chat IRC network
7+
8+
name: Molecule Tests for Agent Role
9+
on:
10+
workflow_dispatch:
11+
pull_request:
12+
branches:
13+
- main
14+
- devel
15+
paths:
16+
- 'roles/agent/**'
17+
push:
18+
branches:
19+
- main
20+
- devel
21+
paths:
22+
- 'roles/agent/**'
23+
24+
env:
25+
NAMESPACE: tribe29
26+
COLLECTION_NAME: checkmk
27+
28+
jobs:
29+
build:
30+
runs-on: ubuntu-20.04
31+
name: Checkmk ${{ matrix.checkmk }} + py${{ matrix.python }}
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
python:
36+
- '3.8'
37+
- '3.9'
38+
- '3.10'
39+
- '3.11'
40+
checkmk:
41+
- '2.0.0'
42+
- '2.1.0'
43+
- '2.2.0'
44+
45+
steps:
46+
- name: Check out code
47+
uses: actions/checkout@v3
48+
with:
49+
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
50+
51+
- name: Set up Python ${{ matrix.python }}
52+
uses: actions/setup-python@v4
53+
with:
54+
python-version: ${{ matrix.python }}
55+
56+
- name: Install dependencies
57+
run: |
58+
python3 -m pip install --upgrade pip
59+
python3 -m pip install -r requirements.txt
60+
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
61+
62+
- name: Test with molecule
63+
run: |
64+
cd roles/agent/
65+
molecule test -s ${{ matrix.checkmk }}
66+
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

.github/workflows/release.yaml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Python
2525
uses: actions/setup-python@v4
2626
with:
27-
python-version: '3.10'
27+
python-version: '3.11'
2828

2929
- name: Install Dependencies
3030
run: |
@@ -41,7 +41,7 @@ jobs:
4141
cp $files build/src
4242
cp -rf $directories build/src
4343
env:
44-
files: "CHANGELOG.rst LICENSE README.md ansible.cfg galaxy.yml"
44+
files: "ansible.cfg CHANGELOG.rst galaxy.yml LICENSE README.md"
4545
directories: "changelogs docs meta playbooks plugins roles"
4646

4747
- name: Build Ansible Collection
@@ -90,34 +90,22 @@ jobs:
9090
- name: Build Ansible Collection
9191
run: ansible-galaxy collection build build/src --force
9292

93-
- name: Create Release
93+
- name: Create Release and upload Assets
9494
id: create-release
95-
uses: actions/create-release@v1
96-
env:
97-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
uses: softprops/action-gh-release@v1
9896
with:
97+
token: ${{ secrets.GITHUB_TOKEN }}
98+
draft: true
99+
prerelease: true
100+
name: v${{ steps.current_version.outputs.version }}
99101
tag_name: v${{ steps.current_version.outputs.version }}
100-
release_name: v${{ steps.current_version.outputs.version }}
102+
files: tribe29-checkmk-${{ steps.current_version.outputs.version }}.tar.gz
101103
body: |
102104
# Ansible Collection: tribe29.checkmk
103105
104-
For information about this collection and how to install it, refer to the [README](https://github.com/tribe29/ansible-collection-tribe29.checkmk/blob/main/README.md).
106+
For information about this collection and how to install it, refer to the [README](https://github.com/Checkmk/ansible-collection-tribe29.checkmk/blob/main/README.md).
105107
106-
For a detailed changelog, refer to the [CHANGELOG](https://github.com/tribe29/ansible-collection-tribe29.checkmk/blob/main/CHANGELOG.rst).
107-
```
108-
draft: false
109-
prerelease: false
110-
111-
- name: Upload Release Asset
112-
id: upload-release-asset
113-
uses: actions/upload-release-asset@v1
114-
env:
115-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116-
with:
117-
upload_url: ${{ steps.create-release.outputs.upload_url }}
118-
asset_path: tribe29-checkmk-${{ steps.current_version.outputs.version }}.tar.gz
119-
asset_name: tribe29-checkmk-${{ steps.current_version.outputs.version }}.tar.gz
120-
asset_content_type: application/tar+gzip
108+
For a detailed changelog, refer to the [CHANGELOG](https://github.com/Checkmk/ansible-collection-tribe29.checkmk/blob/main/CHANGELOG.rst).
121109
122110
- name: Publish Ansible Collection to the Galaxy
123111
run: ansible-galaxy collection publish tribe29-checkmk-${{ steps.current_version.outputs.version }}.tar.gz --api-key ${{ secrets.GALAXY_API_KEY }}

CONTRIBUTING.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ There are several ways in which you can contribute:
2424

2525
1. Submit an [issue](#Submitting-Issues).
2626
2. Create a [pull request](#Pull-Requests).
27-
3. Pick an [issue, which needs help](https://github.com/tribe29/ansible-collection-tribe29.checkmk/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22).
27+
3. Pick an [issue, which needs help](https://github.com/Checkmk/ansible-collection-tribe29.checkmk/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22).
2828

2929
Everything helps, really!
3030
We do test everything to the best of our abilities, but nothing beats real world
@@ -33,17 +33,18 @@ the functionality, [pull requests](#Pull-Requests) are appreciated.
3333

3434
### Submitting Issues
3535

36-
If you encounter any bugs or have ideas for improvements feel free to open an [issue](https://github.com/tribe29/ansible-collection-tribe29.checkmk/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) or even better a [pull request](#Pull-Requests).
36+
If you encounter any bugs or have ideas for improvements feel free to open an [issue](https://github.com/Checkmk/ansible-collection-tribe29.checkmk/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) or even better a [pull request](#Pull-Requests).
3737
Dedicated requirements will be added here as suitable.
3838

3939
### Pull Requests
4040

41-
Please open a [pull request](https://github.com/tribe29/ansible-collection-tribe29.checkmk/pulls?q=is%3Apr+is%3Aopen)
41+
Please open a [pull request](https://github.com/Checkmk/ansible-collection-tribe29.checkmk/pulls?q=is%3Apr+is%3Aopen)
4242
if you have something to contribute.
4343
On pull request creation, checks will run and tell you,
4444
if your changes work with the collection. If errors are detected, please try to
4545
fix them and update your pull request accordingly.
4646
If you need help, do ask for it.
47+
After submitting a PR, follow the instructions to sign the [CLA](https://github.com/tribe29/checkmk/blob/master/doc/cla/cla_readme.md) as asked by the bot.
4748

4849
### Changelog
4950

@@ -138,7 +139,7 @@ Before running the action `Release Collection` against the `main` branch, the
138139
following needs to be done:
139140

140141
1. Update the collection version in `galaxy.yml` and `requirements.yml`. Look for `version:`.
141-
2. Check the integration tests for up-to-date Checkmk versions.
142+
2. Check the integration and molecule tests for up-to-date Checkmk versions.
142143
3. Check the GitHub Workflows for [EOL Ansible and Python versions and add new releases](https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix).
143144
4. Update the compatibility matrix in `SUPPORT.md` accordingly.
144145
5. Double check `changelogs/fragments` if all changes have a changelog.

0 commit comments

Comments
 (0)