[ansible] JFrog Platform 10.6.0 release (#216)

This commit is contained in:
Ram Mohan Rao Chukka
2022-05-10 15:28:01 +05:30
committed by GitHub
parent d6669bdda2
commit 5097e35075
15 changed files with 49 additions and 23 deletions

View File

@@ -1,6 +1,11 @@
# JFrog Platform Ansible Collection Changelog
All changes to this collection will be documented in this file.
## [10.6.0] - May 10, 2022
* Keep SELinux settings on upgrade + check mode [GH-214](https://github.com/jfrog/JFrog-Cloud-Installers/pull/214)
* Artifactory - Add support for default database driver [GH-213](https://github.com/jfrog/JFrog-Cloud-Installers/pull/213)
* Product Updates/fixes
## [10.5.2] - Apr 27, 2022
* Product Updates/fixes

View File

@@ -9,7 +9,7 @@ namespace: "jfrog"
name: "platform"
# The version of the collection. Must be compatible with semantic versioning
version: "10.5.2"
version: "10.6.0"
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: "README.md"

View File

@@ -1,7 +1,7 @@
# defaults file for artifactory
# The version of artifactory to install
artifactory_version: 7.37.15
artifactory_version: 7.38.7
# Set this to true when SSL is enabled (to use artifactory_nginx_ssl role), default to false (implies artifactory uses artifactory_nginx role )
artifactory_nginx_ssl_enabled: false

View File

@@ -0,0 +1,8 @@
---
- name: Configure SELinux context
become: yes
sefcontext:
target: "{{ jfrog_home_directory }}/artifactory/app/bin(/.*)?"
setype: bin_t
state: present
when: ansible_selinux.status == 'enabled'

View File

@@ -0,0 +1,6 @@
---
- name: Restore SELinux content
become: yes
ansible.builtin.command: restorecon -R -v "{{ jfrog_home_directory }}/artifactory/app/bin"
when: ansible_distribution == 'RedHat'
changed_when: false

View File

@@ -5,9 +5,4 @@
state: present
- name: Configure SELinux context
become: yes
sefcontext:
target: "{{ jfrog_home_directory }}/artifactory/app/bin(/.*)?"
setype: bin_t
state: present
when: ansible_selinux.status == 'enabled'
include_tasks: shared/selinux_configure_context.yml

View File

@@ -68,7 +68,7 @@
group: "{{ artifactory_group }}"
creates: "{{ artifactory_untar_home }}"
remote_src: true
when: download_artifactory is succeeded
when: (download_artifactory is succeeded) and (not ansible_check_mode)
- name: Check if app directory exists
become: yes
@@ -158,10 +158,18 @@
- artifactory_licenses | length > 0
notify: restart artifactory
- name: Check if included database driver is the correct version
become: yes
stat:
path: "{{ artifactory_home }}/app/artifactory/tomcat/lib/postgresql-{{ postgres_driver_version }}.jar"
register: included_database_driver
- name: Check if database driver exists
become: yes
stat:
path: "{{ artifactory_home }}/app/artifactory/tomcat/lib/jf_postgresql-{{ postgres_driver_version }}.jar"
when:
- not included_database_driver.stat.exists
register: database_driver
- name: Download database driver
@@ -174,14 +182,11 @@
when:
- postgres_driver_download_url is defined
- not database_driver.stat.exists
- not included_database_driver.stat.exists
notify: restart artifactory
- name: Run restore context to reload selinux
become: yes
shell: |
restorecon -R -v "{{ jfrog_home_directory }}/artifactory/app/bin"
when: ansible_distribution == 'RedHat'
changed_when: false
- name: Restore SELinux content
include_tasks: shared/selinux_restore_context.yml
- name: Create artifactory service
become: yes

View File

@@ -1,3 +1,6 @@
- name: Configure SELinux context
include_tasks: shared/selinux_configure_context.yml
- name: Check if artifactory tar already exists
become: yes
stat:
@@ -24,7 +27,7 @@
owner: "{{ artifactory_user }}"
group: "{{ artifactory_group }}"
creates: "{{ artifactory_untar_home }}"
when: download_artifactory is succeeded
when: (download_artifactory is succeeded) and (not ansible_check_mode)
- name: Stop artifactory
meta: flush_handlers
@@ -47,6 +50,7 @@
become: yes
command: "cp -r {{ artifactory_untar_home }}/app/. {{ artifactory_home }}/app"
when: download_artifactory.changed
notify: restart artifactory
- name: Configure artifactory license(s)
become: yes
@@ -114,6 +118,9 @@
- artifactory_systemyaml_override or (not systemyaml.stat.exists)
notify: restart artifactory
- name: Restore SELinux content
include_tasks: shared/selinux_restore_context.yml
- name: Ensure permissions are correct
include_tasks: shared/ensure_permissions_correct.yml

View File

@@ -1,5 +1,5 @@
# platform collection version
platform_collection_version: 10.5.2
platform_collection_version: 10.6.0
# indicates where this collection was downloaded from (galaxy, automation_hub, standalone)
ansible_marketplace: galaxy

View File

@@ -1,7 +1,7 @@
# defaults file for distribution
# The version of distribution to install
distribution_version: 2.12.1
distribution_version: 2.12.2
# whether to enable HA
distribution_ha_enabled: false

View File

@@ -1,5 +1,5 @@
# platform collection version
platform_collection_version: 10.5.2
platform_collection_version: 10.6.0
# indicates were this collection was downlaoded from (galaxy, automation_hub, standalone)
ansible_marketplace: galaxy

View File

@@ -1,7 +1,7 @@
# defaults file for insight
# The version of insight to install
insight_version: 1.9.0
insight_version: 1.10.2
# whether to enable HA
insight_ha_enabled: false

View File

@@ -1,5 +1,5 @@
# platform collection version
platform_collection_version: 10.5.2
platform_collection_version: 10.6.0
# indicates were this collection was downlaoded from (galaxy, automation_hub, standalone)
ansible_marketplace: galaxy

View File

@@ -1,7 +1,7 @@
# defaults file for xray
# The version of xray to install
xray_version: 3.47.3
xray_version: 3.48.2
# whether to enable HA
xray_ha_enabled: false

View File

@@ -1,5 +1,5 @@
# platform collection version
platform_collection_version: 10.5.2
platform_collection_version: 10.6.0
# indicates were this collection was downlaoded from (galaxy, automation_hub, standalone)
ansible_marketplace: galaxy