From 191b4f5bd114dac26b1f0bf2acf2b563a4e384b9 Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Thu, 12 Sep 2024 19:13:15 +0200 Subject: [PATCH] chore: initial commit --- .ansible-lint | 8 ++++++++ .cz.toml | 7 +++++++ .gitea/workflows/.gitkeep | 0 .gitignore | 11 +++++++++++ .pre-commit-config.yaml | 20 ++++++++++++++++++++ .yamllint | 40 +++++++++++++++++++++++++++++++++++++++ LICENSE | 20 ++++++++++++++++++++ README.md | 4 ++++ docs/.gitkeep | 0 galaxy.yml | 32 +++++++++++++++++++++++++++++++ meta/.gitkeep | 0 molecule/.gitkeep | 0 playbooks/.gitkeep | 0 plugins/.gitkeep | 0 roles/.gitkeep | 0 15 files changed, 142 insertions(+) create mode 100644 .ansible-lint create mode 100644 .cz.toml create mode 100644 .gitea/workflows/.gitkeep create mode 100644 .gitignore create mode 100644 .pre-commit-config.yaml create mode 100644 .yamllint create mode 100644 LICENSE create mode 100644 README.md create mode 100644 docs/.gitkeep create mode 100644 galaxy.yml create mode 100644 meta/.gitkeep create mode 100644 molecule/.gitkeep create mode 100644 playbooks/.gitkeep create mode 100644 plugins/.gitkeep create mode 100644 roles/.gitkeep diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..0d93798 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,8 @@ +--- +warn_list: + - experimental # all rules tagged as experimental + - yaml # violations reported by yamllint + - meta-no-info + +skip_list: + - jinja[spacing] # Rule that looks inside jinja2 templates. diff --git a/.cz.toml b/.cz.toml new file mode 100644 index 0000000..088e162 --- /dev/null +++ b/.cz.toml @@ -0,0 +1,7 @@ +[tool.commitizen] +name = "cz_conventional_commits" +version_provider = "scm" +version_files = ["galaxy.yml:^version"] +update_changelog_on_bump = true +major_version_zero = true +tag_format = "v$version" diff --git a/.gitea/workflows/.gitkeep b/.gitea/workflows/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cb534dd --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# ignore molecule/testinfra pycache +**/__pycache__ +.vscode +roles/ednz_cloud.* +vault_config.yml +consul_config.yml +**/certificates/** +**/secrets/credentials.yml +**/secrets/credentials.decrypt.yml +**/secrets/vault.yml +**/.ansible-vault diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..6403a89 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,20 @@ +--- +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - repo: https://github.com/adrienverge/yamllint.git + rev: v1.35.1 + hooks: + - id: yamllint + args: [-c=./.yamllint] + - repo: https://github.com/commitizen-tools/commitizen + rev: v3.24.0 + hooks: + - id: commitizen + - id: commitizen-branch + stages: + - post-commit + - push diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..24fdec5 --- /dev/null +++ b/.yamllint @@ -0,0 +1,40 @@ +--- +# Based on ansible-lint config +extends: default + +rules: + braces: + max-spaces-inside: 1 + level: error + brackets: + max-spaces-inside: 1 + level: error + colons: + max-spaces-after: -1 + level: error + commas: + max-spaces-after: -1 + level: error + comments: enable + comments-indentation: disable + document-start: enable + empty-lines: + max: 3 + level: error + hyphens: + level: error + indentation: enable + key-duplicates: enable + line-length: + max: 80 + level: warning + new-line-at-end-of-file: enable + new-lines: + type: unix + trailing-spaces: enable + truthy: + allowed-values: + - 'true' + - 'false' + - 'yes' + - 'no' diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f412dc0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2023 Bertrand Lanson + +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: + +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, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..6bfa80e --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# 🚀 Ansible Infomaniak Collection + +![Ansible Badge](https://img.shields.io/badge/Ansible-E00?logo=ansible&logoColor=fff&style=for-the-badge) +![Infomaniak Badge](https://img.shields.io/badge/Infomaniak-0098FF?logo=infomaniak&logoColor=fff&style=for-the-badge) diff --git a/docs/.gitkeep b/docs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/galaxy.yml b/galaxy.yml new file mode 100644 index 0000000..47e2822 --- /dev/null +++ b/galaxy.yml @@ -0,0 +1,32 @@ +--- +namespace: ednz_cloud +name: hashistack +version: 0.7.0 +readme: README.md +authors: + - Bertrand Lanson +description: your collection description +license: ["MIT"] +license_file: "LICENSE" + +# A list of tags you want to associate with the collection for indexing/searching. A tag name has the same character +# requirements as 'namespace' and 'name' +tags: ["tools"] +dependencies: {} +repository: https://git.ednz.fr/ansible-collections/hashistack +documentation: http://docs.example.com +homepage: http://example.com +issues: http://example.com/issue/tracker +# A list of file glob-like patterns used to filter any files or directories that should not be included in the build +# artifact. A pattern is matched from the relative path of the file or directory of the collection directory. This +# uses 'fnmatch' to match the files or directories. Some directories and files like 'galaxy.yml', '*.pyc', '*.retry', +# and '.git' are always filtered. Mutually exclusive with 'manifest' +build_ignore: + - assets** + - .gitea** +# A dict controlling use of manifest directives used in building the collection artifact. The key 'directives' is a +# list of MANIFEST.in style +# L(directives,https://packaging.python.org/en/latest/guides/using-manifest-in/#manifest-in-commands). The key +# 'omit_default_directives' is a boolean that controls whether the default directives are used. Mutually exclusive +# with 'build_ignore' +# manifest: null diff --git a/meta/.gitkeep b/meta/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/molecule/.gitkeep b/molecule/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/playbooks/.gitkeep b/playbooks/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/plugins/.gitkeep b/plugins/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/roles/.gitkeep b/roles/.gitkeep new file mode 100644 index 0000000..e69de29