Skip to content

Commit

Permalink
Merge pull request #146 from idealista/develop
Browse files Browse the repository at this point in the history
Upgrade to version 8.11.0, fix log4j and Debian 11 bullseye support
  • Loading branch information
antonioarenzanapulido authored Dec 22, 2021
2 parents 239e770 + f3107b1 commit b4f7742
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
language: python
python: "3.7"
python: "3.9"
sudo: required
services:
- docker
Expand All @@ -14,6 +14,7 @@ env:
- DOCKER_IMAGE_BASE=idealista/jdk:11.0.6-stretch-openjdk-headless
- DOCKER_IMAGE_BASE=idealista/jdk:8u252-focal-openjdk-headless
- DOCKER_IMAGE_BASE=idealista/jdk:14.0.1-focal-openjdk-headless
- DOCKER_IMAGE_BASE=idealista/jdk:11.0.12-bullseye-openjdk-headless
script:
- pipenv run molecule test --all --destroy always

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.

## [Unreleased](https://github.com/idealista/solr_role/tree/develop)

## [3.0.2](https://github.com/idealista/solr_role/tree/3.0.2) (2021-12-20)
### Added
- *[#141] Upgrade to version 8.11.0* @aren-pulid0
- *[#141] Fix log4j vulnerability* @aren-pulid0
- *[#141] Support for Debian 11 bullseye* @aren-pulid0

## [3.0.1](https://github.com/idealista/solr_role/tree/3.0.1) (2021-09-13)
### Changed
- *Default version as 8.9.0* @sorobon
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ docker = "==4.2.0"
ansible-lint = "==4.2.0"

[requires]
python_version = "3"
python_version = "3.9"
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

## General
solr_version: 8.9.0
solr_version: 8.11.0
solr_install: true
solr_mode: cloud # standalone|cloud

Expand Down
7 changes: 7 additions & 0 deletions molecule/default/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ FROM {{ item.image }}
{% endif %}

# install minimal packages for debian slim images
{% if 'bullseye' in item.image %}
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" apt-get install -y python3 sudo bash ca-certificates iproute2 systemd systemd-sysv python3-pip python3-lxml && \
update-alternatives --install /usr/bin/python python /usr/bin/python3 0 &&\
apt-get clean
{% else %}
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" apt-get install -y -q python3 sudo bash ca-certificates iproute2 systemd systemd-sysv python3-lxml && \
apt-get clean
{% endif %}

STOPSIGNAL SIGRTMIN+3
RUN systemctl set-default multi-user.target
4 changes: 2 additions & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ platforms:

- name: solrcloud1
hostname: solrcloud1
image: ${DOCKER_IMAGE_BASE:-idealista/jdk:11.0.12-buster-openjdk-headless}
image: ${DOCKER_IMAGE_BASE:-idealista/jdk:11.0.12-bullseye-openjdk-headless}
privileged: false
capabilities:
- SYS_ADMIN
Expand All @@ -54,7 +54,7 @@ platforms:

- name: solrcloud2
hostname: solrcloud2
image: ${DOCKER_IMAGE_BASE:-idealista/jdk:11.0.12-buster-openjdk-headless}
image: ${DOCKER_IMAGE_BASE:-idealista/jdk:11.0.12-bullseye-openjdk-headless}
privileged: false
capabilities:
- SYS_ADMIN
Expand Down
3 changes: 3 additions & 0 deletions tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
force: true
notify: restart Solr

- name: Solr | Gather OS specific vars
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"

- name: Solr | Install maven_artifact module required packages
apt:
package: "{{ solr_external_libraries_required_packages }}"
Expand Down
5 changes: 4 additions & 1 deletion templates/solr.in.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,7 @@ SOLR_OPTS="$SOLR_OPTS -Dsolr.environment={{ solr_environment_ui }}"
# Runtime properties are passed to the security policy file (server/etc/security.policy)
# You can also tweak via standard JDK files such as ~/.java.policy, see https://s.apache.org/java8policy
# This is experimental! It may not work at all with Hadoop/HDFS features.
#SOLR_SECURITY_MANAGER_ENABLED=false
#SOLR_SECURITY_MANAGER_ENABLED=false

# log4j vulnerability https://solr.apache.org/security.html#apache-solr-affected-by-apache-log4j-cve-2021-44228
SOLR_OPTS="$SOLR_OPTS -Dlog4j2.formatMsgNoLookups=true"
7 changes: 4 additions & 3 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ansible==2.9.13
molecule==3.0.4
docker==4.2.0
ansible==5.0.1
molecule==3.5.2
molecule-docker==1.1.0
docker==4.4.4
ansible-lint==4.2.0
4 changes: 4 additions & 0 deletions vars/Debian-10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

solr_external_libraries_required_packages:
- python-lxml
4 changes: 4 additions & 0 deletions vars/Debian-11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

solr_external_libraries_required_packages:
- python3-lxml
4 changes: 4 additions & 0 deletions vars/Debian-9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

solr_external_libraries_required_packages:
- python-lxml
4 changes: 4 additions & 0 deletions vars/Ubuntu-20.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

solr_external_libraries_required_packages:
- python-lxml

0 comments on commit b4f7742

Please sign in to comment.