forked from Mirrors/cookiecutter-ansible-role
Compare commits
49 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6b43a5224 | ||
|
|
76e7d4a749 | ||
|
|
60c56f0aaa | ||
|
|
97507c17b3 | ||
|
|
55a257bdf8 | ||
|
|
f03745c5e2 | ||
|
|
0c9af7eece | ||
|
|
f8a86832e8 | ||
|
|
4c2af41064 | ||
|
|
c3cb5c464e | ||
|
|
c5554da841 | ||
|
|
57c284758f | ||
|
|
6ab92110f4 | ||
|
|
616dfe9ac9 | ||
|
|
541d83b59b | ||
|
|
244442d026 | ||
|
|
ee867550a9 | ||
|
|
ee40b1c90e | ||
|
|
61a915fc94 | ||
|
|
45935e8636 | ||
|
|
807efd330e | ||
|
|
689d5a9a7e | ||
|
|
a290867ae2 | ||
|
|
d39c86b6ef | ||
|
|
9531848d42 | ||
|
|
3a4bc776d6 | ||
|
|
b87425cffe | ||
|
|
685baa12ca | ||
|
|
a46e5838a5 | ||
|
|
2ac757ea01 | ||
|
|
96300dc17d | ||
|
|
93413088cf | ||
|
|
48bb9b59bc | ||
|
|
b211de5ac1 | ||
|
|
e09ccc4f81 | ||
|
|
59cfae10b0 | ||
|
|
7de68ec117 | ||
|
|
0b22e75775 | ||
|
|
4b9688aede | ||
|
|
ef1609d3df | ||
|
|
56f671ec1e | ||
|
|
8d3019b428 | ||
|
|
386caa84d8 | ||
|
|
bbd2874072 | ||
|
|
694e944229 | ||
|
|
2276458f71 | ||
|
|
6e1d2bd537 | ||
|
|
a3ab8589eb | ||
|
|
3b491d6ec6 |
22
.github/auto_assign.yml
vendored
Normal file
22
.github/auto_assign.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# Set to true to add reviewers to pull requests
|
||||
addReviewers: true
|
||||
|
||||
# Set to true to add assignees to pull requests
|
||||
addAssignees: false
|
||||
|
||||
# A list of team reviewers to be added to pull requests (GitHub team slug)
|
||||
reviewers:
|
||||
- idealista/reviewers
|
||||
|
||||
# Number of reviewers has no impact on Github teams
|
||||
# Set 0 to add all the reviewers (default: 0)
|
||||
numberOfReviewers: 0
|
||||
|
||||
# Set to author to set pr creator as assignee
|
||||
addAssignees: author
|
||||
|
||||
|
||||
# A list of keywords to be skipped the process that add reviewers if pull requests include it
|
||||
skipKeywords:
|
||||
- "WIP"
|
||||
- "[WIP]"
|
||||
32
.github/stale.yml
vendored
Normal file
32
.github/stale.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
issues:
|
||||
# Number of days of inactivity before an issue becomes stale
|
||||
daysUntilStale: 90
|
||||
# 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"
|
||||
- "good first issue"
|
||||
# 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
|
||||
|
||||
pulls:
|
||||
# Number of days of inactivity before a pull request becomes stale
|
||||
daysUntilStale: 90
|
||||
# Number of days of inactivity before a stale pull request is closed
|
||||
daysUntilClose: 7
|
||||
# Comment to post when marking a pull request as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This pull request 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 pull request. Set to `false` to disable
|
||||
closeComment: false
|
||||
@@ -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
|
||||
|
||||
|
||||
33
CHANGELOG.md
33
CHANGELOG.md
@@ -3,6 +3,37 @@ 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.2.0) (2020-11-10)
|
||||
### [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/2.1.0...2.2.0)
|
||||
|
||||
### Fixed
|
||||
- *[#27](https://github.com/idealista/cookiecutter-ansible-role/issues/27) Adding Probot configuration to Ansible Role template* @dortegau
|
||||
|
||||
### Changed
|
||||
- *[#27](https://github.com/idealista/cookiecutter-ansible-role/issues/27) Increase to 90 days the minimum days to declare a PR/Issue as `staled`* @dortegau
|
||||
- *[#32](https://github.com/idealista/cookiecutter-ansible-role/pull/32) Avoid closing automatically good first issues* @vicsufer
|
||||
|
||||
### Removed
|
||||
- *[#29](https://github.com/idealista/cookiecutter-ansible-role/issues/29) Removing redudant script in .travis.yml* @xtianae7
|
||||
|
||||
## [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
|
||||
@@ -19,4 +50,4 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a ch
|
||||
## [1.0.0](https://github.com/idealista/cookiecutter-ansible-role/tree/1.0.0) (2020-04-28)
|
||||
|
||||
### Added
|
||||
- *First release* @pablogcaldito
|
||||
- *First release* @pablogcaldito
|
||||
|
||||
10
README.md
10
README.md
@@ -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
|
||||
|
||||
@@ -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"],
|
||||
|
||||
@@ -36,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()
|
||||
|
||||
5
test.sh
5
test.sh
@@ -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
|
||||
|
||||
@@ -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. -->
|
||||
|
||||
32
{{cookiecutter.app_name}}_role/.github/stale.yml
vendored
Normal file
32
{{cookiecutter.app_name}}_role/.github/stale.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
issues:
|
||||
# Number of days of inactivity before an issue becomes stale
|
||||
daysUntilStale: 90
|
||||
# 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"
|
||||
- "good first issue"
|
||||
# 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
|
||||
|
||||
pulls:
|
||||
# Number of days of inactivity before a pull request becomes stale
|
||||
daysUntilStale: 90
|
||||
# Number of days of inactivity before a stale pull request is closed
|
||||
daysUntilClose: 7
|
||||
# Comment to post when marking a pull request as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This pull request 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 pull request. Set to `false` to disable
|
||||
closeComment: false
|
||||
@@ -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
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
# {{ cookiecutter.app_name | replace('_',' ') | title }} Ansible role
|
||||

|
||||

|
||||
|
||||
[](https://travis-ci.org/idealista/{{ cookiecutter.app_name }}_role)
|
||||
[](https://travis-ci.com/idealista/{{ cookiecutter.app_name }}_role)
|
||||
[](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
|
||||
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -10,11 +10,9 @@ 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:
|
||||
- export MOLECULE_DISTRO=${MOLECULE_DISTRO}
|
||||
- pipenv run molecule test
|
||||
|
||||
notifications:
|
||||
|
||||
Reference in New Issue
Block a user