36 Commits
1.0.0 ... 2.1.0

Author SHA1 Message Date
Pablo Gómez-Caldito Gómez
a46e5838a5 Merge pull request #26 from idealista/develop
2.1.0 release
2020-10-20 13:23:12 +02:00
Pablo Gómez-Caldito
2ac757ea01 Update Changelog 2020-10-20 13:12:51 +02:00
Pablo Gómez-Caldito Gómez
96300dc17d Merge pull request #25 from idealista/bugs/23
bugs/23
2020-10-20 13:04:29 +02:00
Pablo Gómez-Caldito
93413088cf #23 Change references to branch master to main 2020-10-20 11:14:43 +02:00
Daniel Ortega
48bb9b59bc Merge pull request #24 from idealista/develop
Preparing release
2020-10-20 10:19:38 +02:00
Daniel Ortega
b211de5ac1 Update CHANGELOG.md 2020-10-19 17:47:42 +02:00
Daniel Ortega
e09ccc4f81 Merge pull request #21 from idealista/features/20
#20 Create stale.yml
2020-10-19 13:59:13 +02:00
Daniel Ortega
59cfae10b0 Update CHANGELOG.md 2020-10-18 23:12:32 +02:00
Daniel Ortega
7de68ec117 #20 Create stale.yml 2020-10-18 23:07:59 +02:00
Pablo Gómez-Caldito Gómez
0b22e75775 Merge pull request #19 from idealista/develop
Release 2.0.0
2020-10-13 12:03:16 +02:00
Pablo Gómez-Caldito
4b9688aede Release 2.0.0 changelog 2020-10-13 11:57:06 +02:00
Pablo Gómez-Caldito Gómez
ef1609d3df Merge pull request #18 from idealista/features/15
features/15
2020-10-13 11:44:03 +02:00
Pablo Gómez-Caldito
56f671ec1e #15 Add pipenv link in readme 2020-10-13 11:35:16 +02:00
Pablo Gómez-Caldito
8d3019b428 #15 Add pipenv wrapper 2020-10-06 14:08:19 +02:00
Pablo Gómez-Caldito Gómez
386caa84d8 Merge pull request #17 from idealista/features/16
features/16
2020-10-06 13:56:19 +02:00
Pablo Gómez-Caldito
bbd2874072 #16 Remove debian jessie support 2020-10-06 09:19:05 +02:00
Víctor Suárez Fernández
694e944229 Merge pull request #14 from idealista/feature/changelog-boilerplate
Boilerplate for CHANGELOG.md
2020-10-06 08:16:42 +02:00
Victor Suarez Fernandez
2276458f71 Update changelog 2020-10-05 13:31:04 +02:00
Victor Suarez Fernandez
6e1d2bd537 Fix typo 2020-10-05 13:29:45 +02:00
Victor Suarez Fernandez
a3ab8589eb Change github/idealista for github_user variable 2020-10-05 13:26:16 +02:00
Victor Suarez Fernandez
3b491d6ec6 Boilerplate CHANGELOG.md 2020-10-05 12:34:38 +02:00
Pablo Gómez-Caldito Gómez
6426ac52ed Merge pull request #13 from idealista/develop
1.0.1 release
2020-09-17 12:38:28 +02:00
Pablo Gómez-Caldito
62261d172a 1.0.1 release changelog 2020-09-17 12:24:27 +02:00
Pablo Gómez-Caldito Gómez
27b81421ed Merge pull request #12 from idealista/bugs/11
bugs/11
2020-09-17 12:21:21 +02:00
Pablo Gómez-Caldito
1b0074df0f #11 Update hooks 2020-09-07 10:20:14 +02:00
Pablo Gómez-Caldito
e682a78962 #11 Fix parameterization of PrivateTmp 2020-09-07 10:12:41 +02:00
Víctor Suárez Fernández
8bb728de03 Merge pull request #10 from idealista/fix/9
Remove vagrant references
2020-08-21 12:02:05 +02:00
Víctor Suárez
f0fe1e0b29 Update CHANGELOG.md 2020-08-20 13:25:31 +02:00
Víctor Suárez
5aa4dea3b7 Remove Vagrant references from .gitignores 2020-08-20 13:25:01 +02:00
Pablo Gómez-Caldito Gómez
9121f1e90f Merge pull request #8 from idealista/bugs/7
bugs/7 Fix bug checking version
2020-08-03 09:15:34 +02:00
Pablo Gómez-Caldito
e0dbecd5b7 #7 Fix bug in in the check version task in install.yml 2020-07-02 12:22:30 +02:00
Pablo Gómez-Caldito Gómez
bcc3787432 Merge pull request #5 from idealista/bugs/3
Bugs/3
2020-05-07 13:26:03 +02:00
Pablo Gómez-Caldito Gómez
5db7847887 Merge branch 'develop' into bugs/3 2020-05-07 13:17:59 +02:00
Pablo Gómez-Caldito Gómez
a195cf54cb Merge pull request #6 from idealista/features/4
Features/4
2020-05-07 13:16:47 +02:00
Pablo Gómez-Caldito
ac7a9aac6f #4 Upgrade to Goss v0.3.11 2020-05-06 16:22:12 +02:00
Pablo Gómez-Caldito
e85a85c5e4 #3 Fix typo in both contributing files 2020-05-06 15:23:20 +02:00
21 changed files with 103 additions and 45 deletions

View File

@@ -76,7 +76,7 @@ Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com
### Pull Requests
* Fill in [the required template](PULL_REQUEST_TEMPLATE.md)
* Any pull request should has **idealista:develop** as base branch.
* Any pull request should have **idealista:develop** as base branch.
### Changelog

17
.github/stale.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false

1
.gitignore vendored
View File

@@ -3,7 +3,6 @@ tests/.cache
__pycache__
.pytest_cache
.molecule
.vagrant
.cache
*.iml

View File

@@ -9,7 +9,6 @@ install:
- pip3 install cookiecutter
env:
jobs:
- MOLECULE_DISTRO=debian:jessie-slim
- MOLECULE_DISTRO=debian:stretch-slim
- MOLECULE_DISTRO=debian:buster-slim

View File

@@ -2,7 +2,39 @@
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).
## Unreleased
## [2.1.0](https://github.com/idealista/cookiecutter-ansible-role/tree/2.1.0) (2020-10-19)
## [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/2.0.0...2.1.0)
### Added
- *[#20](https://github.com/idealista/cookiecutter-ansible-role/issues/20) Add basic configuration in order to enable Probot to delete automatically abandoned PRs/issues* @dortegau
### Fixed
- *[#23](https://github.com/idealista/cookiecutter-ansible-role/issues/23) Change references to branch master to main* @pgomezcaldito
## [2.0.0](https://github.com/idealista/cookiecutter-ansible-role/tree/2.0.0) (2020-10-13)
## [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/1.0.1...2.0.0)
### Removed
- *[#16](https://github.com/idealista/cookiecutter-ansible-role/issues/16) Remove debian jessie support* @pablogcaldito
### Added
- *[#15](https://github.com/idealista/cookiecutter-ansible-role/issues/15) Add pipenv wrapper* @pablogcaldito
- *Add boilerplate README.md* @vicsufer
## [1.0.1](https://github.com/idealista/cookiecutter-ansible-role/tree/1.0.1) (2020-09-17)
## [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/1.0.0...1.0.1)
### Removed
- *[#9](https://github.com/idealista/cookiecutter-ansible-role/issues/9) Remove Vagrant pattern from role gitignore file* @vicsufer
### Added
- *[#4](https://github.com/idealista/cookiecutter-ansible-role/issues/4) Upgrade to Goss v0.3.11* @pablogcaldito
### Fixed
- *[#11](https://github.com/idealista/cookiecutter-ansible-role/issues/11) Fix parameterization of PrivateTmp* @pablogcaldito
- *[#7](https://github.com/idealista/cookiecutter-ansible-role/issues/7) Fix bug in in the check version task in install.yml* @pablogcaldito
- *[#3](https://github.com/idealista/cookiecutter-ansible-role/issues/3) Fix typo in both contributing files* @pablogcaldito
## [1.0.0](https://github.com/idealista/cookiecutter-ansible-role/tree/1.0.0) (2020-04-28)
### Added
- *First release* @pablogcaldito
- *First release* @pablogcaldito

View File

@@ -27,13 +27,11 @@ This cookiecutter:
### Prerequisities
Cookiecutter version 1.7.x installed.
You can satify this requirement with ```pip install cookiecutter```
You just need to have [pipenv](https://github.com/pypa/pipenv) installed.
## Usage
To generate your ansible role type ```cookiecutter https://github.com/idealista/cookiecutter-ansible-role```.
To generate your ansible role type ```printf "cookiecutter==1.7.2\nJinja2==2.11.2" > requirements.txt && pipenv install -r requirements.txt && pipenv run cookiecutter https://github.com/idealista/cookiecutter-ansible-role && rm Pipfile* requirements.txt```.
Then, introduce some parameters needed for generating it.
@@ -56,10 +54,6 @@ 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

View File

@@ -15,7 +15,6 @@
"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"],

View File

@@ -22,6 +22,7 @@ def configureRole():
# Delete the service and things that reference the service
os.remove("tasks/service.yml")
os.remove("templates/{{ cookiecutter.app_name }}.service.j2")
shutil.rmtree("molecule/default/group_vars")
# Remove or not the handlers folder
if not {{ cookiecutter.has_handlers }}:
shutil.rmtree("handlers")
@@ -35,7 +36,7 @@ def configureRole():
os.remove("files/.empty")
def generatePipfile():
os.system("pipenv install -r test-requirements.txt --three")
print("Now cd into the role directory and introduce the following command for it to be ready: \"pipenv install -r test-requirements.txt --three\"")
def main():
checkInput()

View File

@@ -3,7 +3,7 @@
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"
printf "cookiecutter==1.7.2\nJinja2==2.11.2" > requirements.txt && pipenv install -r requirements.txt && pipenv run 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" && rm Pipfile* requirements.txt
(
# Adjust the role to test
cd github_cli_role
@@ -12,8 +12,9 @@ cookiecutter . --no-input app_name="github_cli" exec_name="gh" author="John Doe"
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 install -r test-requirements.txt --three
pipenv run molecule test
)
# Cleanup
rm -rf github_cli_role

View File

@@ -76,7 +76,7 @@ Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com
### Pull Requests
* Fill in [the required template](PULL_REQUEST_TEMPLATE.md)
* Any pull request should has **idealista:develop** as base branch.
* Any pull request should have **idealista:develop** as base branch.
### Changelog

View File

@@ -1,19 +1,14 @@
<!--
Have you read Idealista's Code of Conduct? By filling an Issue, you are expected to comply with it,
including treating everyone with respect: https://github.com/idealista/{{ cookiecutter.app_name }}_role/blob/master/.github/CODE_OF_CONDUCT.md
-->
### 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
* Read [Idealista's Code of Conduct](https://github.com/idealista/{{ cookiecutter.app_name }}_role/blob/main/.github/CODE_OF_CONDUCT.md) and plan to comply with it
* Checked that your issue isn't already filled: [issues](https://github.com/idealista/{{ cookiecutter.app_name }}_role/issues)
* Checked that there is not already provided the described functionality
### Description
<!-- Description of the issue -->
[Description of the issue]
### Steps to Reproduce
@@ -21,16 +16,17 @@ Have you read Idealista's Code of Conduct? By filling an Issue, you are expected
2. [Second Step]
3. [and so on...]
**Expected behavior:** [What you expect to happen]
**Expected behavior:**
<!-- What you expect to happen -->
**Actual behavior:** [What actually happens]
**Reproduces how often:** [What percentage of the time does it reproduce?]
**Actual behavior:**
<!-- What actually happens -->
**Reproduces how often:**
<!-- What percentage of the time does it reproduce? -->
### Versions
<!-- The version/s you notice the behavior. -->
The version/s you notice the behavior.
### Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.
<!-- Any additional information, configuration or data that might be necessary to reproduce the issue. -->

View File

@@ -0,0 +1,18 @@
# 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).
## [Unreleased](https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.app_name }}_role/tree/develop)
### Changed
### Added
### Removed
### Fixed
## [X.Y.Z](https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.app_name }}_role/tree/X.Y.Z)
### [Full Changelog](https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.app_name }}_role/compare/1.0.0...X.Y.Z)
### Changed
*[#<issue_number>](https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.app_name }}_role/issues/<issue_number>) \<Change description\>* @\<author\>
## [1.0.0](https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.app_name }}_role/tree/1.0.0)
- Initial release

View File

@@ -1,12 +1,14 @@
# {{ cookiecutter.app_name | replace('_',' ') | title }} Ansible role
![Logo](https://raw.githubusercontent.com/idealista/{{ cookiecutter.app_name }}_role/master/logo.gif)
![Logo](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 ansible role installs [{{ cookiecutter.app_name | replace('_',' ') | title }}](APP_URL_HERE) in a Debian environment. It has been tested for the following Debian versions:
{% if cookiecutter.debian_stretch_support == 'True' %}* Stretch{% endif %}
{% if cookiecutter.debian_buster_support == 'True' %}* Buster{% endif %}
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).
@@ -26,7 +28,7 @@ These instructions will get you a copy of the role for your Ansible playbook. On
### Prerequisities
Ansible 2.8.x.x version installed.
Ansible {{ cookiecutter.ansible_version }} version installed.
Molecule 3.x.x version installed.
@@ -86,7 +88,7 @@ $ pipenv run molecule test
## Versioning
For the versions available, see the [tags on this repository](https://github.com/idealista/{{ cookiecutter.app_name }}_role/tags).
For the versions available, see the [tags on this repository](https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.app_name }}_role/tags).
Additionaly you can see what change in each version in the [CHANGELOG.md](CHANGELOG.md) file.
@@ -94,7 +96,7 @@ Additionaly you can see what change in each version in the [CHANGELOG.md](CHANGE
* **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.
See also the list of [contributors](https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.app_name }}_role/contributors) who participated in this project.
## License

View File

@@ -56,5 +56,5 @@
- "flag1 {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_flag1_value {% raw %}}}{% endraw %}"
- "flag2 {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_flag2_value {% raw %}}}{% endraw %}"
private_tmp_service: yes
{{ cookiecutter.app_name }}_private_tmp: true
{% endif %}

View File

@@ -13,6 +13,5 @@ galaxy_info:
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 %}

View File

@@ -0,0 +1,3 @@
---
{{ cookiecutter.app_name }}_private_tmp: false

View File

@@ -8,10 +8,10 @@
- {{ cookiecutter.app_name }}
become: true
vars:
goss_version: v0.3.10
goss_version: v0.3.11
goss_arch: amd64
goss_dst: /usr/local/bin/goss
goss_sha256sum: 150f25495ca0d1d4fd2ef8d0e750dbd767a15e9a522505f99b61dd1dd40a76d4
goss_sha256sum: 7a751c102abac61fd8dff45f87f36c3732cb5158e1414ab78e6877864fc2f7a4
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

View File

@@ -36,7 +36,7 @@
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 %}"
command: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_exec_name {% raw %}}}{% endraw %} --version"
register: {{ cookiecutter.app_name }}_check
changed_when: false
ignore_errors: true

View File

@@ -6,7 +6,7 @@ Requires=network-online.target
After=network-online.target
[Service]
PrivateTmp={% raw %}{{ private_tmp_service }}{% endraw %}
PrivateTmp={% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_private_tmp {% raw %}}}{% endraw %}
User={% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_user {% raw %}}}{% endraw %}
Group={% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %}
RuntimeDirectory={{ cookiecutter.app_name }}

View File

@@ -4,7 +4,6 @@ tests/.cache
__pycache__
.pytest_cache
.molecule
.vagrant
.cache
*.iml

View File

@@ -10,7 +10,6 @@ install:
- 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: