-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
125 additions
and
204 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,2 @@ | ||
--- | ||
github: buluma |
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: galaxy | ||
uses: buluma/[email protected] | ||
# uses: buluma/[email protected] # TODO: rebuild action | ||
uses: robertdebock/[email protected] | ||
with: | ||
galaxy_api_key: ${{ secrets.galaxy_api_key }} | ||
git_branch: master |
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 |
---|---|---|
|
@@ -6,11 +6,19 @@ | |
name: Ansible Molecule | ||
|
||
on: | ||
# Schedule updates (once daily) | ||
push: | ||
branches: | ||
- master | ||
- main | ||
- testing | ||
paths-ignore: | ||
- '**/README.md' | ||
- '**/CHANGELOG.md' | ||
tags_ignore: | ||
- '*' | ||
pull_request: | ||
schedule: | ||
- cron: '1 1 * * *' | ||
workflow_dispatch: | ||
push: {branches: ["master", "main"]} | ||
- cron: '1 1 1 * *' | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
|
@@ -21,13 +29,9 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: "${{ github.repository }}" | ||
- name: molecule | ||
uses: buluma/[email protected] | ||
with: | ||
command: lint | ||
uses: actions/checkout@v4 | ||
- name: ansible-lint | ||
uses: ansible-community/ansible-lint-action@main | ||
test: | ||
needs: | ||
- lint | ||
|
@@ -38,31 +42,31 @@ jobs: | |
config: | ||
- image: "enterpriselinux" | ||
tag: "7" | ||
- image: "enterpriselinux" | ||
tag: "8" | ||
- image: "enterpriselinux" | ||
tag: "latest" | ||
- image: "debian-systemd" | ||
tag: "latest" | ||
- image: "debian-systemd" | ||
tag: "bookworm" | ||
- image: "fedora-systemd" | ||
tag: "34" | ||
tag: "bullseye" | ||
- image: "fedora-systemd" | ||
tag: "35" | ||
tag: "37" | ||
- image: "fedora-systemd" | ||
tag: "latest" | ||
- image: "docker-ubuntu-systemd" | ||
tag: "bionic" | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
path: "${{ github.repository }}" | ||
- name: disable apparmor for mysql | ||
run: sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/ | ||
- name: parse apparmor for mysql | ||
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld | ||
- name: molecule | ||
uses: buluma/molecule-action@v4.0.7 | ||
uses: buluma/molecule-action@v5.0.9 | ||
with: | ||
image: ${{ matrix.config.image }} | ||
tag: ${{ matrix.config.tag }} |
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 |
---|---|---|
|
@@ -4,26 +4,23 @@ | |
# | ||
|
||
on: | ||
workflow_dispatch: | ||
push: {branches: ["master", "main"]} | ||
|
||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
push: | ||
paths: | ||
- '.github/workflows/requirements2png.yml' | ||
name: Ansible Graphviz | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
path: ${{ github.repository }} | ||
- name: create png | ||
uses: buluma/[email protected] | ||
uses: buluma/[email protected] # TODO: Update action | ||
- name: Commit files | ||
run: | | ||
cd ${{ github.repository }} | ||
|
@@ -34,7 +31,6 @@ jobs: | |
- name: save to png branch | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
directory: ${{ github.repository }} | ||
force: true | ||
branch: png |
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 |
---|---|---|
|
@@ -8,18 +8,13 @@ name: "TODO 2 Issue" | |
on: | ||
push: | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: "ubuntu-20.04" | ||
steps: | ||
- uses: "actions/checkout@v3" | ||
- uses: "actions/checkout@master" | ||
- name: "TODO to Issue" | ||
uses: "buluma/[email protected]" | ||
uses: "alstr/[email protected]" # TODO: Update buluma/[email protected] @buluma | ||
id: "todo" | ||
with: | ||
USER_PROJECTS: buluma/Ansible/To do | ||
PROJECTS_SECRET: ${{ secrets.PROJECTS_SECRET }} | ||
TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,110 +1,36 @@ | ||
--- | ||
image: "buluma/github-action-molecule:4.0.7" | ||
|
||
services: | ||
- docker:dind | ||
image: "buluma/github-action-molecule:5.0.9" | ||
|
||
variables: | ||
DOCKER_HOST: "tcp://docker:2375" | ||
PY_COLORS: 1 | ||
|
||
molecule: | ||
stage: build | ||
allow_failure: true | ||
script: | ||
- image=${image} tag=${tag} molecule test | ||
retry: 1 | ||
parallel: | ||
matrix: | ||
- image: "enterpriselinux" | ||
tag: "7" | ||
- image: "enterpriselinux" | ||
tag: "latest" | ||
- image: "debian-systemd" | ||
tag: "latest" | ||
- image: "debian-systemd" | ||
tag: "bookworm" | ||
- image: "fedora-systemd" | ||
tag: "34" | ||
- image: "fedora-systemd" | ||
tag: "35" | ||
- image: "fedora-systemd" | ||
tag: "latest" | ||
- image: "docker-ubuntu-systemd" | ||
tag: "bionic" | ||
|
||
testing: | ||
stage: test | ||
needs: [] | ||
script: | ||
- image=${image} tag=${tag} molecule test | ||
- molecule test | ||
rules: | ||
- if: $CI_COMMIT_REF_NAME == "testing" | ||
retry: 1 | ||
- if: $CI_COMMIT_REF_NAME == "master" | ||
allow_failure: true | ||
parallel: | ||
matrix: | ||
- image: "enterpriselinux" | ||
tag: "7" | ||
- image: "enterpriselinux" | ||
tag: "8" | ||
- image: "enterpriselinux" | ||
tag: "latest" | ||
- image: "debian-systemd" | ||
tag: "latest" | ||
- image: "debian-systemd" | ||
tag: "bookworm" | ||
tag: "bullseye" | ||
- image: "fedora-systemd" | ||
tag: "34" | ||
- image: "fedora-systemd" | ||
tag: "35" | ||
tag: "37" | ||
- image: "fedora-systemd" | ||
tag: "latest" | ||
- image: "docker-ubuntu-systemd" | ||
tag: "bionic" | ||
|
||
galaxy: | ||
stage: deploy | ||
needs: [] | ||
script: | ||
- ansible-galaxy role info buluma.ara_api | ||
|
||
role_testing: | ||
stage: test | ||
needs: [] | ||
script: | ||
- image=${image} tag=${tag} ansible-galaxy install buluma.ara_api | ||
retry: 1 | ||
parallel: | ||
matrix: | ||
- image: "enterpriselinux" | ||
tag: "7" | ||
- image: "enterpriselinux" | ||
tag: "latest" | ||
- image: "debian-systemd" | ||
tag: "latest" | ||
- image: "debian-systemd" | ||
tag: "bookworm" | ||
- image: "fedora-systemd" | ||
tag: "34" | ||
- image: "fedora-systemd" | ||
tag: "35" | ||
- image: "fedora-systemd" | ||
tag: "latest" | ||
- image: "docker-ubuntu-systemd" | ||
tag: "bionic" | ||
|
||
release_job: | ||
stage: .post | ||
needs: [molecule] | ||
image: registry.gitlab.com/gitlab-org/release-cli:latest | ||
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} buluma ${CI_PROJECT_NAME} | ||
rules: | ||
- if: $CI_COMMIT_TAG | ||
script: | ||
- echo "Running the release job." | ||
release: | ||
tag_name: $CI_COMMIT_TAG | ||
name: 'Release $CI_COMMIT_TAG' | ||
description: 'Release created using the release-cli.' | ||
artifacts: | ||
name: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME" | ||
paths: | ||
- / | ||
expire_in: 1 day | ||
- if: $CI_COMMIT_TAG != null |
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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.2.0 | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-added-large-files | ||
|
||
- repo: https://github.com/adrienverge/yamllint | ||
rev: v1.26.3 | ||
rev: v1.32.0 | ||
hooks: | ||
- id: yamllint | ||
args: [-c=.yamllint] | ||
|
||
- repo: https://github.com/buluma/pre-commit | ||
rev: v1.0.2 | ||
rev: v1.0.3 | ||
hooks: | ||
- id: ansible_role_find_unused_variable | ||
- id: ansible_role_find_empty_files | ||
- id: ansible_role_find_empty_directories | ||
- id: ansible_role_fix_readability | ||
- id: ansible_role_find_undefined_handlers | ||
- id: ansible_role_find_unquoted_values | ||
- id: ansible_role_find_horizontal_when |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
Apache License | ||
Version 2.0, 05 2022 | ||
Version 2.0, January 2004 | ||
http://www.apache.org/licenses/ | ||
|
||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | ||
|
@@ -187,7 +187,7 @@ | |
same "printed page" as the copyright notice for easier | ||
identification within third-party archives. | ||
|
||
Copyright 2022 Michael Buluma ([email protected]) | ||
Copyright 2023 Shadow Walker ([email protected]) | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
Oops, something went wrong.