ci: update tests

This commit is contained in:
mullholland 2023-05-28 08:12:46 +02:00
parent 5ebf1920a9
commit ae0a493e65
55 changed files with 381 additions and 103 deletions

View File

@ -28,5 +28,3 @@ Show at least the error, possible related output, maybe just all the output.
- Control node OS: [e.g. Debian 9] (`cat /etc/os-release`) - Control node OS: [e.g. Debian 9] (`cat /etc/os-release`)
- Control node Ansible version: [e.g. 2.9.1] (`ansible --version`) - Control node Ansible version: [e.g. 2.9.1] (`ansible --version`)
- Managed node OS: [e.g. CentOS 7] (`cat /etc/os-release`) - Managed node OS: [e.g. CentOS 7] (`cat /etc/os-release`)
Please consider [sponsoring me](https://github.com/sponsors/robertdebock).

View File

@ -15,5 +15,3 @@ Why is this feature required?
## Additional context ## Additional context
Add any other context about the feature request here. Add any other context about the feature request here.
Please consider [sponsoring me](https://github.com/sponsors/robertdebock).

View File

@ -160,6 +160,8 @@
dest: .semrelrc dest: .semrelrc
- source: go-semantic-release.yml - source: go-semantic-release.yml
dest: .github/workflows/go-semantic-release.yml dest: .github/workflows/go-semantic-release.yml
- source: dependabot.yml
dest: .github/dependabot.yml
loop_control: loop_control:
label: "{{ item.source }}" label: "{{ item.source }}"

View File

@ -2,7 +2,7 @@
You can really make a difference by: You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot. (Have a look at the [known issues](https://github.com/search?q=user%3Arobertdebock+is%3Aissue+state%3Aopen).) - [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot. (Have a look at the [known issues](https://github.com/search?q=user%3Amullholland+is%3Aissue+state%3Aopen).)
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code. - [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously. I'll try to help and take every contribution seriously.
@ -57,7 +57,7 @@ image=centos tag=7 tox
### [5. Optionally: Regenerate all dynamic content](#5-optionally-regenerate-all-dynamic-content) ### [5. Optionally: Regenerate all dynamic content](#5-optionally-regenerate-all-dynamic-content)
You can use [Ansible Generator](https://github.com/robertdebock/ansible-generator) to regenerate all dynamic content. You can use [Ansible Generator](https://github.com/mullholland/ansible-generator) to regenerate all dynamic content.
If you don't do it, I'll do it later for you. If you don't do it, I'll do it later for you.

View File

@ -0,0 +1,15 @@
---
{{ ansible_managed | comment }}
# Set update schedule for GitHub Actions
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
assignees:
- "mullholland"

View File

@ -4,6 +4,5 @@ A few roles to let CI try rendering files in different situations.
## Roles ## Roles
- `ansible-role-default` - A default role, as generated by the [skeleton](https://github.com/robertdebock/ansible-role-skeleton) template.
- `ansible-role-preferences` - Use `preferences.yml` to change behaviour. - `ansible-role-preferences` - Use `preferences.yml` to change behaviour.
- `ansible-role-minimal` - A role that has the minimum amount of files. - `ansible-role-minimal` - A role that has the minimum amount of files.

View File

@ -12,3 +12,9 @@ exclude_paths:
- ./.cache - ./.cache
- ./.github - ./.github
- ./requirements.yml - ./requirements.yml
skip_list:
- yaml[truthy]
enable_list:
- name[prefix]

View File

@ -28,5 +28,3 @@ Show at least the error, possible related output, maybe just all the output.
- Control node OS: [e.g. Debian 9] (`cat /etc/os-release`) - Control node OS: [e.g. Debian 9] (`cat /etc/os-release`)
- Control node Ansible version: [e.g. 2.9.1] (`ansible --version`) - Control node Ansible version: [e.g. 2.9.1] (`ansible --version`)
- Managed node OS: [e.g. CentOS 7] (`cat /etc/os-release`) - Managed node OS: [e.g. CentOS 7] (`cat /etc/os-release`)
Please consider [sponsoring me](https://github.com/sponsors/robertdebock).

View File

@ -15,5 +15,3 @@ Why is this feature required?
## Additional context ## Additional context
Add any other context about the feature request here. Add any other context about the feature request here.
Please consider [sponsoring me](https://github.com/sponsors/robertdebock).

View File

@ -0,0 +1,17 @@
---
#
# Ansible managed
#
# Set update schedule for GitHub Actions
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
assignees:
- "mullholland"

View File

@ -13,6 +13,6 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: galaxy - name: galaxy
uses: robertdebock/galaxy-action@1.2.0 uses: robertdebock/galaxy-action@1.2.1
with: with:
galaxy_api_key: ${{ secrets.galaxy_api_key }} galaxy_api_key: ${{ secrets.galaxy_api_key }}

View File

@ -0,0 +1,28 @@
---
#
# Ansible managed
#
name: Create a semantic release on push to main
on:
push:
branches:
- "main"
# If a 403 error occurs, make sure to set content permission to write
# see: https://github.com/go-semantic-release/action/issues/27
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- uses: go-semantic-release/action@v1
id: semrel
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
changelog-generator-opt: "emojis=true"

View File

@ -11,7 +11,7 @@ on:
- '*' - '*'
pull_request: pull_request:
schedule: schedule:
- cron: '9 5 5 * *' - cron: '7 4 4 * *'
jobs: jobs:
lint: lint:
@ -39,11 +39,11 @@ jobs:
tag: "latest" tag: "latest"
- image: "debian" - image: "debian"
tag: "bookworm" tag: "bookworm"
- image: "enterpriselinux" - image: "centos"
tag: "7" tag: "7"
- image: "enterpriselinux" - image: "centos"
tag: "8" tag: "8"
- image: "enterpriselinux" - image: "centos"
tag: "latest" tag: "latest"
- image: "fedora" - image: "fedora"
tag: "36" tag: "36"
@ -69,7 +69,8 @@ jobs:
- name: parse apparmor for mysql - name: parse apparmor for mysql
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- name: molecule - name: molecule
uses: robertdebock/molecule-action@5.0.2 uses: robertdebock/molecule-action@5.0.3
with: with:
namespace: mullholland
image: ${{ matrix.config.image }} image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }} tag: ${{ matrix.config.tag }}

View File

@ -1,5 +1,5 @@
--- ---
image: "robertdebock/github-action-molecule:5.0.0" image: "robertdebock/github-action-molecule:5.0.2"
variables: variables:
PY_COLORS: 1 PY_COLORS: 1
@ -22,11 +22,11 @@ molecule:
tag: "latest" tag: "latest"
- image: "debian" - image: "debian"
tag: "bookworm" tag: "bookworm"
- image: "enterpriselinux" - image: "centos"
tag: "7" tag: "7"
- image: "enterpriselinux" - image: "centos"
tag: "8" tag: "8"
- image: "enterpriselinux" - image: "centos"
tag: "latest" tag: "latest"
- image: "fedora" - image: "fedora"
tag: "36" tag: "36"
@ -45,6 +45,6 @@ molecule:
galaxy: galaxy:
script: script:
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} robertdebock ${CI_PROJECT_NAME} - ansible-galaxy role import --api-key ${GALAXY_API_KEY} mullholland ${CI_PROJECT_NAME}
rules: rules:
- if: $CI_COMMIT_TAG != null - if: $CI_COMMIT_TAG != null

View File

@ -0,0 +1,19 @@
{
"plugins": {
"commit-analyzer": {
"name": "default@^1.0.0"
},
"ci-condition": {
"name": "default"
},
"changelog-generator": {
"name": "default",
"options": {
"emojis": "true"
}
},
"provider": {
"name": "github"
}
}
}

View File

@ -2,7 +2,7 @@
You can really make a difference by: You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot. (Have a look at the [known issues](https://github.com/search?q=user%3Arobertdebock+is%3Aissue+state%3Aopen).) - [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot. (Have a look at the [known issues](https://github.com/search?q=user%3Amullholland+is%3Aissue+state%3Aopen).)
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code. - [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously. I'll try to help and take every contribution seriously.
@ -15,13 +15,13 @@ Here is how you can help, a lot of steps are related to GitHub, not specifically
### [1. Make an issue.](#1-make-an-issue) ### [1. Make an issue.](#1-make-an-issue)
When you spot an issue, [create an issue](https://github.com/robertdebock/ansible-role-default/issues). When you spot an issue, [create an issue](https://github.com/mullholland/ansible-role-default/issues).
Making the issue help me and others to find similar problems in the future. Making the issue help me and others to find similar problems in the future.
### [2. Fork the project.](#2-fork-the-project) ### [2. Fork the project.](#2-fork-the-project)
On the top right side of [the repository on GitHub](https://github.com/robertdebock/ansible-role-default), click `fork`. This copies everything to your GitHub namespace. On the top right side of [the repository on GitHub](https://github.com/mullholland/ansible-role-default), click `fork`. This copies everything to your GitHub namespace.
### [3. Make the changes](#3-make-the-changes) ### [3. Make the changes](#3-make-the-changes)
@ -57,7 +57,7 @@ image=centos tag=7 tox
### [5. Optionally: Regenerate all dynamic content](#5-optionally-regenerate-all-dynamic-content) ### [5. Optionally: Regenerate all dynamic content](#5-optionally-regenerate-all-dynamic-content)
You can use [Ansible Generator](https://github.com/robertdebock/ansible-generator) to regenerate all dynamic content. You can use [Ansible Generator](https://github.com/mullholland/ansible-generator) to regenerate all dynamic content.
If you don't do it, I'll do it later for you. If you don't do it, I'll do it later for you.
@ -73,4 +73,4 @@ Now I'll get a message that you've added some code. Thank you, really.
CI starts to test your changes. You can follow the progress on Travis. CI starts to test your changes. You can follow the progress on Travis.
Please consider [sponsoring me](https://github.com/sponsors/robertdebock). Please consider [sponsoring me](https://github.com/sponsors/mullholland).

View File

@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier same "printed page" as the copyright notice for easier
identification within third-party archives. identification within third-party archives.
Copyright 2023 Robert de Bock (robert@meinit.nl) Copyright 2023 Mullholland (mullholland)
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

View File

@ -15,7 +15,7 @@ driver:
name: docker name: docker
platforms: platforms:
- name: "default-${image:-fedora}-${tag:-latest}${TOX_ENVNAME}" - name: "default-${image:-fedora}-${tag:-latest}${TOX_ENVNAME}"
image: "${namespace:-robertdebock}/${image:-fedora}:${tag:-latest}" image: "${namespace:-mullholland}/docker-${image:-fedora}-systemd:${tag:-latest}"
command: /sbin/init command: /sbin/init
volumes: volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro - /sys/fs/cgroup:/sys/fs/cgroup:ro

View File

@ -2,13 +2,14 @@
# #
# Ansible managed # Ansible managed
# #
exclude_paths:
- ./meta/preferences.yml
- ./molecule/default/prepare.yml
- ./molecule/default/converge.yml
- ./molecule/default/verify.yml
- ./molecule/default/collections.yml - ./molecule/default/collections.yml
- ./.tox - ./.tox
- ./.cache - ./.cache
- ./.github - ./.github
- ./requirements.yml - ./requirements.yml
skip_list:
- yaml[truthy]
enable_list:
- name[prefix]

View File

@ -28,5 +28,3 @@ Show at least the error, possible related output, maybe just all the output.
- Control node OS: [e.g. Debian 9] (`cat /etc/os-release`) - Control node OS: [e.g. Debian 9] (`cat /etc/os-release`)
- Control node Ansible version: [e.g. 2.9.1] (`ansible --version`) - Control node Ansible version: [e.g. 2.9.1] (`ansible --version`)
- Managed node OS: [e.g. CentOS 7] (`cat /etc/os-release`) - Managed node OS: [e.g. CentOS 7] (`cat /etc/os-release`)
Please consider [sponsoring me](https://github.com/sponsors/robertdebock).

View File

@ -15,5 +15,3 @@ Why is this feature required?
## Additional context ## Additional context
Add any other context about the feature request here. Add any other context about the feature request here.
Please consider [sponsoring me](https://github.com/sponsors/robertdebock).

View File

@ -0,0 +1,17 @@
---
#
# Ansible managed
#
# Set update schedule for GitHub Actions
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
assignees:
- "mullholland"

View File

@ -13,6 +13,6 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: galaxy - name: galaxy
uses: robertdebock/galaxy-action@1.2.0 uses: robertdebock/galaxy-action@1.2.1
with: with:
galaxy_api_key: ${{ secrets.galaxy_api_key }} galaxy_api_key: ${{ secrets.galaxy_api_key }}

View File

@ -0,0 +1,28 @@
---
#
# Ansible managed
#
name: Create a semantic release on push to main
on:
push:
branches:
- "main"
# If a 403 error occurs, make sure to set content permission to write
# see: https://github.com/go-semantic-release/action/issues/27
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- uses: go-semantic-release/action@v1
id: semrel
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
changelog-generator-opt: "emojis=true"

View File

@ -11,7 +11,7 @@ on:
- '*' - '*'
pull_request: pull_request:
schedule: schedule:
- cron: '9 5 5 * *' - cron: '25 13 13 * *'
jobs: jobs:
lint: lint:
@ -39,11 +39,11 @@ jobs:
tag: "latest" tag: "latest"
- image: "debian" - image: "debian"
tag: "bookworm" tag: "bookworm"
- image: "enterpriselinux" - image: "centos"
tag: "7" tag: "7"
- image: "enterpriselinux" - image: "centos"
tag: "8" tag: "8"
- image: "enterpriselinux" - image: "centos"
tag: "latest" tag: "latest"
- image: "fedora" - image: "fedora"
tag: "36" tag: "36"
@ -69,7 +69,8 @@ jobs:
- name: parse apparmor for mysql - name: parse apparmor for mysql
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- name: molecule - name: molecule
uses: robertdebock/molecule-action@5.0.2 uses: robertdebock/molecule-action@5.0.3
with: with:
namespace: mullholland
image: ${{ matrix.config.image }} image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }} tag: ${{ matrix.config.tag }}

View File

@ -1,5 +1,5 @@
--- ---
image: "robertdebock/github-action-molecule:5.0.0" image: "robertdebock/github-action-molecule:5.0.2"
variables: variables:
PY_COLORS: 1 PY_COLORS: 1
@ -22,11 +22,11 @@ molecule:
tag: "latest" tag: "latest"
- image: "debian" - image: "debian"
tag: "bookworm" tag: "bookworm"
- image: "enterpriselinux" - image: "centos"
tag: "7" tag: "7"
- image: "enterpriselinux" - image: "centos"
tag: "8" tag: "8"
- image: "enterpriselinux" - image: "centos"
tag: "latest" tag: "latest"
- image: "fedora" - image: "fedora"
tag: "36" tag: "36"
@ -45,6 +45,6 @@ molecule:
galaxy: galaxy:
script: script:
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} robertdebock ${CI_PROJECT_NAME} - ansible-galaxy role import --api-key ${GALAXY_API_KEY} mullholland ${CI_PROJECT_NAME}
rules: rules:
- if: $CI_COMMIT_TAG != null - if: $CI_COMMIT_TAG != null

View File

@ -0,0 +1,19 @@
{
"plugins": {
"commit-analyzer": {
"name": "default@^1.0.0"
},
"ci-condition": {
"name": "default"
},
"changelog-generator": {
"name": "default",
"options": {
"emojis": "true"
}
},
"provider": {
"name": "github"
}
}
}

View File

@ -2,7 +2,7 @@
You can really make a difference by: You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot. (Have a look at the [known issues](https://github.com/search?q=user%3Arobertdebock+is%3Aissue+state%3Aopen).) - [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot. (Have a look at the [known issues](https://github.com/search?q=user%3Amullholland+is%3Aissue+state%3Aopen).)
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code. - [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously. I'll try to help and take every contribution seriously.
@ -15,13 +15,13 @@ Here is how you can help, a lot of steps are related to GitHub, not specifically
### [1. Make an issue.](#1-make-an-issue) ### [1. Make an issue.](#1-make-an-issue)
When you spot an issue, [create an issue](https://github.com/robertdebock/ansible-role-minimal/issues). When you spot an issue, [create an issue](https://github.com/mullholland/ansible-role-minimal/issues).
Making the issue help me and others to find similar problems in the future. Making the issue help me and others to find similar problems in the future.
### [2. Fork the project.](#2-fork-the-project) ### [2. Fork the project.](#2-fork-the-project)
On the top right side of [the repository on GitHub](https://github.com/robertdebock/ansible-role-minimal), click `fork`. This copies everything to your GitHub namespace. On the top right side of [the repository on GitHub](https://github.com/mullholland/ansible-role-minimal), click `fork`. This copies everything to your GitHub namespace.
### [3. Make the changes](#3-make-the-changes) ### [3. Make the changes](#3-make-the-changes)
@ -57,7 +57,7 @@ image=centos tag=7 tox
### [5. Optionally: Regenerate all dynamic content](#5-optionally-regenerate-all-dynamic-content) ### [5. Optionally: Regenerate all dynamic content](#5-optionally-regenerate-all-dynamic-content)
You can use [Ansible Generator](https://github.com/robertdebock/ansible-generator) to regenerate all dynamic content. You can use [Ansible Generator](https://github.com/mullholland/ansible-generator) to regenerate all dynamic content.
If you don't do it, I'll do it later for you. If you don't do it, I'll do it later for you.
@ -73,4 +73,4 @@ Now I'll get a message that you've added some code. Thank you, really.
CI starts to test your changes. You can follow the progress on Travis. CI starts to test your changes. You can follow the progress on Travis.
Please consider [sponsoring me](https://github.com/sponsors/robertdebock). Please consider [sponsoring me](https://github.com/sponsors/mullholland).

View File

@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier same "printed page" as the copyright notice for easier
identification within third-party archives. identification within third-party archives.
Copyright 2023 Robert de Bock (robert@meinit.nl) Copyright 2023 Mullholland (mullholland)
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

View File

@ -15,7 +15,7 @@ driver:
name: docker name: docker
platforms: platforms:
- name: "minimal-${image:-fedora}-${tag:-latest}${TOX_ENVNAME}" - name: "minimal-${image:-fedora}-${tag:-latest}${TOX_ENVNAME}"
image: "${namespace:-robertdebock}/${image:-fedora}:${tag:-latest}" image: "${namespace:-mullholland}/docker-${image:-fedora}-systemd:${tag:-latest}"
command: /sbin/init command: /sbin/init
volumes: volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro - /sys/fs/cgroup:/sys/fs/cgroup:ro
@ -23,5 +23,3 @@ platforms:
pre_build_image: yes pre_build_image: yes
provisioner: provisioner:
name: ansible name: ansible
verifier:
name: ansible

View File

@ -12,3 +12,9 @@ exclude_paths:
- ./.cache - ./.cache
- ./.github - ./.github
- ./requirements.yml - ./requirements.yml
skip_list:
- yaml[truthy]
enable_list:
- name[prefix]

View File

@ -28,5 +28,3 @@ Show at least the error, possible related output, maybe just all the output.
- Control node OS: [e.g. Debian 9] (`cat /etc/os-release`) - Control node OS: [e.g. Debian 9] (`cat /etc/os-release`)
- Control node Ansible version: [e.g. 2.9.1] (`ansible --version`) - Control node Ansible version: [e.g. 2.9.1] (`ansible --version`)
- Managed node OS: [e.g. CentOS 7] (`cat /etc/os-release`) - Managed node OS: [e.g. CentOS 7] (`cat /etc/os-release`)
Please consider [sponsoring me](https://github.com/sponsors/robertdebock).

View File

@ -15,5 +15,3 @@ Why is this feature required?
## Additional context ## Additional context
Add any other context about the feature request here. Add any other context about the feature request here.
Please consider [sponsoring me](https://github.com/sponsors/robertdebock).

View File

@ -0,0 +1,17 @@
---
#
# Ansible managed
#
# Set update schedule for GitHub Actions
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
assignees:
- "mullholland"

View File

@ -13,6 +13,6 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: galaxy - name: galaxy
uses: robertdebock/galaxy-action@1.2.0 uses: robertdebock/galaxy-action@1.2.1
with: with:
galaxy_api_key: ${{ secrets.galaxy_api_key }} galaxy_api_key: ${{ secrets.galaxy_api_key }}

View File

@ -0,0 +1,28 @@
---
#
# Ansible managed
#
name: Create a semantic release on push to main
on:
push:
branches:
- "main"
# If a 403 error occurs, make sure to set content permission to write
# see: https://github.com/go-semantic-release/action/issues/27
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- uses: go-semantic-release/action@v1
id: semrel
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
changelog-generator-opt: "emojis=true"

View File

@ -11,7 +11,7 @@ on:
- '*' - '*'
pull_request: pull_request:
schedule: schedule:
- cron: '9 5 5 * *' - cron: '31 16 16 * *'
jobs: jobs:
lint: lint:
@ -39,11 +39,11 @@ jobs:
tag: "latest" tag: "latest"
- image: "debian" - image: "debian"
tag: "bookworm" tag: "bookworm"
- image: "enterpriselinux" - image: "centos"
tag: "7" tag: "7"
- image: "enterpriselinux" - image: "centos"
tag: "8" tag: "8"
- image: "enterpriselinux" - image: "centos"
tag: "latest" tag: "latest"
- image: "fedora" - image: "fedora"
tag: "36" tag: "36"
@ -69,7 +69,10 @@ jobs:
- name: parse apparmor for mysql - name: parse apparmor for mysql
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- name: molecule - name: molecule
uses: robertdebock/molecule-action@5.0.2 uses: robertdebock/molecule-action@5.0.3
with: with:
namespace: mullholland
image: ${{ matrix.config.image }} image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }} tag: ${{ matrix.config.tag }}
env:
VAULT_LICENCE: ${{ secrets.VAULT_LICENSE }} someTHING: ${{ secrets.MY_VAR }}

View File

@ -1,5 +1,5 @@
--- ---
image: "robertdebock/github-action-molecule:5.0.0" image: "robertdebock/github-action-molecule:5.0.2"
variables: variables:
PY_COLORS: 1 PY_COLORS: 1
@ -22,11 +22,11 @@ molecule:
tag: "latest" tag: "latest"
- image: "debian" - image: "debian"
tag: "bookworm" tag: "bookworm"
- image: "enterpriselinux" - image: "centos"
tag: "7" tag: "7"
- image: "enterpriselinux" - image: "centos"
tag: "8" tag: "8"
- image: "enterpriselinux" - image: "centos"
tag: "latest" tag: "latest"
- image: "fedora" - image: "fedora"
tag: "36" tag: "36"
@ -45,6 +45,6 @@ molecule:
galaxy: galaxy:
script: script:
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} robertdebock ${CI_PROJECT_NAME} - ansible-galaxy role import --api-key ${GALAXY_API_KEY} mullholland ${CI_PROJECT_NAME}
rules: rules:
- if: $CI_COMMIT_TAG != null - if: $CI_COMMIT_TAG != null

View File

@ -0,0 +1,19 @@
{
"plugins": {
"commit-analyzer": {
"name": "default@^1.0.0"
},
"ci-condition": {
"name": "default"
},
"changelog-generator": {
"name": "default",
"options": {
"emojis": "true"
}
},
"provider": {
"name": "github"
}
}
}

View File

@ -2,7 +2,7 @@
You can really make a difference by: You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot. (Have a look at the [known issues](https://github.com/search?q=user%3Arobertdebock+is%3Aissue+state%3Aopen).) - [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot. (Have a look at the [known issues](https://github.com/search?q=user%3Amullholland+is%3Aissue+state%3Aopen).)
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code. - [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously. I'll try to help and take every contribution seriously.
@ -15,13 +15,13 @@ Here is how you can help, a lot of steps are related to GitHub, not specifically
### [1. Make an issue.](#1-make-an-issue) ### [1. Make an issue.](#1-make-an-issue)
When you spot an issue, [create an issue](https://github.com/robertdebock/ansible-role-preferences/issues). When you spot an issue, [create an issue](https://github.com/mullholland/ansible-role-preferences/issues).
Making the issue help me and others to find similar problems in the future. Making the issue help me and others to find similar problems in the future.
### [2. Fork the project.](#2-fork-the-project) ### [2. Fork the project.](#2-fork-the-project)
On the top right side of [the repository on GitHub](https://github.com/robertdebock/ansible-role-preferences), click `fork`. This copies everything to your GitHub namespace. On the top right side of [the repository on GitHub](https://github.com/mullholland/ansible-role-preferences), click `fork`. This copies everything to your GitHub namespace.
### [3. Make the changes](#3-make-the-changes) ### [3. Make the changes](#3-make-the-changes)
@ -57,7 +57,7 @@ image=centos tag=7 tox
### [5. Optionally: Regenerate all dynamic content](#5-optionally-regenerate-all-dynamic-content) ### [5. Optionally: Regenerate all dynamic content](#5-optionally-regenerate-all-dynamic-content)
You can use [Ansible Generator](https://github.com/robertdebock/ansible-generator) to regenerate all dynamic content. You can use [Ansible Generator](https://github.com/mullholland/ansible-generator) to regenerate all dynamic content.
If you don't do it, I'll do it later for you. If you don't do it, I'll do it later for you.
@ -73,4 +73,4 @@ Now I'll get a message that you've added some code. Thank you, really.
CI starts to test your changes. You can follow the progress on Travis. CI starts to test your changes. You can follow the progress on Travis.
Please consider [sponsoring me](https://github.com/sponsors/robertdebock). Please consider [sponsoring me](https://github.com/sponsors/mullholland).

View File

@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier same "printed page" as the copyright notice for easier
identification within third-party archives. identification within third-party archives.
Copyright 2023 Robert de Bock (robert@meinit.nl) Copyright 2023 Mullholland (mullholland)
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

View File

@ -15,7 +15,7 @@ driver:
name: docker name: docker
platforms: platforms:
- name: "preferences-${image:-fedora}-${tag:-latest}${TOX_ENVNAME}" - name: "preferences-${image:-fedora}-${tag:-latest}${TOX_ENVNAME}"
image: "${namespace:-robertdebock}/${image:-fedora}:${tag:-latest}" image: "${namespace:-mullholland}/docker-${image:-fedora}-systemd:${tag:-latest}"
command: /sbin/init command: /sbin/init
volumes: volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro - /sys/fs/cgroup:/sys/fs/cgroup:ro
@ -23,5 +23,8 @@ platforms:
pre_build_image: yes pre_build_image: yes
provisioner: provisioner:
name: ansible name: ansible
env:
VAULT_LICENCE: "${VAULT_LICENCE}"
someTHING: "${someTHING}"
verifier: verifier:
name: ansible name: ansible

View File

@ -12,3 +12,9 @@ exclude_paths:
- ./.cache - ./.cache
- ./.github - ./.github
- ./requirements.yml - ./requirements.yml
skip_list:
- yaml[truthy]
enable_list:
- name[prefix]

View File

@ -28,5 +28,3 @@ Show at least the error, possible related output, maybe just all the output.
- Control node OS: [e.g. Debian 9] (`cat /etc/os-release`) - Control node OS: [e.g. Debian 9] (`cat /etc/os-release`)
- Control node Ansible version: [e.g. 2.9.1] (`ansible --version`) - Control node Ansible version: [e.g. 2.9.1] (`ansible --version`)
- Managed node OS: [e.g. CentOS 7] (`cat /etc/os-release`) - Managed node OS: [e.g. CentOS 7] (`cat /etc/os-release`)
Please consider [sponsoring me](https://github.com/sponsors/robertdebock).

View File

@ -15,5 +15,3 @@ Why is this feature required?
## Additional context ## Additional context
Add any other context about the feature request here. Add any other context about the feature request here.
Please consider [sponsoring me](https://github.com/sponsors/robertdebock).

View File

@ -0,0 +1,17 @@
---
#
# Ansible managed
#
# Set update schedule for GitHub Actions
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
assignees:
- "mullholland"

View File

@ -13,6 +13,6 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: galaxy - name: galaxy
uses: robertdebock/galaxy-action@1.2.0 uses: robertdebock/galaxy-action@1.2.1
with: with:
galaxy_api_key: ${{ secrets.galaxy_api_key }} galaxy_api_key: ${{ secrets.galaxy_api_key }}

View File

@ -0,0 +1,28 @@
---
#
# Ansible managed
#
name: Create a semantic release on push to main
on:
push:
branches:
- "main"
# If a 403 error occurs, make sure to set content permission to write
# see: https://github.com/go-semantic-release/action/issues/27
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- uses: go-semantic-release/action@v1
id: semrel
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
changelog-generator-opt: "emojis=true"

View File

@ -11,7 +11,7 @@ on:
- '*' - '*'
pull_request: pull_request:
schedule: schedule:
- cron: '9 5 5 * *' - cron: '43 22 22 * *'
jobs: jobs:
lint: lint:
@ -39,11 +39,11 @@ jobs:
tag: "latest" tag: "latest"
- image: "debian" - image: "debian"
tag: "bookworm" tag: "bookworm"
- image: "enterpriselinux" - image: "centos"
tag: "7" tag: "7"
- image: "enterpriselinux" - image: "centos"
tag: "8" tag: "8"
- image: "enterpriselinux" - image: "centos"
tag: "latest" tag: "latest"
- image: "fedora" - image: "fedora"
tag: "36" tag: "36"
@ -69,7 +69,8 @@ jobs:
- name: parse apparmor for mysql - name: parse apparmor for mysql
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- name: molecule - name: molecule
uses: robertdebock/molecule-action@5.0.2 uses: robertdebock/molecule-action@5.0.3
with: with:
namespace: mullholland
image: ${{ matrix.config.image }} image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }} tag: ${{ matrix.config.tag }}

View File

@ -1,5 +1,5 @@
--- ---
image: "robertdebock/github-action-molecule:5.0.0" image: "robertdebock/github-action-molecule:5.0.2"
variables: variables:
PY_COLORS: 1 PY_COLORS: 1
@ -22,11 +22,11 @@ molecule:
tag: "latest" tag: "latest"
- image: "debian" - image: "debian"
tag: "bookworm" tag: "bookworm"
- image: "enterpriselinux" - image: "centos"
tag: "7" tag: "7"
- image: "enterpriselinux" - image: "centos"
tag: "8" tag: "8"
- image: "enterpriselinux" - image: "centos"
tag: "latest" tag: "latest"
- image: "fedora" - image: "fedora"
tag: "36" tag: "36"
@ -45,6 +45,6 @@ molecule:
galaxy: galaxy:
script: script:
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} robertdebock ${CI_PROJECT_NAME} - ansible-galaxy role import --api-key ${GALAXY_API_KEY} mullholland ${CI_PROJECT_NAME}
rules: rules:
- if: $CI_COMMIT_TAG != null - if: $CI_COMMIT_TAG != null

View File

@ -0,0 +1,19 @@
{
"plugins": {
"commit-analyzer": {
"name": "default@^1.0.0"
},
"ci-condition": {
"name": "default"
},
"changelog-generator": {
"name": "default",
"options": {
"emojis": "true"
}
},
"provider": {
"name": "github"
}
}
}

View File

@ -2,7 +2,7 @@
You can really make a difference by: You can really make a difference by:
- [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot. (Have a look at the [known issues](https://github.com/search?q=user%3Arobertdebock+is%3Aissue+state%3Aopen).) - [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot. (Have a look at the [known issues](https://github.com/search?q=user%3Amullholland+is%3Aissue+state%3Aopen).)
- [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code. - [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code.
I'll try to help and take every contribution seriously. I'll try to help and take every contribution seriously.
@ -15,13 +15,13 @@ Here is how you can help, a lot of steps are related to GitHub, not specifically
### [1. Make an issue.](#1-make-an-issue) ### [1. Make an issue.](#1-make-an-issue)
When you spot an issue, [create an issue](https://github.com/robertdebock/ansible-role-version/issues). When you spot an issue, [create an issue](https://github.com/mullholland/ansible-role-version/issues).
Making the issue help me and others to find similar problems in the future. Making the issue help me and others to find similar problems in the future.
### [2. Fork the project.](#2-fork-the-project) ### [2. Fork the project.](#2-fork-the-project)
On the top right side of [the repository on GitHub](https://github.com/robertdebock/ansible-role-version), click `fork`. This copies everything to your GitHub namespace. On the top right side of [the repository on GitHub](https://github.com/mullholland/ansible-role-version), click `fork`. This copies everything to your GitHub namespace.
### [3. Make the changes](#3-make-the-changes) ### [3. Make the changes](#3-make-the-changes)
@ -57,7 +57,7 @@ image=centos tag=7 tox
### [5. Optionally: Regenerate all dynamic content](#5-optionally-regenerate-all-dynamic-content) ### [5. Optionally: Regenerate all dynamic content](#5-optionally-regenerate-all-dynamic-content)
You can use [Ansible Generator](https://github.com/robertdebock/ansible-generator) to regenerate all dynamic content. You can use [Ansible Generator](https://github.com/mullholland/ansible-generator) to regenerate all dynamic content.
If you don't do it, I'll do it later for you. If you don't do it, I'll do it later for you.
@ -73,4 +73,4 @@ Now I'll get a message that you've added some code. Thank you, really.
CI starts to test your changes. You can follow the progress on Travis. CI starts to test your changes. You can follow the progress on Travis.
Please consider [sponsoring me](https://github.com/sponsors/robertdebock). Please consider [sponsoring me](https://github.com/sponsors/mullholland).

View File

@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier same "printed page" as the copyright notice for easier
identification within third-party archives. identification within third-party archives.
Copyright 2023 Robert de Bock (robert@meinit.nl) Copyright 2023 Mullholland (mullholland)
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

View File

@ -15,7 +15,7 @@ driver:
name: docker name: docker
platforms: platforms:
- name: "version-${image:-fedora}-${tag:-latest}${TOX_ENVNAME}" - name: "version-${image:-fedora}-${tag:-latest}${TOX_ENVNAME}"
image: "${namespace:-robertdebock}/${image:-fedora}:${tag:-latest}" image: "${namespace:-mullholland}/docker-${image:-fedora}-systemd:${tag:-latest}"
command: /sbin/init command: /sbin/init
volumes: volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro - /sys/fs/cgroup:/sys/fs/cgroup:ro

View File

@ -7,7 +7,7 @@ platform_image_mapping:
Amazon: amazonlinux Amazon: amazonlinux
Archlinux: archlinux Archlinux: archlinux
Debian: debian Debian: debian
EL: enterpriselinux EL: centos
Fedora: fedora Fedora: fedora
opensuse: opensuse opensuse: opensuse
Ubuntu: ubuntu Ubuntu: ubuntu