Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiyasuratov committed Oct 26, 2023
0 parents commit 8f7b44e
Show file tree
Hide file tree
Showing 28 changed files with 1,093 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
skip_list:
- yaml

exclude_paths:
- vendor
10 changes: 10 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[bumpversion]
current_version = 0.0.0
commit = True
message = chore: bump version: {current_version} -> {new_version}
tag = True
tag_name = {new_version}

[bumpversion:file:README.md]
search = version: {current_version}
replace = version: {new_version}
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# editorconfig.org

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: CI

on:
pull_request:
workflow_dispatch:
push:
branches: [main]
paths:
- defaults/**
- handlers/**
- molecule/**
- tasks/**
- templates/**
- vars/**
schedule:
- cron: 0 1 * * 3

jobs:
test:
name: Molecule
runs-on: ubuntu-latest
strategy:
matrix:
distro:
- ubuntu2204
- ubuntu2004
- debian12
- debian11

steps:
- name: Check out the codebase.
uses: actions/checkout@v2

- name: Set up Python 3.
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install test dependencies.
run: pip3 install ansible molecule molecule-plugins[docker] docker yamllint ansible-lint

- name: Run Molecule tests.
run: molecule test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_DISTRO: ${{ matrix.distro }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.venv
.vscode
Makefile.venv
/vendor/
31 changes: 31 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

- repo: https://github.com/lyz-code/yamlfix
rev: 1.13.0
hooks:
- id: yamlfix
exclude: ^.github/

- repo: https://github.com/ansible/ansible-lint
rev: v6.20.3
hooks:
- id: ansible-lint
name: ansible-lint
entry: >-
env ANSIBLE_COLLECTIONS_PATHS=vendor/collections
env ANSIBLE_ROLES_PATH=vendor/roles
ansible-lint --config-file .ansible-lint
pass_filenames: false
files: \.(yaml|yml)$
args:
- --profile=production
7 changes: 7 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
extends: default

rules:
line-length:
max: 200
level: warning
Loading

0 comments on commit 8f7b44e

Please sign in to comment.