From 0cde8c32d9783cf1b130cff7b3e9e6298c685064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20G=C3=B3mez-Caldito?= Date: Tue, 28 Apr 2020 13:23:10 +0200 Subject: [PATCH] first commit --- .github/CODE_OF_CONDUCT.md | 74 ++++++++ .github/CONTRIBUTING.md | 100 +++++++++++ .github/ISSUE_TEMPLATE.md | 36 ++++ .github/PULL_REQUEST_TEMPLATE.md | 26 +++ .gitignore | 15 ++ .travis.yml | 17 ++ CHANGELOG.md | 8 + LICENSE | 68 ++++++++ README.md | 163 ++++++++++++++++++ cookiecutter.json | 26 +++ hooks/post_gen_project.py | 46 +++++ logo.gif | Bin 0 -> 24279 bytes test.sh | 19 ++ {{cookiecutter.app_name}}_role/.ansible-lint | 7 + .../.github/CODE_OF_CONDUCT.md | 74 ++++++++ .../.github/CONTRIBUTING.md | 100 +++++++++++ .../.github/ISSUE_TEMPLATE.md | 36 ++++ .../.github/PULL_REQUEST_TEMPLATE.md | 26 +++ {{cookiecutter.app_name}}_role/.yamllint | 39 +++++ {{cookiecutter.app_name}}_role/CHANGELOG.md | 0 {{cookiecutter.app_name}}_role/LICENSE | 67 +++++++ {{cookiecutter.app_name}}_role/README.md | 107 ++++++++++++ .../defaults/main.yml | 60 +++++++ {{cookiecutter.app_name}}_role/files/.empty | 0 .../handlers/main.yml | 8 + {{cookiecutter.app_name}}_role/logo.gif | Bin 0 -> 24279 bytes {{cookiecutter.app_name}}_role/meta/main.yml | 18 ++ .../molecule/default/Dockerfile.j2 | 12 ++ .../molecule/default/converge.yml | 5 + .../molecule/default/molecule.yml | 28 +++ .../molecule/default/tests/test_app.yml | 36 ++++ .../molecule/default/verify.yml | 58 +++++++ .../tasks/config.yml | 1 + .../tasks/install.yml | 74 ++++++++ {{cookiecutter.app_name}}_role/tasks/main.yml | 17 ++ .../tasks/service.yml | 17 ++ .../{{ cookiecutter.app_name }}.service.j2 | 24 +++ .../test-requirements.txt | 4 + .../{% raw %}.gitignore{% endraw %} | 15 ++ .../{% raw %}.travis.yml{% endraw %} | 21 +++ 40 files changed, 1452 insertions(+) create mode 100644 .github/CODE_OF_CONDUCT.md create mode 100644 .github/CONTRIBUTING.md create mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 CHANGELOG.md create mode 100644 LICENSE create mode 100644 README.md create mode 100644 cookiecutter.json create mode 100755 hooks/post_gen_project.py create mode 100644 logo.gif create mode 100755 test.sh create mode 100644 {{cookiecutter.app_name}}_role/.ansible-lint create mode 100644 {{cookiecutter.app_name}}_role/.github/CODE_OF_CONDUCT.md create mode 100644 {{cookiecutter.app_name}}_role/.github/CONTRIBUTING.md create mode 100644 {{cookiecutter.app_name}}_role/.github/ISSUE_TEMPLATE.md create mode 100644 {{cookiecutter.app_name}}_role/.github/PULL_REQUEST_TEMPLATE.md create mode 100644 {{cookiecutter.app_name}}_role/.yamllint create mode 100644 {{cookiecutter.app_name}}_role/CHANGELOG.md create mode 100644 {{cookiecutter.app_name}}_role/LICENSE create mode 100644 {{cookiecutter.app_name}}_role/README.md create mode 100644 {{cookiecutter.app_name}}_role/defaults/main.yml create mode 100644 {{cookiecutter.app_name}}_role/files/.empty create mode 100644 {{cookiecutter.app_name}}_role/handlers/main.yml create mode 100644 {{cookiecutter.app_name}}_role/logo.gif create mode 100644 {{cookiecutter.app_name}}_role/meta/main.yml create mode 100644 {{cookiecutter.app_name}}_role/molecule/default/Dockerfile.j2 create mode 100644 {{cookiecutter.app_name}}_role/molecule/default/converge.yml create mode 100644 {{cookiecutter.app_name}}_role/molecule/default/molecule.yml create mode 100644 {{cookiecutter.app_name}}_role/molecule/default/tests/test_app.yml create mode 100644 {{cookiecutter.app_name}}_role/molecule/default/verify.yml create mode 100644 {{cookiecutter.app_name}}_role/tasks/config.yml create mode 100644 {{cookiecutter.app_name}}_role/tasks/install.yml create mode 100644 {{cookiecutter.app_name}}_role/tasks/main.yml create mode 100644 {{cookiecutter.app_name}}_role/tasks/service.yml create mode 100644 {{cookiecutter.app_name}}_role/templates/{{ cookiecutter.app_name }}.service.j2 create mode 100644 {{cookiecutter.app_name}}_role/test-requirements.txt create mode 100644 {{cookiecutter.app_name}}_role/{% raw %}.gitignore{% endraw %} create mode 100644 {{cookiecutter.app_name}}_role/{% raw %}.travis.yml{% endraw %} diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..4e06e5d --- /dev/null +++ b/.github/CODE_OF_CONDUCT.md @@ -0,0 +1,74 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of experience, +nationality, personal appearance, race, religion, or sexual identity and +orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at [labs@idealista.com](mailto:labs@idealista.com). All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org \ No newline at end of file diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100644 index 0000000..e67a0d4 --- /dev/null +++ b/.github/CONTRIBUTING.md @@ -0,0 +1,100 @@ +# Contributing to Idealista + +:+1::tada: First off, thanks for taking the time to contribute! :tada::+1: + +The following is a set of guidelines for contributing to Idealista's repositories, which are hosted in the [Idealista Organization](https://github.com/idealista) on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request. + +#### Table Of Contents + +[Code of Conduct](#code-of-conduct) + +[How Can I Contribute?](#how-can-i-contribute) + * [Reporting Bugs](#reporting-bugs) + * [Suggesting Enhancements](#suggesting-enhancements) + * [Pull Requests](#pull-requests) + * [Changelog](#changelog) + +[Styleguides](#styleguides) + * [Git Commit Messages](#git-commit-messages) + +## Code of Conduct + +This project and everyone participating in it is governed by the [Idealista Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [labs@idealista.com](mailto:labs@idealista.com). + + +## How Can I Contribute? + +### Reporting Bugs + +This section guides you through submitting a bug report for Idealista. Following these guidelines helps maintainers and the community understand your report :pencil:, reproduce the behavior :computer: :computer:, and find related reports :mag_right:. + +Before creating bug reports, please check [this list](#before-submitting-a-bug-report) as you might find out that you don't need to create one. When you are creating a bug report, please [include as many details as possible](#how-do-i-submit-a-good-bug-report). Fill out [the required template](ISSUE_TEMPLATE.md), the information it asks for helps us resolve issues faster. + +> **Note:** If you find a **Closed** issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one. + +#### Before Submitting A Bug Report + +* **Check the last version.** Check if you can reproduce the problem in the latest version of the project. +* **Check the FAQ of the project** for a list of common questions and problems. +* **Perform a [cursory search](https://github.com/issues?q=+is%3Aissue+user%3Aidealista)** to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue instead of opening a new one. + +#### How Do I Submit A (Good) Bug Report? + +Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue on the project repository and provide the following information by filling in [the template](ISSUE_TEMPLATE.md). + +Explain the problem and include additional details to help maintainers reproduce the problem: + +* **Use a clear and descriptive title** for the issue to identify the problem. +* **Describe the exact steps which reproduce the problem** in as many details as possible. +* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior. +* **Explain which behavior you expected to see instead and why.** + +### Suggesting Enhancements + +This section guides you through submitting an enhancement suggestion for Idealista, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion :pencil: and find related suggestions :mag_right:. + +Before creating enhancement suggestions, please check [this list](#before-submitting-an-enhancement-suggestion) as you might find out that you don't need to create one. When you are creating an enhancement suggestion, please [include as many details as possible](#how-do-i-submit-a-good-enhancement-suggestion). Fill in [the template](ISSUE_TEMPLATE.md), including the steps that you imagine you would take if the feature you're requesting existed. + +#### Before Submitting An Enhancement Suggestion + +* **Check the last version.** Check if you can reproduce the problem in the latest version of the project. +* **Check the FAQ of the project** for a list of common questions and problems. +* **Perform a [cursory search](https://github.com/issues?q=+is%3Aissue+user%3Aidealista)** to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one. + +#### How Do I Submit A (Good) Enhancement Suggestion? + +Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue on the project repository and provide the following information by filling in [the template](ISSUE_TEMPLATE.md): + +* **Use a clear and descriptive title** for the issue to identify the suggestion. +* **Provide a step-by-step description of the suggested enhancement** in as many details as possible. +* **Provide specific examples to demonstrate the steps**. +* **Describe the current behavior** and **explain which behavior you expected to see instead** and why. +* **Explain why this enhancement would be useful**. +* **List some other text editors or applications where this enhancement exists.** +* **Specify which version are you're using.** + +### Pull Requests + +* Fill in [the required template](PULL_REQUEST_TEMPLATE.md) +* Any pull request should has **idealista:develop** as base branch. + +### Changelog + +Every project has a CHANGELOG.md file. Once your code is ready to be merged please fill the issue after the **Unreleased** section as explained: + +* For an enhancement, fill the issue after the **Added** subsection (create it if doesn't exists) +* For a fixed bug, fill the issue after the **Fixed** subsection (create it if doesn't exists) +* For an improvement, fill the issue after the **Changed** subsection (create it if doesn't exists) + +Then write the issue info this way: + +- *[#29](https://github.com/idealista/nginx-role/issues/29) Support debian stretch* @jmonterrubio + +## Styleguides + +### Git Commit Messages + +* Use the present tense ("Add feature" not "Added feature") +* Use the imperative mood ("Move cursor to..." not "Moves cursor to...") +* Limit the first line to 72 characters or less +* Reference issues and pull requests liberally after the first line \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..0a8e423 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,36 @@ + + +### Prerequisites + +* [ ] Put an X between the brackets on this line if you have done all of the following: + * Checked that your issue isn't already filled: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aidealista + * Checked that there is not already provided the described functionality + +### Description + +[Description of the issue] + +### Steps to Reproduce + +1. [First Step] +2. [Second Step] +3. [and so on...] + +**Expected behavior:** [What you expect to happen] + +**Actual behavior:** [What actually happens] + +**Reproduces how often:** [What percentage of the time does it reproduce?] + +### Versions + +The version/s you notice the behavior. + +### Additional Information + +Any additional information, configuration or data that might be necessary to reproduce the issue. \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..2eb9c29 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,26 @@ +### Requirements + +* Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion. +* All new code requires tests to ensure against regressions +* Remember to set **idealista:develop** as base branch; + +### Description of the Change + + + + +### Benefits + + + +### Possible Drawbacks + + + +### Applicable Issues + + \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6959226 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +tests/playbook.retry +tests/.cache +__pycache__ +.pytest_cache +.molecule +.vagrant +.cache + +*.iml +.idea +.project + +*.pyc + +**/.vscode \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2aaba44 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +--- +dist: xenial +language: python +python: "3.7" +os: linux +services: + - docker +install: + - pip3 install cookiecutter +env: + jobs: + - MOLECULE_DISTRO=debian:jessie-slim + - MOLECULE_DISTRO=debian:stretch-slim + - MOLECULE_DISTRO=debian:buster-slim + +script: + - ./test.sh \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..1cce398 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,8 @@ +# Change Log +All notable changes to this project will be documented in this file. +This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog). + +## [1.0.0](https://github.com/idealista/cookiecutter-ansible-role/tree/1.0.0) (2020-04-28) + +### Added +- *First release* @pablogcaldito \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ed28053 --- /dev/null +++ b/LICENSE @@ -0,0 +1,68 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of this License; and + +You must cause any modified files to carry prominent notices stating that You changed the files; and + +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. +You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + + + Copyright 2020 Idealista S.A.U. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md new file mode 100644 index 0000000..2b0b020 --- /dev/null +++ b/README.md @@ -0,0 +1,163 @@ +# Cookiecutter Ansible Role +![Logo](https://raw.githubusercontent.com/idealista/cookiecutter-ansible-role/master/logo.gif) + +[![Build Status](https://travis-ci.org/idealista/cookiecutter-ansible-role.png)](https://travis-ci.org/idealista/cookiecutter-ansible-role) +[![Ansible Galaxy](https://img.shields.io/badge/galaxy-idealista.cookiecutter-ansible-role-B62682.svg)](https://galaxy.ansible.com/idealista/cookiecutter-ansible-role) + + + +This cookiecutter generates an [ansible role](https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html). + +- [Getting Started](#getting-started) + - [Prerequisities](#prerequisities) +- [Usage](#usage) +- [Testing](#testing) +- [Built With](#built-with) +- [Versioning](#versioning) +- [Authors](#authors) +- [License](#license) +- [Contributing](#contributing) + +## Getting Started +These instructions will get you an Ansible Role generated using [Cookiecutter](https://github.com/cookiecutter/cookiecutter). + +This cookiecutter: +* Follows the best practices +* Asks you if some features are wanted or not in the role +* Generates a Pipfile and Pipfile.lock for using the role based on some parameters + +### Prerequisities + +Cookiecutter version 1.7.x installed. + +You can satify this requirement with ```pip install cookiecutter``` + +## Usage + +To generate your ansible role type ```cookiecutter https://github.com/idealista/cookiecutter-ansible-role```. + +Then, introduce some parameters needed for generating it. + +It displays some comments that help you to use the cookiecutter sucessfully, if you assign value to them nothing happens. + +``` +comment_0 [The role name will be the value you assign to app_name with _role appended]: +comment_1 [Introduce in exec_name the executable file name, you can change it later in the defaults/main.yml if you don't know it]: +app_name []: github_cli +exec_name []: gh +github_user [idealista]: +company [Idealista S.A.U.]: +author []: pablogcaldito +min_ansible_version []: 2.2 +ansible_version []: 2.8.8 +molecule_version []: 3.0.1 +python_docker_version []: 4.1.0 +ansible_lint_version []: 4.2.0 +license [Apache 2.0]: +galaxy_tag_1 [example_tag1]: github_cli +galaxy_tag_2 [example_tag2]: github +galaxy_tag_3 [example_tag3]: cli +Select debian_jessie_support: +1 - True +2 - False +Choose from 1, 2 [1]: +Select debian_stretch_support: +1 - True +2 - False +Choose from 1, 2 [1]: +Select debian_buster_support: +1 - True +2 - False +Choose from 1, 2 [1]: +Select has_service: +1 - True +2 - False +Choose from 1, 2 [1]: +Select has_files: +1 - True +2 - False +Choose from 1, 2 [1]: +comment_2 [If there is service the following options will not have any effect]: +Select has_handlers: +1 - True +2 - False +Choose from 1, 2 [1]: +Select has_templates: +1 - True +2 - False +Choose from 1, 2 [1]: +``` + +It will create the following file structure: + +``` +github_cli_role +├── CHANGELOG.md +├── defaults +│   └── main.yml +├── files +├── handlers +│   └── main.yml +├── LICENSE +├── logo.gif +├── meta +│   └── main.yml +├── molecule +│   └── default +│   ├── converge.yml +│   ├── Dockerfile.j2 +│   ├── molecule.yml +│   ├── tests +│   │   └── test_app.yml +│   └── verify.yml +├── Pipfile +├── Pipfile.lock +├── README.md +├── tasks +│   ├── config.yml +│   ├── install.yml +│   ├── main.yml +│   └── service.yml +├── templates +│   └── github_cli.service.j2 +└── test-requirements.txt +``` + +## Testing + +Test the cookiecutter just by typing: + +```./test.sh``` + +## Built With + +![Cookiecutter](https://img.shields.io/badge/cookiecutter-1.7.0-green.svg) +![Python 3](https://img.shields.io/badge/python-3.7-green.svg) + +## Versioning + +For the versions available, see the [tags on this repository](https://github.com/idealista/cookiecutter-ansible-role/tags). + +Additionaly you can see what change in each version in the [CHANGELOG.md](CHANGELOG.md) file. + +## Authors + +* **Idealista** - *Work with* - [idealista](https://github.com/idealista) + +See also the list of [contributors](https://github.com/idealista/cookiecutter-ansible-role/contributors) who participated in this project. + +## License + +![Apache 2.0 License](https://img.shields.io/hexpm/l/plug.svg) + +This project is licensed under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) license - see the [LICENSE](LICENSE) file for details. + +## Contributing + +Please read [CONTRIBUTING.md](.github/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us. + + + + + + diff --git a/cookiecutter.json b/cookiecutter.json new file mode 100644 index 0000000..7d6c93e --- /dev/null +++ b/cookiecutter.json @@ -0,0 +1,26 @@ +{ + "comment_0":"The role name will be the value you assign to app_name with _role appended", + "comment_1":"Introduce in exec_name the executable file name, you can change it later in the defaults/main.yml if you don't know it", + "app_name": "", + "exec_name":"", + "github_user": "idealista", + "company": "Idealista S.A.U.", + "author": "", + "min_ansible_version": "", + "ansible_version": "", + "molecule_version": "", + "python_docker_version": "", + "ansible_lint_version":"", + "license":"Apache 2.0", + "galaxy_tag_1":"example_tag1", + "galaxy_tag_2":"example_tag2", + "galaxy_tag_3":"example_tag3", + "debian_jessie_support":["True", "False"], + "debian_stretch_support":["True", "False"], + "debian_buster_support":["True", "False"], + "has_service":["True", "False"], + "has_files":["True", "False"], + "comment_2":"If there is service the following options will not have any effect", + "has_handlers":["True", "False"], + "has_templates":["True", "False"] +} diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py new file mode 100755 index 0000000..45cac30 --- /dev/null +++ b/hooks/post_gen_project.py @@ -0,0 +1,46 @@ +#!/usr/bin/python3 + +import sys +import os +import shutil + + +def checkInput(): + appName = "{{ cookiecutter.app_name }}" + moleculeVersion = "{{ cookiecutter.molecule_version }}" + if appName.endswith("role"): + print("Error: app_name should not have _role or -role at the end, try again without it") + print(" The name of the role will the value you introduce in app_name plus _role appended") + sys.exit(1) + if not moleculeVersion.startswith("3"): + print("Error: Only supported molecule version 3.x.x, please change it and try again") + sys.exit(1) + +def configureRole(): + # Remove or not the service + if not {{ cookiecutter.has_service }}: + # Delete the service and things that reference the service + os.remove("tasks/service.yml") + os.remove("templates/{{ cookiecutter.app_name }}.service.j2") + # Remove or not the handlers folder + if not {{ cookiecutter.has_handlers }}: + shutil.rmtree("handlers") + # Remove or not the templates folder + if not {{ cookiecutter.has_templates }}: + shutil.rmtree("templates") + # Remove or not the files folder + if not {{ cookiecutter.has_files }}: + shutil.rmtree("files") + else: + os.remove("files/.empty") + +def generatePipfile(): + os.system("pipenv install -r test-requirements.txt --three") + +def main(): + checkInput() + configureRole() + generatePipfile() + +if __name__ == '__main__': + main() \ No newline at end of file diff --git a/logo.gif b/logo.gif new file mode 100644 index 0000000000000000000000000000000000000000..d96f592f538fc16bd38c56d49773ce3c6580ddb5 GIT binary patch literal 24279 zcmbTdXH*nH*Dl(Vhde`)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P+E<2|HJVs}Ns|amE@q1%ba4E9ODK K8;>kzKma?o`!g>9 literal 0 HcmV?d00001 diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..7b4a01f --- /dev/null +++ b/test.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +# Generate role +cookiecutter . --no-input app_name="github_cli" exec_name="gh" author="John Doe" min_ansible_version="2.2" ansible_version="2.8.6" molecule_version="3.0.1" python_docker_version="4.1.0" ansible_lint_version="4.2.0" has_service="False" has_files="False" has_handlers="False" has_templates="False" +( + # Adjust the role to test + cd github_cli_role + sed -i 's/someuser/cli/g' defaults/main.yml + sed -i 's/somerepo/cli/g' defaults/main.yml + sed -i 's/1.0.0/0.6.4/g' defaults/main.yml + sed -i 's/exampleapplication/gh/g' defaults/main.yml + # Launch molecule tests + pipenv sync + pipenv run molecule test +) +# Cleanup +rm -rf github_cli_role diff --git a/{{cookiecutter.app_name}}_role/.ansible-lint b/{{cookiecutter.app_name}}_role/.ansible-lint new file mode 100644 index 0000000..06e03cc --- /dev/null +++ b/{{cookiecutter.app_name}}_role/.ansible-lint @@ -0,0 +1,7 @@ +exclude_paths: + - ./molecule +parseable: true +skip_list: + - '204' +use_default_rules: true +verbosity: 1 diff --git a/{{cookiecutter.app_name}}_role/.github/CODE_OF_CONDUCT.md b/{{cookiecutter.app_name}}_role/.github/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..4e06e5d --- /dev/null +++ b/{{cookiecutter.app_name}}_role/.github/CODE_OF_CONDUCT.md @@ -0,0 +1,74 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of experience, +nationality, personal appearance, race, religion, or sexual identity and +orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at [labs@idealista.com](mailto:labs@idealista.com). All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org \ No newline at end of file diff --git a/{{cookiecutter.app_name}}_role/.github/CONTRIBUTING.md b/{{cookiecutter.app_name}}_role/.github/CONTRIBUTING.md new file mode 100644 index 0000000..e67a0d4 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/.github/CONTRIBUTING.md @@ -0,0 +1,100 @@ +# Contributing to Idealista + +:+1::tada: First off, thanks for taking the time to contribute! :tada::+1: + +The following is a set of guidelines for contributing to Idealista's repositories, which are hosted in the [Idealista Organization](https://github.com/idealista) on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request. + +#### Table Of Contents + +[Code of Conduct](#code-of-conduct) + +[How Can I Contribute?](#how-can-i-contribute) + * [Reporting Bugs](#reporting-bugs) + * [Suggesting Enhancements](#suggesting-enhancements) + * [Pull Requests](#pull-requests) + * [Changelog](#changelog) + +[Styleguides](#styleguides) + * [Git Commit Messages](#git-commit-messages) + +## Code of Conduct + +This project and everyone participating in it is governed by the [Idealista Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [labs@idealista.com](mailto:labs@idealista.com). + + +## How Can I Contribute? + +### Reporting Bugs + +This section guides you through submitting a bug report for Idealista. Following these guidelines helps maintainers and the community understand your report :pencil:, reproduce the behavior :computer: :computer:, and find related reports :mag_right:. + +Before creating bug reports, please check [this list](#before-submitting-a-bug-report) as you might find out that you don't need to create one. When you are creating a bug report, please [include as many details as possible](#how-do-i-submit-a-good-bug-report). Fill out [the required template](ISSUE_TEMPLATE.md), the information it asks for helps us resolve issues faster. + +> **Note:** If you find a **Closed** issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one. + +#### Before Submitting A Bug Report + +* **Check the last version.** Check if you can reproduce the problem in the latest version of the project. +* **Check the FAQ of the project** for a list of common questions and problems. +* **Perform a [cursory search](https://github.com/issues?q=+is%3Aissue+user%3Aidealista)** to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue instead of opening a new one. + +#### How Do I Submit A (Good) Bug Report? + +Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue on the project repository and provide the following information by filling in [the template](ISSUE_TEMPLATE.md). + +Explain the problem and include additional details to help maintainers reproduce the problem: + +* **Use a clear and descriptive title** for the issue to identify the problem. +* **Describe the exact steps which reproduce the problem** in as many details as possible. +* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior. +* **Explain which behavior you expected to see instead and why.** + +### Suggesting Enhancements + +This section guides you through submitting an enhancement suggestion for Idealista, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion :pencil: and find related suggestions :mag_right:. + +Before creating enhancement suggestions, please check [this list](#before-submitting-an-enhancement-suggestion) as you might find out that you don't need to create one. When you are creating an enhancement suggestion, please [include as many details as possible](#how-do-i-submit-a-good-enhancement-suggestion). Fill in [the template](ISSUE_TEMPLATE.md), including the steps that you imagine you would take if the feature you're requesting existed. + +#### Before Submitting An Enhancement Suggestion + +* **Check the last version.** Check if you can reproduce the problem in the latest version of the project. +* **Check the FAQ of the project** for a list of common questions and problems. +* **Perform a [cursory search](https://github.com/issues?q=+is%3Aissue+user%3Aidealista)** to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one. + +#### How Do I Submit A (Good) Enhancement Suggestion? + +Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue on the project repository and provide the following information by filling in [the template](ISSUE_TEMPLATE.md): + +* **Use a clear and descriptive title** for the issue to identify the suggestion. +* **Provide a step-by-step description of the suggested enhancement** in as many details as possible. +* **Provide specific examples to demonstrate the steps**. +* **Describe the current behavior** and **explain which behavior you expected to see instead** and why. +* **Explain why this enhancement would be useful**. +* **List some other text editors or applications where this enhancement exists.** +* **Specify which version are you're using.** + +### Pull Requests + +* Fill in [the required template](PULL_REQUEST_TEMPLATE.md) +* Any pull request should has **idealista:develop** as base branch. + +### Changelog + +Every project has a CHANGELOG.md file. Once your code is ready to be merged please fill the issue after the **Unreleased** section as explained: + +* For an enhancement, fill the issue after the **Added** subsection (create it if doesn't exists) +* For a fixed bug, fill the issue after the **Fixed** subsection (create it if doesn't exists) +* For an improvement, fill the issue after the **Changed** subsection (create it if doesn't exists) + +Then write the issue info this way: + +- *[#29](https://github.com/idealista/nginx-role/issues/29) Support debian stretch* @jmonterrubio + +## Styleguides + +### Git Commit Messages + +* Use the present tense ("Add feature" not "Added feature") +* Use the imperative mood ("Move cursor to..." not "Moves cursor to...") +* Limit the first line to 72 characters or less +* Reference issues and pull requests liberally after the first line \ No newline at end of file diff --git a/{{cookiecutter.app_name}}_role/.github/ISSUE_TEMPLATE.md b/{{cookiecutter.app_name}}_role/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..cf2a739 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,36 @@ + + +### Prerequisites + +* [ ] Put an X between the brackets on this line if you have done all of the following: + * Checked that your issue isn't already filled: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aidealista + * Checked that there is not already provided the described functionality + +### Description + +[Description of the issue] + +### Steps to Reproduce + +1. [First Step] +2. [Second Step] +3. [and so on...] + +**Expected behavior:** [What you expect to happen] + +**Actual behavior:** [What actually happens] + +**Reproduces how often:** [What percentage of the time does it reproduce?] + +### Versions + +The version/s you notice the behavior. + +### Additional Information + +Any additional information, configuration or data that might be necessary to reproduce the issue. \ No newline at end of file diff --git a/{{cookiecutter.app_name}}_role/.github/PULL_REQUEST_TEMPLATE.md b/{{cookiecutter.app_name}}_role/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..2eb9c29 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,26 @@ +### Requirements + +* Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion. +* All new code requires tests to ensure against regressions +* Remember to set **idealista:develop** as base branch; + +### Description of the Change + + + + +### Benefits + + + +### Possible Drawbacks + + + +### Applicable Issues + + \ No newline at end of file diff --git a/{{cookiecutter.app_name}}_role/.yamllint b/{{cookiecutter.app_name}}_role/.yamllint new file mode 100644 index 0000000..84510f6 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/.yamllint @@ -0,0 +1,39 @@ +--- +# Based on ansible-lint config +extends: default + +ignore: | + .travis.yml + molecule/ + tests/ + +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: disable + comments-indentation: disable + document-start: disable + empty-lines: + max: 3 + level: error + hyphens: + level: error + indentation: disable + key-duplicates: enable + line-length: disable + new-line-at-end-of-file: disable + new-lines: + type: unix + trailing-spaces: disable + truthy: disable + \ No newline at end of file diff --git a/{{cookiecutter.app_name}}_role/CHANGELOG.md b/{{cookiecutter.app_name}}_role/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/{{cookiecutter.app_name}}_role/LICENSE b/{{cookiecutter.app_name}}_role/LICENSE new file mode 100644 index 0000000..adf0304 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/LICENSE @@ -0,0 +1,67 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of this License; and + +You must cause any modified files to carry prominent notices stating that You changed the files; and + +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. +You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + + Copyright {% now 'utc', '%Y' %} Idealista S.A.U. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/{{cookiecutter.app_name}}_role/README.md b/{{cookiecutter.app_name}}_role/README.md new file mode 100644 index 0000000..930381f --- /dev/null +++ b/{{cookiecutter.app_name}}_role/README.md @@ -0,0 +1,107 @@ +# {{ cookiecutter.app_name | replace('_',' ') | title }} Ansible role +![Logo](https://raw.githubusercontent.com/idealista/{{ cookiecutter.app_name }}_role/master/logo.gif) + +[![Build Status](https://travis-ci.org/idealista/{{ cookiecutter.app_name }}_role.png)](https://travis-ci.org/idealista/{{ cookiecutter.app_name }}_role) +[![Ansible Galaxy](https://img.shields.io/badge/galaxy-idealista.{{ cookiecutter.app_name }}_role-B62682.svg)](https://galaxy.ansible.com/idealista/{{ cookiecutter.app_name }}_role) + + + +This ansible role installs [{{ cookiecutter.app_name | replace('_',' ') | title }}](APP_URL_HERE) in a Debian environment. It has been tested for Debian buster and stretch. + +This role has been generated using the [cookiecutter](https://github.com/cookiecutter/cookiecutter) tool, you can generate a similar role that fits your needs using the this [cookiecutter template](https://github.com/idealista/cookiecutter-ansible-role). + +- [Getting Started](#getting-started) + - [Prerequisities](#prerequisities) + - [Installing](#installing) +- [Usage](#usage) +- [Testing](#testing) +- [Built With](#built-with) +- [Versioning](#versioning) +- [Authors](#authors) +- [License](#license) +- [Contributing](#contributing) + +## Getting Started +These instructions will get you a copy of the role for your Ansible playbook. Once launched, it will install {{ cookiecutter.app_name | replace('_',' ') | title }} in a Debian system. + +### Prerequisities + +Ansible 2.8.x.x version installed. + +Molecule 3.x.x version installed. + +For testing purposes, [Molecule](https://molecule.readthedocs.io/) with [Docker](https://www.docker.com/) as driver and [Goss] (https://github.com/aelsabbahy/goss) as verifier. + +### Installing + +Create or add to your roles dependency file (e.g requirements.yml): + +``` +- src: idealista.{{ cookiecutter.app_name }}_role + version: 1.0.0 + name: {{ cookiecutter.app_name }}_role +``` + +Install the role with ansible-galaxy command: + +``` +ansible-galaxy install -p roles -r requirements.yml -f +``` + +Use in a playbook: + +``` +--- +- hosts: someserver + roles: + - role: {{ cookiecutter.app_name }}_role +``` + +## Usage + +Look to the [defaults](defaults/main.yml) properties file to see the possible configuration properties, it is very likely that you will not need to override any variables. + + +## Testing + +### Install dependencies + +```sh +$ pipenv sync +``` + +For more information read the [pipenv docs](ipenv-fork.readthedocs.io/en/latest/). + +### Testing + +```sh +$ pipenv run molecule test +``` + +## Built With + +![Ansible](https://img.shields.io/badge/ansible-{{ cookiecutter.ansible_version }}-green.svg) +![Molecule](https://img.shields.io/badge/molecule-{{ cookiecutter.molecule_version }}-green.svg) +![Goss](https://img.shields.io/badge/goss-0.3.9-green.svg) + +## Versioning + +For the versions available, see the [tags on this repository](https://github.com/idealista/{{ cookiecutter.app_name }}_role/tags). + +Additionaly you can see what change in each version in the [CHANGELOG.md](CHANGELOG.md) file. + +## Authors + +* **Idealista** - *Work with* - [idealista](https://github.com/idealista) + +See also the list of [contributors](https://github.com/idealista/{{ cookiecutter.app_name }}_role/contributors) who participated in this project. + +## License + +![Apache 2.0 License](https://img.shields.io/hexpm/l/plug.svg) + +This project is licensed under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) license - see the [LICENSE](LICENSE) file for details. + +## Contributing + +Please read [CONTRIBUTING.md](.github/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us. diff --git a/{{cookiecutter.app_name}}_role/defaults/main.yml b/{{cookiecutter.app_name}}_role/defaults/main.yml new file mode 100644 index 0000000..ecd33ef --- /dev/null +++ b/{{cookiecutter.app_name}}_role/defaults/main.yml @@ -0,0 +1,60 @@ +--- + +## General +# Version +{{ cookiecutter.app_name }}_version: 1.0.0 +{{ cookiecutter.app_name }}_release_system: linux_amd64 + +# Package URL +{{ cookiecutter.app_name }}_release_name: "exampleapplication_{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_version {% raw %}}}{% endraw %}_{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_release_system {% raw %}}}{% endraw %}" +{{ cookiecutter.app_name }}_package: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_release_name {% raw %}}}{% endraw %}.tar.gz" +{{ cookiecutter.app_name }}_url: "https://github.com/someuser/somerepo/releases/download/v{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_version {% raw %}}}{% endraw %}/{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_package {% raw %}}}{% endraw %}" + +# Package paths +{{ cookiecutter.app_name }}_download_path: /usr/src +{{ cookiecutter.app_name }}_package_path: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_download_path {% raw %}}}{% endraw %}/{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_package {% raw %}}}{% endraw %}" +{{ cookiecutter.app_name }}_src_bin: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_download_path {% raw %}}}{% endraw %}/{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_release_name {% raw %}}}{% endraw %}/bin/{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_exec_name {% raw %}}}{% endraw %}" + +# Set true to force the download and installation of the binary +{{ cookiecutter.app_name }}_force_reinstall: false + +# Installation path +{{ cookiecutter.app_name }}_root_path: /opt/{{ cookiecutter.app_name }} +{{ cookiecutter.app_name }}_bin_path: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_root_path {% raw %}}}{% endraw %}/bin" +{{ cookiecutter.app_name }}_skeleton_paths: + - "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_bin_path {% raw %}}}{% endraw %}" +{{ cookiecutter.app_name }}_exec_name: {{ cookiecutter.exec_name }} +{% if cookiecutter.has_service == 'True' %} +## Service options +# Documentation +{{ cookiecutter.app_name }}_documentation_link: https://www.example.documentation.com + +# Owner +{{ cookiecutter.app_name }}_user: exampleuser +{{ cookiecutter.app_name }}_group: examplegroup + +# Maximum number of files limit +{{ cookiecutter.app_name }}_max_files: 32768 + +# Start on boot +{{ cookiecutter.app_name }}_service_enabled: True +# Current state: started, stopped +{{ cookiecutter.app_name }}_service_state: started + +# Logs +# If wanted to output the logs to a file define the following variable +# More information at https://www.freedesktop.org/software/systemd/man/systemd.exec.html#StandardOutput= +# {{ cookiecutter.app_name }}_log_file: path_of_the_file +{{ cookiecutter.app_name }}_log_output: "{% raw %}{%{% endraw %} if {{ cookiecutter.app_name }}_log_file is defined {% raw %}%}{% endraw %} file:{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_log_file {% raw %}}}{% endraw %} {% raw %}{%{% endraw %} else {% raw %}%}{% endraw %} journal {% raw %}{%{% endraw %} endif {% raw %}%}{% endraw %}" + +# Flags +{{ cookiecutter.app_name }}_port: # the port exposed by the service goes here +{{ cookiecutter.app_name }}_flag1_value: example_value_1 +{{ cookiecutter.app_name }}_flag2_value: example_value_2 +{{ cookiecutter.app_name }}_options: + - "port {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_port {% raw %}}}{% endraw %}" + - "flag1 {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_flag1_value {% raw %}}}{% endraw %}" + - "flag2 {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_flag2_value {% raw %}}}{% endraw %}" + +private_tmp_service: yes +{% endif %} \ No newline at end of file diff --git a/{{cookiecutter.app_name}}_role/files/.empty b/{{cookiecutter.app_name}}_role/files/.empty new file mode 100644 index 0000000..e69de29 diff --git a/{{cookiecutter.app_name}}_role/handlers/main.yml b/{{cookiecutter.app_name}}_role/handlers/main.yml new file mode 100644 index 0000000..89e1298 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/handlers/main.yml @@ -0,0 +1,8 @@ +--- +{% if cookiecutter.has_service == 'True' %} +- name: restart {{ cookiecutter.app_name }} + systemd: + name: {{ cookiecutter.app_name }} + state: restarted + when: {{ cookiecutter.app_name }}_service_state != 'stopped' +{% endif %} \ No newline at end of file diff --git a/{{cookiecutter.app_name}}_role/logo.gif b/{{cookiecutter.app_name}}_role/logo.gif new file mode 100644 index 0000000000000000000000000000000000000000..d96f592f538fc16bd38c56d49773ce3c6580ddb5 GIT binary patch literal 24279 zcmbTdXH*nH*Dl(Vhde`)%#eqik?ar!1SDs0h>~+O;E=P72!awEqJV%z1w|Qh#vw-$ z0TBch1SJ?azTY|Dx%bCe=dN|@M|Xv1?`Q9-y;pVjs=jQfudL!K1BQZ*0pO{lS?wtH z@2_9?Y28Za3tC%Se$VdQ?$`=XID<>b$&sS`|pe}DPb?};Di@BL3H z$LyI6z~G~lni*i?b5QX@FAj%Wdr`9_ns+^`2nK_$8(V)v_n8)vb z)-3|BZ-$&aUn+Yo{3g|Gr2A58v2a`VonL>C+P6wu-vi6C4~-qrQv%sZH>2$B?F-~R z-_N>{NTlPrzTNdZ-~S8@)EJQap1k+~yz{v8VCL(|r`18Oi5ICFa=-33tO7D&w0At_br3v9}r{_&8fPetg^x@V1 zPr`PdK4jDDom+sFCrDmS?(hDI^R3jQg3&LF3+Fxa=YzvPD<}mEKkg2^ZJWdVro5<~ z2cFSKo*f_8ZuISvtMd!v?>fdz9*O$cnBMeuUR5jEK73Vw*~!vS@8@WTzS#oSZS)0KeN>^2b8@94o90-_}$aTPR{z)0}I=Zhn}5`w`v(0Zw<_r@wkl6 zPrkZvs|gh@Au1*&#;d5J-thrA8f!TmZ0Onn&U@AmN1DUst?u2+K5v?zot-@%YcUj8 z5f&CaT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V$%V ziZrRxrA(WiWJ!Wfj%;zFygRb!#0eZ+yL$b4V$q^^QQ~BqBjTgewQSqEeLIt-h&l55 zSjC!EtKP6j?tJMZuc*ldT>2S4j5x94#r-TSfD5^89w?49TFy8`p~Qg)hX~w!fMRCQ z4If4XP4Tj7i$fft$P+oXY>;&1RmHpYE7!1N|K?<4Dq7Z>YZa2nV~;-m2xNVrSP&wJPgoEnQURWL-HkFX6TpP@h738j!J5& zYk>m6hloPQ1q7xBSRD!k%qnS$mwxvUrVKtbj1ZEhKmdD>c4=y{#vW@ds;lnj0R*AG z3W^(T#tOx(v!;-Oq==-TWwzQ%N&r@{!9Mz09&UgFib=?>%Wk`a5~k|1j6DItWA5II zZ@&8KyFhdDKIh-Q0uM}Z!C?0L?{kV8%y7dFKP+E<2|HJVs}Ns|amE@q1%ba4E9ODK K8;>kzKma?o`!g>9 literal 0 HcmV?d00001 diff --git a/{{cookiecutter.app_name}}_role/meta/main.yml b/{{cookiecutter.app_name}}_role/meta/main.yml new file mode 100644 index 0000000..89df173 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/meta/main.yml @@ -0,0 +1,18 @@ +--- + +galaxy_info: + author: {{ cookiecutter.author }} + company: {{ cookiecutter.company }} + description: {{ cookiecutter.app_name | replace('_',' ') | title }} Role + min_ansible_version: {{ cookiecutter.min_ansible_version }} + license: {{ cookiecutter.license }} + galaxy-tags: + - {{ cookiecutter.galaxy_tag_1 }} + - {{ cookiecutter.galaxy_tag_2 }} + - {{ cookiecutter.galaxy_tag_3 }} + platforms: + - name: Debian + versions: + {% if cookiecutter.debian_jessie_support == 'True' %}- jessie{% endif %} + {% if cookiecutter.debian_stretch_support == 'True' %}- stretch{% endif %} + {% if cookiecutter.debian_buster_support == 'True' %}- buster{% endif %} diff --git a/{{cookiecutter.app_name}}_role/molecule/default/Dockerfile.j2 b/{{cookiecutter.app_name}}_role/molecule/default/Dockerfile.j2 new file mode 100644 index 0000000..c4dbd4e --- /dev/null +++ b/{{cookiecutter.app_name}}_role/molecule/default/Dockerfile.j2 @@ -0,0 +1,12 @@ +# Molecule managed + +{% raw %}{% if item.registry is defined %} +FROM {{ item.registry.url }}/{{ item.image }} +{% else %} +FROM {{ item.image }} +{% endif %} + +# install minimal packages for debian slim images +RUN apt-get update && \ + apt-get install -y python sudo bash ca-certificates iproute2 systemd systemd-sysv python-pip && \ + apt-get clean{% endraw %} diff --git a/{{cookiecutter.app_name}}_role/molecule/default/converge.yml b/{{cookiecutter.app_name}}_role/molecule/default/converge.yml new file mode 100644 index 0000000..ee54492 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/molecule/default/converge.yml @@ -0,0 +1,5 @@ +--- +- name: Converge + hosts: {{ cookiecutter.app_name }}_group + roles: + - role: {{ cookiecutter.app_name }}_role diff --git a/{{cookiecutter.app_name}}_role/molecule/default/molecule.yml b/{{cookiecutter.app_name}}_role/molecule/default/molecule.yml new file mode 100644 index 0000000..b3da2fb --- /dev/null +++ b/{{cookiecutter.app_name}}_role/molecule/default/molecule.yml @@ -0,0 +1,28 @@ +--- +dependency: + name: galaxy +driver: + name: docker +lint: | + yamllint . + ansible-lint . +platforms: + - name: {{ cookiecutter.app_name }} + groups: + - {{ cookiecutter.app_name }}_group + image: ${MOLECULE_DISTRO:-debian:buster-slim} + privileged: false + capabilities: + - SYS_ADMIN + tmpfs: + - /tmp + - /run + - /run/lock + volumes: + - '/sys/fs/cgroup:/sys/fs/cgroup:ro' + command: '/lib/systemd/systemd' + stop_signal: 'RTMIN+3' +provisioner: + name: ansible +verifier: + name: ansible diff --git a/{{cookiecutter.app_name}}_role/molecule/default/tests/test_app.yml b/{{cookiecutter.app_name}}_role/molecule/default/tests/test_app.yml new file mode 100644 index 0000000..7b5b857 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/molecule/default/tests/test_app.yml @@ -0,0 +1,36 @@ +--- + +file: + {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_bin_path {% raw %}}}{% endraw %}: + {% if cookiecutter.has_service == 'True' %} + owner: {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_user {% raw %}}}{% endraw %} + group: {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %} + {% endif %} + exists: true + filetype: directory +{% if cookiecutter.has_service == 'True' %} +# port: +# # Check port at IPv6 +# # https://github.com/aelsabbahy/goss/issues/177 +# tcp6:{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_port {% raw %}}}{% endraw %}: +# listening: true +# ip: +# - '::' + +service: + {{ cookiecutter.app_name }}: + enabled: true + running: true +process: + {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_exec_name {% raw %}}}{% endraw %}: + running: true +user: + {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_user {% raw %}}}{% endraw %}: + exists: true + groups: + - {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %} + shell: /usr/sbin/nologin +group: + {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %}: + exists: true +{% endif %} \ No newline at end of file diff --git a/{{cookiecutter.app_name}}_role/molecule/default/verify.yml b/{{cookiecutter.app_name}}_role/molecule/default/verify.yml new file mode 100644 index 0000000..3eb78c6 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/molecule/default/verify.yml @@ -0,0 +1,58 @@ +--- +# This is an example playbook to execute goss tests. +# Tests need distributed to the appropriate ansible host/groups +# prior to execution by `goss validate`. + +- name: Verify {{ cookiecutter.app_name | replace('_',' ') }} + hosts: + - {{ cookiecutter.app_name }} + become: true + vars: + goss_version: v0.3.10 + goss_arch: amd64 + goss_dst: /usr/local/bin/goss + goss_sha256sum: 150f25495ca0d1d4fd2ef8d0e750dbd767a15e9a522505f99b61dd1dd40a76d4 + goss_url: "https://github.com/aelsabbahy/goss/releases/download/{% raw %}{{{% endraw %} goss_version {% raw %}}}{% endraw %}/goss-linux-{% raw %}{{{% endraw %} goss_arch {% raw %}}}{% endraw %}" + goss_test_directory: /tmp + goss_format: documentation + + vars_files: + - ../../defaults/main.yml + + tasks: + - name: Download and install Goss + get_url: + url: "{% raw %}{{{% endraw %} goss_url {% raw %}}}{% endraw %}" + dest: "{% raw %}{{{% endraw %} goss_dst {% raw %}}}{% endraw %}" + sha256sum: "{% raw %}{{{% endraw %} goss_sha256sum {% raw %}}}{% endraw %}" + mode: 0755 + register: download_goss + until: download_goss is succeeded + retries: 3 + + - name: Copy Goss tests to remote + template: + src: "{% raw %}{{{% endraw %} item {% raw %}}}{% endraw %}" + dest: "{% raw %}{{{% endraw %} goss_test_directory {% raw %}}}{% endraw %}/{% raw %}{{{% endraw %} item | basename {% raw %}}}{% endraw %}" + with_fileglob: + - "tests/test_*.yml" + + - name: Register test files + shell: "ls {% raw %}{{{% endraw %} goss_test_directory {% raw %}}}{% endraw %}/test_*.yml" + register: test_files + + - name: Execute Goss tests + command: "{% raw %}{{{% endraw %} goss_dst {% raw %}}}{% endraw %} -g {% raw %}{{{% endraw %} item {% raw %}}}{% endraw %} validate --format {% raw %}{{{% endraw %} goss_format {% raw %}}}{% endraw %}" + register: test_results + with_items: "{% raw %}{{{% endraw %} test_files.stdout_lines {% raw %}}}{% endraw %}" + + - name: Display details about the Goss results + debug: + msg: "{% raw %}{{{% endraw %} item.stdout_lines {% raw %}}}{% endraw %}" + with_items: "{% raw %}{{{% endraw %} test_results.results {% raw %}}}{% endraw %}" + + - name: Fail when tests fail + fail: + msg: "Goss failed to validate" + when: item.rc != 0 + with_items: "{% raw %}{{{% endraw %} test_results.results {% raw %}}}{% endraw %}" \ No newline at end of file diff --git a/{{cookiecutter.app_name}}_role/tasks/config.yml b/{{cookiecutter.app_name}}_role/tasks/config.yml new file mode 100644 index 0000000..ed97d53 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/tasks/config.yml @@ -0,0 +1 @@ +--- diff --git a/{{cookiecutter.app_name}}_role/tasks/install.yml b/{{cookiecutter.app_name}}_role/tasks/install.yml new file mode 100644 index 0000000..facc2e9 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/tasks/install.yml @@ -0,0 +1,74 @@ +--- +{% if cookiecutter.has_service == 'True' %} +- name: {{ cookiecutter.app_name | upper }} | Ensure {{ cookiecutter.app_name }} group + group: + name: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %}" + system: yes + state: present + +- name: {{ cookiecutter.app_name | upper }} | Ensure {{ cookiecutter.app_name }} user + user: + name: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_user {% raw %}}}{% endraw %}" + group: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %}" + system: yes + shell: /usr/sbin/nologin + createhome: no +{% endif %} +- name: {{ cookiecutter.app_name | upper }} | Ensure skeleton paths + file: + dest: "{% raw %}{{{% endraw %} item {% raw %}}}{% endraw %}" +{% if cookiecutter.has_service == 'True' %} + owner: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_user {% raw %}}}{% endraw %}" + group: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %}" +{% endif %} + state: directory + with_items: + - "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_skeleton_paths {% raw %}}}{% endraw %}" + +- name: {{ cookiecutter.app_name | upper }} | Ensure skeleton log paths + file: + dest: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_log_path {% raw %}}}{% endraw %}" +{% if cookiecutter.has_service == 'True' %} + owner: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_user {% raw %}}}{% endraw %}" + group: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %}" +{% endif %} + state: file + when: {{ cookiecutter.app_name }}_log_file is defined + +- name: {{ cookiecutter.app_name | upper }} | Check {{ cookiecutter.app_name }} version + command: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }} --version {% raw %}}}{% endraw %}" + register: {{ cookiecutter.app_name }}_check + changed_when: false + ignore_errors: true + +- name: {{ cookiecutter.app_name | upper }} | Download package + get_url: + url: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_url {% raw %}}}{% endraw %}" + dest: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_package_path {% raw %}}}{% endraw %}" + when: {{ cookiecutter.app_name }}_force_reinstall or {{ cookiecutter.app_name }}_check is failed or {{ cookiecutter.app_name }}_version not in {{ cookiecutter.app_name }}_check.stderr + +- name: {{ cookiecutter.app_name | upper }} | Extract downloaded package + unarchive: + src: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_package_path {% raw %}}}{% endraw %}" + dest: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_download_path {% raw %}}}{% endraw %}" + remote_src: True + when: {{ cookiecutter.app_name }}_force_reinstall or {{ cookiecutter.app_name }}_check is failed or {{ cookiecutter.app_name }}_version not in {{ cookiecutter.app_name }}_check.stderr + +- name: {{ cookiecutter.app_name | upper }} | Copy binary + copy: + src: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_src_bin {% raw %}}}{% endraw %}" + dest: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_bin_path {% raw %}}}{% endraw %}/{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_exec_name {% raw %}}}{% endraw %}" +{% if cookiecutter.has_service == 'True' %} + owner: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_user {% raw %}}}{% endraw %}" + group: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %}" +{% endif %} + remote_src: True + mode: 0755 + when: {{ cookiecutter.app_name }}_force_reinstall or {{ cookiecutter.app_name }}_check is failed or {{ cookiecutter.app_name }}_version not in {{ cookiecutter.app_name }}_check.stderr + +- name: {{ cookiecutter.app_name | upper }} | Link binary + file: + src: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_bin_path {% raw %}}}{% endraw %}/{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_exec_name {% raw %}}}{% endraw %}" + dest: "/usr/bin/{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_exec_name {% raw %}}}{% endraw %}" + state: link + when: {{ cookiecutter.app_name }}_force_reinstall or {{ cookiecutter.app_name }}_check is failed or {{ cookiecutter.app_name }}_version not in {{ cookiecutter.app_name }}_check.stderr diff --git a/{{cookiecutter.app_name}}_role/tasks/main.yml b/{{cookiecutter.app_name}}_role/tasks/main.yml new file mode 100644 index 0000000..f959f73 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/tasks/main.yml @@ -0,0 +1,17 @@ +--- + +- name: {{ cookiecutter.app_name | upper }} | Install + include: install.yml + tags: + - {{ cookiecutter.app_name }}_install + +- name: {{ cookiecutter.app_name | upper }} | Configure + include: config.yml + tags: + - {{ cookiecutter.app_name }}_configure +{% if cookiecutter.has_service == 'True' %} +- name: {{ cookiecutter.app_name | upper }} | Service + include: service.yml + tags: + - {{ cookiecutter.app_name }}_service +{% endif %} \ No newline at end of file diff --git a/{{cookiecutter.app_name}}_role/tasks/service.yml b/{{cookiecutter.app_name}}_role/tasks/service.yml new file mode 100644 index 0000000..9c97f89 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/tasks/service.yml @@ -0,0 +1,17 @@ +--- + +- name: {{ cookiecutter.app_name | upper }} | Copy Daemon script + template: + src: {{ cookiecutter.app_name }}.service.j2 + dest: /etc/systemd/system/{{ cookiecutter.app_name }}.service + mode: 0644 + owner: root + group: root + notify: restart {{ cookiecutter.app_name }} + +- name: {{ cookiecutter.app_name | upper }} | Configuring service + systemd: + name: {{ cookiecutter.app_name }} + state: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_service_state {% raw %}}}{% endraw %}" + enabled: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_service_enabled {% raw %}}}{% endraw %}" + daemon_reload: yes \ No newline at end of file diff --git a/{{cookiecutter.app_name}}_role/templates/{{ cookiecutter.app_name }}.service.j2 b/{{cookiecutter.app_name}}_role/templates/{{ cookiecutter.app_name }}.service.j2 new file mode 100644 index 0000000..066f354 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/templates/{{ cookiecutter.app_name }}.service.j2 @@ -0,0 +1,24 @@ +{% raw %}{{ ansible_managed | comment }}{% endraw %} +[Unit] +Description={{ cookiecutter.app_name | replace('_',' ') }} +Documentation={% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_documentation_link {% raw %}}}{% endraw %} +Requires=network-online.target +After=network-online.target + +[Service] +PrivateTmp={% raw %}{{ private_tmp_service }}{% endraw %} +User={% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_user {% raw %}}}{% endraw %} +Group={% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %} +RuntimeDirectory={{ cookiecutter.app_name }} +LimitNOFILE={% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_max_files {% raw %}}}{% endraw %} + +ExecStart={% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_bin_path {% raw %}}}{% endraw %}/{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_exec_name {% raw %}}}{% endraw %} {% raw %}{%{% endraw %} for option in {{ cookiecutter.app_name }}_options {% raw %}%}{% endraw %}{% raw %}{%{% endraw %} if option {% raw %}%}{% endraw %}-{% raw %}{{{% endraw %} option {% raw %}}}{% endraw %} {% raw %}{%{% endraw %} endif {% raw %}%}{% endraw %}{% raw %}{%{% endraw %} endfor {% raw %}%}{% endraw %} + +StandardOutput={% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_log_output {% raw %}}}{% endraw %} +StandardError={% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_log_output {% raw %}}}{% endraw %} +ExecReload=/bin/kill -HUP $MAINPID +KillSignal=SIGTERM +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/{{cookiecutter.app_name}}_role/test-requirements.txt b/{{cookiecutter.app_name}}_role/test-requirements.txt new file mode 100644 index 0000000..c30c500 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/test-requirements.txt @@ -0,0 +1,4 @@ +ansible=={{ cookiecutter.ansible_version }} +molecule=={{ cookiecutter.molecule_version }} +docker=={{ cookiecutter.python_docker_version }} +ansible-lint=={{ cookiecutter.ansible_lint_version }} \ No newline at end of file diff --git a/{{cookiecutter.app_name}}_role/{% raw %}.gitignore{% endraw %} b/{{cookiecutter.app_name}}_role/{% raw %}.gitignore{% endraw %} new file mode 100644 index 0000000..c4029e0 --- /dev/null +++ b/{{cookiecutter.app_name}}_role/{% raw %}.gitignore{% endraw %} @@ -0,0 +1,15 @@ + +tests/playbook.retry +tests/.cache +__pycache__ +.pytest_cache +.molecule +.vagrant +.cache + +*.iml +.idea +.project + +*.pyc +**/.vscode \ No newline at end of file diff --git a/{{cookiecutter.app_name}}_role/{% raw %}.travis.yml{% endraw %} b/{{cookiecutter.app_name}}_role/{% raw %}.travis.yml{% endraw %} new file mode 100644 index 0000000..0f516cc --- /dev/null +++ b/{{cookiecutter.app_name}}_role/{% raw %}.travis.yml{% endraw %} @@ -0,0 +1,21 @@ +--- +dist: xenial +language: python +python: "3.7" +os: linux +services: + - docker +install: + - pip install pipenv + - pipenv sync +env: + jobs: + {% if cookiecutter.debian_jessie_support == 'True' %}- MOLECULE_DISTRO=debian:jessie-slim{% endif %} + {% if cookiecutter.debian_stretch_support == 'True' %}- MOLECULE_DISTRO=debian:stretch-slim{% endif %} + {% if cookiecutter.debian_buster_support == 'True' %}- MOLECULE_DISTRO=debian:buster-slim{% endif %} +script: + - export MOLECULE_DISTRO=${MOLECULE_DISTRO} + - pipenv run molecule test + +notifications: + webhooks: https://galaxy.ansible.com/api/v1/notifications/ \ No newline at end of file