Skip to content

Commit 025b09a

Browse files
committed
#13 fixing oracleJDK installation
1 parent a429ac1 commit 025b09a

23 files changed

+416
-164
lines changed

.flake8

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[flake8]
2-
ignore = E501
2+
ignore = E501, E701

.github/CODE_OF_CONDUCT.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
35+
## Our Responsibilities
36+
37+
Project maintainers are responsible for clarifying the standards of acceptable
38+
behavior and are expected to take appropriate and fair corrective action in
39+
response to any instances of unacceptable behavior.
40+
41+
Project maintainers have the right and responsibility to remove, edit, or
42+
reject comments, commits, code, wiki edits, issues, and other contributions
43+
that are not aligned to this Code of Conduct, or to ban temporarily or
44+
permanently any contributor for other behaviors that they deem inappropriate,
45+
threatening, offensive, or harmful.
46+
47+
## Scope
48+
49+
This Code of Conduct applies both within project spaces and in public spaces
50+
when an individual is representing the project or its community. Examples of
51+
representing a project or community include using an official project e-mail
52+
address, posting via an official social media account, or acting as an appointed
53+
representative at an online or offline event. Representation of a project may be
54+
further defined and clarified by project maintainers.
55+
56+
## Enforcement
57+
58+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
59+
reported by contacting the project team at [[email protected]](mailto:[email protected]). All
60+
complaints will be reviewed and investigated and will result in a response that
61+
is deemed necessary and appropriate to the circumstances. The project team is
62+
obligated to maintain confidentiality with regard to the reporter of an incident.
63+
Further details of specific enforcement policies may be posted separately.
64+
65+
Project maintainers who do not follow or enforce the Code of Conduct in good
66+
faith may face temporary or permanent repercussions as determined by other
67+
members of the project's leadership.
68+
69+
## Attribution
70+
71+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
72+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
73+
74+
[homepage]: https://www.contributor-covenant.org

.github/CONTRIBUTING.md

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Contributing to Idealista
2+
3+
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
4+
5+
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.
6+
7+
#### Table Of Contents
8+
9+
[Code of Conduct](#code-of-conduct)
10+
11+
[How Can I Contribute?](#how-can-i-contribute)
12+
* [Reporting Bugs](#reporting-bugs)
13+
* [Suggesting Enhancements](#suggesting-enhancements)
14+
* [Pull Requests](#pull-requests)
15+
* [Changelog](#changelog)
16+
17+
[Styleguides](#styleguides)
18+
* [Git Commit Messages](#git-commit-messages)
19+
20+
## Code of Conduct
21+
22+
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 [[email protected]](mailto:[email protected]).
23+
24+
25+
## How Can I Contribute?
26+
27+
### Reporting Bugs
28+
29+
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:.
30+
31+
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.
32+
33+
> **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.
34+
35+
#### Before Submitting A Bug Report
36+
37+
* **Check the last version.** Check if you can reproduce the problem in the latest version of the project.
38+
* **Check the FAQ of the project** for a list of common questions and problems.
39+
* **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.
40+
41+
#### How Do I Submit A (Good) Bug Report?
42+
43+
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).
44+
45+
Explain the problem and include additional details to help maintainers reproduce the problem:
46+
47+
* **Use a clear and descriptive title** for the issue to identify the problem.
48+
* **Describe the exact steps which reproduce the problem** in as many details as possible.
49+
* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
50+
* **Explain which behavior you expected to see instead and why.**
51+
52+
### Suggesting Enhancements
53+
54+
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:.
55+
56+
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.
57+
58+
#### Before Submitting An Enhancement Suggestion
59+
60+
* **Check the last version.** Check if you can reproduce the problem in the latest version of the project.
61+
* **Check the FAQ of the project** for a list of common questions and problems.
62+
* **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.
63+
64+
#### How Do I Submit A (Good) Enhancement Suggestion?
65+
66+
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):
67+
68+
* **Use a clear and descriptive title** for the issue to identify the suggestion.
69+
* **Provide a step-by-step description of the suggested enhancement** in as many details as possible.
70+
* **Provide specific examples to demonstrate the steps**.
71+
* **Describe the current behavior** and **explain which behavior you expected to see instead** and why.
72+
* **Explain why this enhancement would be useful**.
73+
* **List some other text editors or applications where this enhancement exists.**
74+
* **Specify which version are you're using.**
75+
76+
### Pull Requests
77+
78+
* Fill in [the required template](PULL_REQUEST_TEMPLATE.md)
79+
* Any pull request should has **idealista:develop** as base branch.
80+
81+
### Changelog
82+
83+
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:
84+
85+
* For an enhancement, fill the issue after the **Added** subsection (create it if doesn't exists)
86+
* For a fixed bug, fill the issue after the **Fixed** subsection (create it if doesn't exists)
87+
* For an improvement, fill the issue after the **Changed** subsection (create it if doesn't exists)
88+
89+
Then write the issue info this way:
90+
91+
- *[#29](https://github.com/idealista/nginx-role/issues/29) Support debian stretch* @jmonterrubio
92+
93+
## Styleguides
94+
95+
### Git Commit Messages
96+
97+
* Use the present tense ("Add feature" not "Added feature")
98+
* Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
99+
* Limit the first line to 72 characters or less
100+
* Reference issues and pull requests liberally after the first line

.github/ISSUE_TEMPLATE.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!--
2+
3+
Have you read Idealista's Code of Conduct? By filling an Issue, you are expected to comply with it,
4+
including treating everyone with respect: https://github.com/idealista/idealista/blob/master/CODE_OF_CONDUCT.md
5+
6+
-->
7+
8+
### Prerequisites
9+
10+
* [ ] Put an X between the brackets on this line if you have done all of the following:
11+
* Checked that your issue isn't already filled: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aidealista
12+
* Checked that there is not already provided the described functionality
13+
14+
### Description
15+
16+
[Description of the issue]
17+
18+
### Steps to Reproduce
19+
20+
1. [First Step]
21+
2. [Second Step]
22+
3. [and so on...]
23+
24+
**Expected behavior:** [What you expect to happen]
25+
26+
**Actual behavior:** [What actually happens]
27+
28+
**Reproduces how often:** [What percentage of the time does it reproduce?]
29+
30+
### Versions
31+
32+
The version/s you notice the behavior.
33+
34+
### Additional Information
35+
36+
Any additional information, configuration or data that might be necessary to reproduce the issue.

.github/PULL_REQUEST_TEMPLATE.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
### Requirements
2+
3+
* 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.
4+
* All new code requires tests to ensure against regressions
5+
* Remember to set **idealista:develop** as base branch;
6+
7+
### Description of the Change
8+
9+
<!--
10+
11+
We must be able to understand the design of your change from this description. If we can't get a good idea of what the code will be doing from the description here, the pull request may be closed at the maintainers' discretion. Keep in mind that the maintainer reviewing this PR may not be familiar with or have worked with the code here recently, so please walk us through the concepts.
12+
13+
-->
14+
15+
16+
### Benefits
17+
18+
<!-- What benefits will be realized by the code change? -->
19+
20+
### Possible Drawbacks
21+
22+
<!-- What are the possible side-effects or negative impacts of the code change? -->
23+
24+
### Applicable Issues
25+
26+
<!-- Enter any applicable Issues here -->

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog).
44

55
## [Unreleased](https://github.com/idealista/java-role/tree/develop)
6+
- *Fixing OracleJDK installation (now without webupd8 PPA)* @dortegau
7+
- *Using OpenJDK as default implementation* @dortegau
68

79
## [1.2.0](https://github.com/idealista/java-role/tree/1.2.0)
810
### Added

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
# Java Ansible role
66

7-
This ansible role installs java in a debian environment.
7+
This ansible role installs java ([OpenJDK](http://openjdk.java.net/) or [Oracle JDK](http://www.oracle.com/technetwork/java/javase/overview/index.html)) in a debian environment.
8+
9+
**DISCLAIMER:** Usage of any version of Oracle JDK in this role implies you have accepted the
10+
[Oracle Binary Code License Agreement for Java SE](http://www.oracle.com/technetwork/java/javase/terms/license/index.html).
811

912
- [Getting Started](#getting-started)
1013
- [Prerequisities](#prerequisities)
@@ -16,7 +19,6 @@ This ansible role installs java in a debian environment.
1619
- [Authors](#authors)
1720
- [License](#license)
1821
- [Contributing](#contributing)
19-
- [Acknowledgments](#acknowledgments)
2022

2123
## Getting Started
2224

@@ -103,6 +105,4 @@ This project is licensed under the [Apache 2.0](https://www.apache.org/licenses/
103105

104106
## Contributing
105107

106-
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
107-
108-
## Acknowledgments
108+
Please read [CONTRIBUTING.md](.github/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

defaults/main.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
java_version: 8
44
java_set_version: 8
55

6-
# IMPLEMENTATION
7-
java_implementation: oracle # [oracle, openjdk]
6+
# Choosen platform
7+
java_implementation: openjdk # [openjdk, oraclejdk]
8+
9+
# Oracle implementation (only support for x64 architectures)
10+
java_oracle_jdk_version: 1.8.0_151 # [1.8.0_151, 1.8.0_152, 9.0.1] (see available urls in ../vars/main.yml)
11+
java_oracle_install_path: /opt/jdk/{{ java_oracle_jdk_version }}

meta/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ galaxy_info:
99
versions:
1010
- jessie
1111
- stretch
12+
13+
- name: Ubuntu
14+
versions:
15+
- Xenial

molecule.yml

+11-12
Original file line numberDiff line numberDiff line change
@@ -45,46 +45,45 @@ vagrant:
4545
- name: virtualbox
4646
type: virtualbox
4747
options:
48-
memory: 256
48+
memory: 512
4949
cpus: 1
5050

5151
instances:
52-
- name: oracle
52+
- name: openjdk.vm
5353
ansible_groups:
54-
- oracle
54+
- openjdk
5555
interfaces:
5656
- network_name: private_network
5757
type: dhcp
5858
auto_config: true
59-
- name: openjdk
59+
60+
- name: oraclejdk.vm
6061
ansible_groups:
61-
- openjdk
62+
- oraclejdk
6263
interfaces:
6364
- network_name: private_network
6465
type: dhcp
6566
auto_config: true
6667

6768
docker:
6869
containers:
69-
- name: oracle
70+
- name: openjdk
7071
ansible_groups:
71-
- oracle
72+
- openjdk
7273
image: geerlingguy/docker-debian8-ansible
7374
image_version: latest
74-
7575
privileged: True
7676
cap_add:
7777
- SYS_ADMIN
7878
volume_mounts:
7979
- '/sys/fs/cgroup:/sys/fs/cgroup:ro'
8080
command: '/lib/systemd/systemd'
8181

82-
- name: openjdk
82+
- name: oracle
8383
ansible_groups:
84-
- openjdk
84+
- oracle
8585
image: geerlingguy/docker-debian8-ansible
8686
image_version: latest
87-
8887
privileged: True
8988
cap_add:
9089
- SYS_ADMIN
@@ -96,4 +95,4 @@ verifier:
9695
name: testinfra
9796
options:
9897
connection: ansible
99-
ansible-inventory: .molecule/ansible_inventory
98+
ansible-inventory: .molecule/ansible_inventory

0 commit comments

Comments
 (0)