Skip to content

Commit

Permalink
Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
ledepedro committed May 30, 2024
1 parent bca20ef commit 40692df
Show file tree
Hide file tree
Showing 90 changed files with 7,865 additions and 187 deletions.
10 changes: 10 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
exclude_paths:
- ./molecule
- ./.travis.yml
- ./.github
parseable: true
skip_list:
- '204'
use_default_rules: true
verbosity: 1
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.yml linguist-detectable=true
*.yaml linguist-detectable=true
*.html linguist-detectable=false
49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: ''

---

<!--
PREREQUISITES
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/idealista/blob/master/CODE_OF_CONDUCT.md
Check that your issue isn't already filled: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aidealista
Check 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?]

### Environment

- The release version/s you are using:
- OS:
- Ansible Version:
- Python Version:
- Others:
### Additional Information

[Any additional information, configuration or data that might be necessary to reproduce the issue.]
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
blank_issues_enabled: false
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FEATURE]"
labels: enhancement
assignees: ''

---

<!--
PREREQUISITES
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/idealista/blob/master/CODE_OF_CONDUCT.md
Check that your issue isn't already filled: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aidealista
Check that there is not already provided the described functionality
-->

### Description

[Description of the issue]

### Why is this needed?

[A clear and concise description of why do you think this is needed]

### Additional Information

[Any additional information, configuration or data.]
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/refactor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Refactor
about: Found anything to refactor in this project?
title: "[REFACTOR]"
labels: clean-up
assignees: ''

---

<!--
PREREQUISITES
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/idealista/blob/master/CODE_OF_CONDUCT.md
Check that your issue isn't already filled: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aidealista
Check that there is not already provided the described functionality
-->

### Description

[Description of the issue]

### Link/s to the specific code that needs a refactor (if applicable)

[Links]
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/support_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Support Request
about: Support request or question about this project
title: "[SUPPORT]"
labels: question
assignees: ''

---

<!--
PREREQUISITES
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/idealista/blob/master/CODE_OF_CONDUCT.md
Check that your issue isn't already filled: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aidealista
Check that there is not already provided the described functionality
-->

### Description

[Description of the issue]

### Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.
Empty file added .github/stale.yml
Empty file.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

tests/playbook.retry
tests/.cache
__pycache__
.pytest_cache
.molecule
.cache

*.iml
.idea
.project

*.pyc
**/.vscode

tmp/

molecule/default/files/pg_hba.conf
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
dist: focal
language: python
os: linux
python: "3.10"
services:
- docker
before_install:
- echo '{"default-cgroupns-mode":"host"}' | sudo tee /etc/docker/daemon.json
- sudo systemctl restart docker
install:
- pip install pipenv
- pipenv sync
env:
jobs:
- DOCKER_BASE_IMAGE=debian:bookworm-slim
- DOCKER_BASE_IMAGE=debian:bullseye-slim
- DOCKER_BASE_IMAGE=debian:buster-slim

script:
- export DOCKER_BASE_IMAGE=${DOCKER_BASE_IMAGE}
- pipenv run molecule test
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
email:
if: branch = master
on_success: change
on_failure: always
recipients:
- [email protected]
18 changes: 18 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
extends: default

rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
line-length: disable
# NOTE(retr0h): Templates no longer fail this lint rule.
# Uncomment if running old Molecule templates.
# truthy: disable

ignore: |
.molecule/
molecule/
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 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/idealista/patroni_role/tree/develop)
### Changed
### Added
### Removed
### Fixed

## [1.0.0](https://github.com/idealista/patroni_role/tree/1.0.0)
### Added
- *Initial release* @ledepedro
Loading

0 comments on commit 40692df

Please sign in to comment.