mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 00:06:55 -06:00
[ansible] JFrog Platform 10.6.0 release (#216)
This commit is contained in:
committed by
GitHub
parent
d6669bdda2
commit
5097e35075
@@ -1,6 +1,11 @@
|
|||||||
# JFrog Platform Ansible Collection Changelog
|
# JFrog Platform Ansible Collection Changelog
|
||||||
All changes to this collection will be documented in this file.
|
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
|
## [10.5.2] - Apr 27, 2022
|
||||||
* Product Updates/fixes
|
* Product Updates/fixes
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace: "jfrog"
|
|||||||
name: "platform"
|
name: "platform"
|
||||||
|
|
||||||
# The version of the collection. Must be compatible with semantic versioning
|
# 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
|
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
||||||
readme: "README.md"
|
readme: "README.md"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# defaults file for artifactory
|
# defaults file for artifactory
|
||||||
|
|
||||||
# The version of artifactory to install
|
# 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 )
|
# 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
|
artifactory_nginx_ssl_enabled: false
|
||||||
|
|||||||
@@ -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'
|
||||||
@@ -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
|
||||||
@@ -5,9 +5,4 @@
|
|||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Configure SELinux context
|
- name: Configure SELinux context
|
||||||
become: yes
|
include_tasks: shared/selinux_configure_context.yml
|
||||||
sefcontext:
|
|
||||||
target: "{{ jfrog_home_directory }}/artifactory/app/bin(/.*)?"
|
|
||||||
setype: bin_t
|
|
||||||
state: present
|
|
||||||
when: ansible_selinux.status == 'enabled'
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
group: "{{ artifactory_group }}"
|
group: "{{ artifactory_group }}"
|
||||||
creates: "{{ artifactory_untar_home }}"
|
creates: "{{ artifactory_untar_home }}"
|
||||||
remote_src: true
|
remote_src: true
|
||||||
when: download_artifactory is succeeded
|
when: (download_artifactory is succeeded) and (not ansible_check_mode)
|
||||||
|
|
||||||
- name: Check if app directory exists
|
- name: Check if app directory exists
|
||||||
become: yes
|
become: yes
|
||||||
@@ -158,10 +158,18 @@
|
|||||||
- artifactory_licenses | length > 0
|
- artifactory_licenses | length > 0
|
||||||
notify: restart artifactory
|
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
|
- name: Check if database driver exists
|
||||||
become: yes
|
become: yes
|
||||||
stat:
|
stat:
|
||||||
path: "{{ artifactory_home }}/app/artifactory/tomcat/lib/jf_postgresql-{{ postgres_driver_version }}.jar"
|
path: "{{ artifactory_home }}/app/artifactory/tomcat/lib/jf_postgresql-{{ postgres_driver_version }}.jar"
|
||||||
|
when:
|
||||||
|
- not included_database_driver.stat.exists
|
||||||
register: database_driver
|
register: database_driver
|
||||||
|
|
||||||
- name: Download database driver
|
- name: Download database driver
|
||||||
@@ -174,14 +182,11 @@
|
|||||||
when:
|
when:
|
||||||
- postgres_driver_download_url is defined
|
- postgres_driver_download_url is defined
|
||||||
- not database_driver.stat.exists
|
- not database_driver.stat.exists
|
||||||
|
- not included_database_driver.stat.exists
|
||||||
notify: restart artifactory
|
notify: restart artifactory
|
||||||
|
|
||||||
- name: Run restore context to reload selinux
|
- name: Restore SELinux content
|
||||||
become: yes
|
include_tasks: shared/selinux_restore_context.yml
|
||||||
shell: |
|
|
||||||
restorecon -R -v "{{ jfrog_home_directory }}/artifactory/app/bin"
|
|
||||||
when: ansible_distribution == 'RedHat'
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: Create artifactory service
|
- name: Create artifactory service
|
||||||
become: yes
|
become: yes
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
- name: Configure SELinux context
|
||||||
|
include_tasks: shared/selinux_configure_context.yml
|
||||||
|
|
||||||
- name: Check if artifactory tar already exists
|
- name: Check if artifactory tar already exists
|
||||||
become: yes
|
become: yes
|
||||||
stat:
|
stat:
|
||||||
@@ -24,7 +27,7 @@
|
|||||||
owner: "{{ artifactory_user }}"
|
owner: "{{ artifactory_user }}"
|
||||||
group: "{{ artifactory_group }}"
|
group: "{{ artifactory_group }}"
|
||||||
creates: "{{ artifactory_untar_home }}"
|
creates: "{{ artifactory_untar_home }}"
|
||||||
when: download_artifactory is succeeded
|
when: (download_artifactory is succeeded) and (not ansible_check_mode)
|
||||||
|
|
||||||
- name: Stop artifactory
|
- name: Stop artifactory
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
||||||
@@ -47,6 +50,7 @@
|
|||||||
become: yes
|
become: yes
|
||||||
command: "cp -r {{ artifactory_untar_home }}/app/. {{ artifactory_home }}/app"
|
command: "cp -r {{ artifactory_untar_home }}/app/. {{ artifactory_home }}/app"
|
||||||
when: download_artifactory.changed
|
when: download_artifactory.changed
|
||||||
|
notify: restart artifactory
|
||||||
|
|
||||||
- name: Configure artifactory license(s)
|
- name: Configure artifactory license(s)
|
||||||
become: yes
|
become: yes
|
||||||
@@ -114,6 +118,9 @@
|
|||||||
- artifactory_systemyaml_override or (not systemyaml.stat.exists)
|
- artifactory_systemyaml_override or (not systemyaml.stat.exists)
|
||||||
notify: restart artifactory
|
notify: restart artifactory
|
||||||
|
|
||||||
|
- name: Restore SELinux content
|
||||||
|
include_tasks: shared/selinux_restore_context.yml
|
||||||
|
|
||||||
- name: Ensure permissions are correct
|
- name: Ensure permissions are correct
|
||||||
include_tasks: shared/ensure_permissions_correct.yml
|
include_tasks: shared/ensure_permissions_correct.yml
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# platform collection version
|
# 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)
|
# indicates where this collection was downloaded from (galaxy, automation_hub, standalone)
|
||||||
ansible_marketplace: galaxy
|
ansible_marketplace: galaxy
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# defaults file for distribution
|
# defaults file for distribution
|
||||||
|
|
||||||
# The version of distribution to install
|
# The version of distribution to install
|
||||||
distribution_version: 2.12.1
|
distribution_version: 2.12.2
|
||||||
|
|
||||||
# whether to enable HA
|
# whether to enable HA
|
||||||
distribution_ha_enabled: false
|
distribution_ha_enabled: false
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# platform collection version
|
# 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)
|
# indicates were this collection was downlaoded from (galaxy, automation_hub, standalone)
|
||||||
ansible_marketplace: galaxy
|
ansible_marketplace: galaxy
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# defaults file for insight
|
# defaults file for insight
|
||||||
|
|
||||||
# The version of insight to install
|
# The version of insight to install
|
||||||
insight_version: 1.9.0
|
insight_version: 1.10.2
|
||||||
|
|
||||||
# whether to enable HA
|
# whether to enable HA
|
||||||
insight_ha_enabled: false
|
insight_ha_enabled: false
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# platform collection version
|
# 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)
|
# indicates were this collection was downlaoded from (galaxy, automation_hub, standalone)
|
||||||
ansible_marketplace: galaxy
|
ansible_marketplace: galaxy
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# defaults file for xray
|
# defaults file for xray
|
||||||
|
|
||||||
# The version of xray to install
|
# The version of xray to install
|
||||||
xray_version: 3.47.3
|
xray_version: 3.48.2
|
||||||
|
|
||||||
# whether to enable HA
|
# whether to enable HA
|
||||||
xray_ha_enabled: false
|
xray_ha_enabled: false
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# platform collection version
|
# 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)
|
# indicates were this collection was downlaoded from (galaxy, automation_hub, standalone)
|
||||||
ansible_marketplace: galaxy
|
ansible_marketplace: galaxy
|
||||||
|
|||||||
Reference in New Issue
Block a user