initial commit

This commit is contained in:
Robert Kaussow 2020-08-17 20:47:55 +02:00
commit 48bb0c136a
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
8 changed files with 131 additions and 0 deletions

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 Robert Kaussow <mail@geeklabor.de>
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 (including the next
paragraph) 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.

13
README.md Normal file
View File

@ -0,0 +1,13 @@
# cookiecutter-ansible-collection
Cookiecutter recipe to easily create Ansible collection.
Usage: `cookiecutter https://gitea.rknet.org/xoxys/cookiecutter-ansible-collection`
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Maintainers and Contributors
[Robert Kaussow](https://gitea.rknet.org/xoxys)

10
cookiecutter.json Normal file
View File

@ -0,0 +1,10 @@
{
"author": "xoxys",
"author_full": "Robert Kaussow",
"author_email": "mail@thegeeklab.de",
"collection_name": "my_collection",
"collection_description_short": "My demo collection",
"collection_category": "misc",
"git_server": "gitea.rknet.org:ansible",
"license_year": "{% now 'Europe/Berlin', '%Y' %}"
}

View File

@ -0,0 +1,6 @@
#!/usr/bin/env sh
if hash git 2>/dev/null; then
git init
git remote add origin gitea@{{ cookiecutter.git_server }}/xoxys.{{ cookiecutter.collection_name }}.git
fi

View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) {{ cookiecutter.license_year }} {{ cookiecutter.author_full }} <{{ cookiecutter.author_email }}>
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 (including the next
paragraph) 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.

View File

@ -0,0 +1,14 @@
# {{ cookiecutter.namespace }}.{{ cookiecutter.collection_name }}
[![Build Status](https://img.shields.io/drone/build/ansible/{{ cookiecutter.namespace }}.{{ cookiecutter.collection_name }}?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/{{ cookiecutter.author }}.{{ cookiecutter.collection_name }})
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?label=license)](LICENSE)
{{ collection_description_short }}.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Maintainers and Contributors
[{{ cookiecutter.author_full }}](https://gitea.rknet.org/{{ cookiecutter.author }})

View File

@ -0,0 +1,15 @@
namespace: {{ cookiecutter.namespace }}
name: {{ cookiecutter.collection_name }}
version: 1.0.0
readme: README.md
authors:
- {{ author_full }} <{{ author_email }}>
description: {{ collection_description_short }}
license:
- MIT
license_file: "LICENSE"
tags:
- {{ collection_category }}
dependencies: {}
repository: https://gitea.rknet.org/ansible/{{ cookiecutter.namespace }}.{{ cookiecutter.collection_name }}
homepage: https://thegeeklab.de/

View File

@ -0,0 +1,31 @@
# Collections Plugins Directory
This directory can be used to ship various plugins inside an Ansible collection. Each plugin is placed in a folder that
is named after the type of plugin it is in. It can also include the `module_utils` and `modules` directory that
would contain module utils and modules respectively.
Here is an example directory of the majority of plugins currently supported by Ansible:
```
└── plugins
├── action
├── become
├── cache
├── callback
├── cliconf
├── connection
├── filter
├── httpapi
├── inventory
├── lookup
├── module_utils
├── modules
├── netconf
├── shell
├── strategy
├── terminal
├── test
└── vars
```
A full list of plugin types can be found at [Working With Plugins](https://docs.ansible.com/ansible/2.9/plugins/plugins.html).