-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring/2.0
- Loading branch information
Showing
41 changed files
with
855 additions
and
269 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @sbaerlocher |
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,20 @@ | ||
--- | ||
# Set to true to add reviewers to pull requests | ||
addReviewers: true | ||
|
||
# Set to true to add assignees to pull requests | ||
addAssignees: true | ||
|
||
# A list of reviewers to be added to pull requests (GitHub user name) | ||
reviewers: [] | ||
|
||
# A number of reviewers added to the pull request | ||
# Set 0 to add all the reviewers (default: 0) | ||
numberOfReviewers: 0 | ||
# A list of assignees, overrides reviewers if set | ||
assignees: | ||
- sbaerlocher | ||
# A number of assignees to add to the pull request | ||
# Set to 0 to add all of the assignees. | ||
# Uses numberOfReviewers if unset. | ||
numberOfAssignees: 0 |
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,7 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' |
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,5 @@ | ||
--- | ||
default: true | ||
MD024: false | ||
MD013: | ||
line_length: 160 |
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,10 @@ | ||
--- | ||
extends: default | ||
rules: | ||
line-length: disable | ||
comments: disable | ||
|
||
ignore: | | ||
.github/workflows/* | ||
*/lint.yml | ||
*/release.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,47 @@ | ||
--- | ||
repository: | ||
# See https://developer.github.com/v3/repos/#edit for all available settings. | ||
|
||
# The name of the repository. Changing this will rename the repository | ||
name: ansible.sudoers | ||
|
||
# A short description of the repository that will show up on GitHub | ||
description: Manage sudoers and sudoers.d in Debian-like systems. | ||
|
||
# A comma-separated list of topics to set on the repository | ||
topics: ansible, ansible-role, sudores | ||
|
||
# Either `true` to make the repository private, or `false` to make it public. | ||
private: false | ||
|
||
# Either `true` to enable issues for this repository, `false` to disable them. | ||
has_issues: true | ||
|
||
# Either `true` to enable the wiki for this repository, `false` to disable it. | ||
has_wiki: false | ||
|
||
# Either `true` to enable downloads for this repository, `false` to disable them. | ||
has_downloads: true | ||
|
||
# Updates the default branch for this repository. | ||
default_branch: main | ||
|
||
# Either `true` to allow squash-merging pull requests, or `false` to prevent | ||
# squash-merging. | ||
allow_squash_merge: true | ||
|
||
# Either `true` to allow merging pull requests with a merge commit, or `false` | ||
# to prevent merging pull requests with merge commits. | ||
allow_merge_commit: true | ||
|
||
# Either `true` to allow rebase-merging pull requests, or `false` to prevent | ||
# rebase-merging. | ||
allow_rebase_merge: true | ||
|
||
branches: | ||
- name: main | ||
# https://developer.github.com/v3/repos/branches/#update-branch-protection | ||
# Branch Protection settings. Set to null to disable | ||
required_status_checks: | ||
# Required. Require branches to be up to date before merging. | ||
strict: true |
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,26 @@ | ||
--- | ||
name: Lint Code Base | ||
|
||
on: | ||
push: | ||
branches-ignore: [main] | ||
|
||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
name: Lint Code Base | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Lint Code Base | ||
uses: github/super-linter@v3 | ||
env: | ||
DEFAULT_BRANCH: main | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ANSIBLE_DIRECTORY: / |
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,42 @@ | ||
--- | ||
name: Role Release | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
name: Role Release Test | ||
|
||
defaults: | ||
run: | ||
working-directory: arillso.sudoers | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
with: | ||
path: arillso.sudoers | ||
|
||
- name: Test Ansible with Molecule | ||
uses: arillso/action.molecule@0.0.1 | ||
with: | ||
command: test | ||
working_directory: arillso.sudoers | ||
|
||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
name: Role Release Publish | ||
|
||
if: always() | ||
needs: | ||
- release | ||
|
||
steps: | ||
- name: Release Ansible Role to Galaxy | ||
uses: robertdebock/galaxy-action@1.1.0 | ||
with: | ||
galaxy_api_key: ${{ secrets.GALAXY_API_KEY }} |
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,40 @@ | ||
--- | ||
name: Role Tests | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: arillso.sudoers | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 4 | ||
matrix: | ||
scenario: | ||
- alpine-3.11 | ||
- alpine-3.12 | ||
- centos-7 | ||
- centos-8 | ||
- debian-bullseye | ||
- debian-buster | ||
- debian-sid | ||
- ubuntu-bionic | ||
- ubuntu-focal | ||
- ubuntu-xenial | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
with: | ||
path: arillso.sudoers | ||
|
||
- name: Test Ansible with Molecule | ||
uses: arillso/action.molecule@0.0.1 | ||
with: | ||
command: test | ||
working_directory: arillso.sudoers | ||
scenario: ${{ matrix.scenario }} |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
.github/linters/.yaml-lint.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,55 @@ | ||
# Changelog | ||
|
||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) | ||
and [human-readable changelog](https://keepachangelog.com/en/1.0.0/). | ||
|
||
## 2.0.0 | ||
|
||
### Added | ||
|
||
- Added github action for the integration tests. | ||
- Added test scenario for different OS. | ||
- Added compatibility for Ansible 2.10. | ||
|
||
### Removed | ||
|
||
- Degreasing support for Ansible Version under 2.9. | ||
|
||
## 1.2.1 | ||
|
||
### Changed | ||
|
||
- update min ansible version to 2.8 | ||
- changelog to your own file | ||
- travis file has been updated | ||
- Documentation has been improved | ||
|
||
### Added | ||
|
||
- molecule testing | ||
|
||
## 1.2.0 | ||
|
||
### Added | ||
|
||
- Always prepend OS defaults and privileges unless disabled | ||
|
||
### Fixed | ||
|
||
- fix variables files found | ||
|
||
## 1.1.0 | ||
|
||
### Changed | ||
|
||
- rename role name | ||
|
||
### Added | ||
|
||
- add new tests | ||
|
||
## 1.0.0 | ||
|
||
### Added | ||
|
||
- Initial release |
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
Oops, something went wrong.