Merge pull request #13 from idealista/develop

1.0.1 release
This commit is contained in:
Pablo Gómez-Caldito Gómez 2020-09-17 12:38:28 +02:00 committed by GitHub
commit 6426ac52ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 25 additions and 9 deletions

View File

@ -76,7 +76,7 @@ Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com
### Pull Requests ### Pull Requests
* Fill in [the required template](PULL_REQUEST_TEMPLATE.md) * 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 ### Changelog

1
.gitignore vendored
View File

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

View File

@ -2,6 +2,20 @@
All notable changes to this project will be documented in this file. 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). This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog).
## Unreleased
## [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) ## [1.0.0](https://github.com/idealista/cookiecutter-ansible-role/tree/1.0.0) (2020-04-28)
### Added ### Added

View File

@ -22,6 +22,7 @@ def configureRole():
# Delete the service and things that reference the service # Delete the service and things that reference the service
os.remove("tasks/service.yml") os.remove("tasks/service.yml")
os.remove("templates/{{ cookiecutter.app_name }}.service.j2") os.remove("templates/{{ cookiecutter.app_name }}.service.j2")
shutil.rmtree("molecule/default/group_vars")
# Remove or not the handlers folder # Remove or not the handlers folder
if not {{ cookiecutter.has_handlers }}: if not {{ cookiecutter.has_handlers }}:
shutil.rmtree("handlers") shutil.rmtree("handlers")

View File

@ -76,7 +76,7 @@ Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com
### Pull Requests ### Pull Requests
* Fill in [the required template](PULL_REQUEST_TEMPLATE.md) * 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 ### Changelog

View File

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

View File

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

View File

@ -8,10 +8,10 @@
- {{ cookiecutter.app_name }} - {{ cookiecutter.app_name }}
become: true become: true
vars: vars:
goss_version: v0.3.10 goss_version: v0.3.11
goss_arch: amd64 goss_arch: amd64
goss_dst: /usr/local/bin/goss 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_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_test_directory: /tmp
goss_format: documentation goss_format: documentation

View File

@ -36,7 +36,7 @@
when: {{ cookiecutter.app_name }}_log_file is defined when: {{ cookiecutter.app_name }}_log_file is defined
- name: {{ cookiecutter.app_name | upper }} | Check {{ cookiecutter.app_name }} version - 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 register: {{ cookiecutter.app_name }}_check
changed_when: false changed_when: false
ignore_errors: true ignore_errors: true

View File

@ -6,7 +6,7 @@ Requires=network-online.target
After=network-online.target After=network-online.target
[Service] [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 %} User={% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_user {% raw %}}}{% endraw %}
Group={% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %} Group={% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %}
RuntimeDirectory={{ cookiecutter.app_name }} RuntimeDirectory={{ cookiecutter.app_name }}

View File

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