Skip to content

Commit

Permalink
Version 2.0.0
Browse files Browse the repository at this point in the history
Refactoring/2.0
  • Loading branch information
sbaerlocher authored Dec 4, 2020
2 parents 2255fb8 + fc95b03 commit d8cb5ce
Show file tree
Hide file tree
Showing 41 changed files with 855 additions and 269 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @sbaerlocher
20 changes: 20 additions & 0 deletions .github/auto_assign.yml
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
7 changes: 7 additions & 0 deletions .github/dependabot.yml
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'
5 changes: 5 additions & 0 deletions .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
default: true
MD024: false
MD013:
line_length: 160
10 changes: 10 additions & 0 deletions .github/linters/.yaml-lint.yml
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
47 changes: 47 additions & 0 deletions .github/settings.yml
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
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
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: /
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
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 }}
40 changes: 40 additions & 0 deletions .github/workflows/tests.yml
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 }}
48 changes: 0 additions & 48 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions .yamllint
55 changes: 55 additions & 0 deletions CHANGELOG.md
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
10 changes: 5 additions & 5 deletions LICENSE.txt → LICENSE
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Copyright (c) Oefenweb.nl <https://github.com/Oefenweb>
Copyright (c) 2020 Arillso

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Expand Down
Loading

0 comments on commit d8cb5ce

Please sign in to comment.