-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/icingaweb-module-graphite
- Loading branch information
Showing
102 changed files
with
1,150 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
# These Jobs should be always be run against the latest version of ansible on the systems | ||
# Feel free to update python and ansible versions | ||
# | ||
# In addition to keep them quick and no additional variables are used. | ||
# | ||
name: role-icingadb | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'feature/**' | ||
- 'fix/**' | ||
- '!doc/**' | ||
paths: | ||
- roles/icingadb/** | ||
- molecule/role-icingadb/** | ||
pull_request: | ||
branches: | ||
- 'feature/**' | ||
- 'fix/**' | ||
- '!doc/**' | ||
|
||
jobs: | ||
icingadb_latest: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
COLLECTION_NAMESPACE: icinga | ||
COLLECTION_NAME: icinga | ||
|
||
strategy: | ||
fail-fast: false | ||
max-parallel: 1 | ||
matrix: | ||
distro: [ubuntu2204] | ||
python: ['3.12'] | ||
ansible: ['2.17'] | ||
scenario: [role-icingadb] | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install dependencies ansible | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install -r requirements-test-${{ matrix.ansible }}.txt | ||
- name: Install collection | ||
run: | | ||
mkdir -p ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE | ||
cp -a ../ansible-collection-$COLLECTION_NAME ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME | ||
- name: Test with molecule | ||
run: | | ||
ansible --version | ||
molecule --version | ||
molecule test -s ${{ matrix.scenario }} | ||
env: | ||
MOLECULE_DISTRO: ${{ matrix.distro }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Creating a new release | ||
|
||
> This is meant as an *internal* note on how to build and publish a new version of this Ansible Collection. | ||
1. **Get the release branch ready:** | ||
Push your local changes to the remote. | ||
From your local release branch: | ||
``` | ||
git push --set-upstream origin release/<VERSION> | ||
``` | ||
|
||
To avoid having leftover files from your local directory end up in the release, please **cleanly clone the release branch to another directory**. | ||
``` | ||
git clone --branch release/<VERSION> git@github.com:Icinga/ansible-collection-icinga.git release_<VERSION> | ||
cd release_<VERSION> | ||
``` | ||
You now only have files that were actually commmited. | ||
|
||
2. **Increase the version number:** | ||
The version of this Collection - as seen by Ansible Galaxy - is determined by **galaxy.yml**. | ||
Increase the version number inside accordingly. | ||
|
||
3. **Create a changelog summary:** | ||
This will be shown in the changelog as a short summary for this release. | ||
|
||
changelogs/fragments/release_summary.yml: | ||
``` | ||
release_summary: | | ||
Summary text for this release. | ||
"*Bugfix release*" for example. | ||
``` | ||
|
||
4. **Create a new changelog:** | ||
Lint the changelogs: | ||
``` | ||
antsibull-changelog lint | ||
``` | ||
|
||
Generate the changelog: | ||
``` | ||
antsibull-changelog release --version <VERSION> | ||
``` | ||
|
||
Commit your changes to the release branch. | ||
|
||
5. **Build and push to Ansible Galaxy:** | ||
Build a release tar ball (verbose shows skipped files): | ||
``` | ||
ansible-galaxy collection build -vvv | ||
``` | ||
|
||
Push to Ansible Galaxy: | ||
``` | ||
ansible-galaxy collection publish --token <TOKEN> icinga-icinga-<VERSION>.tar.gz | ||
``` | ||
> This might show errors which does **not** necessarily mean that it failed. | ||
> Have a look at [Ansible Galaxy](https://galaxy.ansible.com/ui/repo/published/icinga/icinga/) and confirm if the release could be published. | ||
6. **Create a release on GitHub:** | ||
When [creating a new release](https://github.com/Icinga/ansible-collection-icinga/releases/new) | ||
|
||
- choose \<VERSION\> as tag | ||
- choose the branch "release/\<VERSION\>" as target (will be tagged) | ||
- choose \<VERSION\> as title | ||
- copy and paste the release's changelog entry (see [prior releases](https://github.com/Icinga/ansible-collection-icinga/releases)) | ||
- attach the created tar ball (icinga-icinga-\<VERSION\>.tar.gz) to the release | ||
- if you feel extra nice, credit contributors by adding their names, e.g. behind the respective issue or feature (`@name`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
changelogs/fragments/feature_add_pgsql_support_for_modules.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
minor_changes: | ||
- Added support for PostgresQL databases for Icingaweb2 modules that support it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
minor_changes: | ||
- Add support for Suse in the :code:`monitoring_plugins` role. |
4 changes: 4 additions & 0 deletions
4
changelogs/fragments/fix_292_icinga2_objects_documentation.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
|
||
minor_changes: | ||
- Change documentation to better reflect the intended usage of the variable 'icinga2_objects' as a host variable vs. as a play variable. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
bugfixes: | ||
- Fixed a bug in :code:`monitoring_plugins` where a requested plugin that is **unavailable** would cause a failure even though it is a **known** plugin and should be skipped (#327). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
bugfixes: | ||
- Icinga's packages no longer create '/var/log/icingadb-redis/'. Added tasks that create a log directory based on `icingadb_redis_logfile` (#298). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bugfixes: | ||
- "Certain values within Icinga Web :code:`ini` files got quoted incorrectly using single quotes. They are now quoted properly using double quotes (#301)." |
Oops, something went wrong.