mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 04:06:55 -06:00
[Ansible] JFrog Platform 7.24.3 (#153)
This commit is contained in:
committed by
GitHub
parent
16ce388773
commit
55a3842fac
@@ -1,8 +1,7 @@
|
||||
---
|
||||
# defaults file for artifactory
|
||||
|
||||
# The version of artifactory to install
|
||||
artifactory_version: 7.23.3
|
||||
artifactory_version: 7.24.3
|
||||
|
||||
# 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
|
||||
@@ -28,10 +27,10 @@ artifactory_ha_enabled: false
|
||||
# By default, all nodes are primary (CNHA) - https://www.jfrog.com/confluence/display/JFROG/High+Availability#HighAvailability-Cloud-NativeHighAvailability
|
||||
artifactory_taskAffinity: any
|
||||
|
||||
# The location where Artifactory should install.
|
||||
# The location where Artifactory should install
|
||||
jfrog_home_directory: /opt/jfrog
|
||||
|
||||
# Pick the Artifactory flavour to install, can be also cpp-ce, jcr, pro.
|
||||
# Pick the Artifactory flavour to install, can be also cpp-ce/jcr/pro
|
||||
artifactory_flavour: pro
|
||||
|
||||
artifactory_extra_java_opts: -server -Xms512m -Xmx2g -Xss256k -XX:+UseG1GC
|
||||
@@ -62,7 +61,7 @@ artifactory_upgrade_only: false
|
||||
artifactory_admin_username: admin
|
||||
artifactory_admin_password: password
|
||||
|
||||
artifactory_service_file : /lib/systemd/system/artifactory.service
|
||||
artifactory_service_file: /lib/systemd/system/artifactory.service
|
||||
|
||||
# Provide binarystore XML content below with 2-space indentation
|
||||
artifactory_binarystore: |-
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
- name: Install prerequisite packages
|
||||
become: yes
|
||||
apt:
|
||||
name: ["net-tools", "locales"]
|
||||
state: present
|
||||
update_cache: yes
|
||||
cache_valid_time: 3600
|
||||
|
||||
- name: Ensure UTF-8 locale exists
|
||||
become: yes
|
||||
locale_gen:
|
||||
name: en_US.UTF-8
|
||||
state: present
|
||||
@@ -0,0 +1,5 @@
|
||||
- name: Install prerequisite packages
|
||||
become: yes
|
||||
yum:
|
||||
name: net-tools
|
||||
state: present
|
||||
@@ -1,18 +1,20 @@
|
||||
---
|
||||
- debug:
|
||||
msg: "Performing installation of Artifactory version : {{ artifactory_version }} "
|
||||
|
||||
- name: install nginx
|
||||
- name: Install prerequisite packages
|
||||
include_tasks: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Install nginx
|
||||
include_role:
|
||||
name: artifactory_nginx
|
||||
when:
|
||||
when:
|
||||
- artifactory_nginx_enabled | bool
|
||||
- not artifactory_nginx_ssl_enabled | bool
|
||||
|
||||
- name: install nginx with SSL
|
||||
- name: Install nginx with SSL
|
||||
include_role:
|
||||
name: artifactory_nginx_ssl
|
||||
when:
|
||||
when:
|
||||
- not artifactory_nginx_enabled | bool
|
||||
- artifactory_nginx_ssl_enabled | bool
|
||||
|
||||
@@ -20,13 +22,11 @@
|
||||
become: yes
|
||||
group:
|
||||
name: "{{ artifactory_group }}"
|
||||
gid: "{{ artifactory_gid }}"
|
||||
state: present
|
||||
|
||||
- name: Ensure user artifactory exist
|
||||
become: yes
|
||||
user:
|
||||
uid: "{{ artifactory_uid }}"
|
||||
name: "{{ artifactory_user }}"
|
||||
group: "{{ artifactory_group }}"
|
||||
create_home: yes
|
||||
@@ -98,8 +98,8 @@
|
||||
template:
|
||||
src: "{{ artifactory_system_yaml_template }}"
|
||||
dest: "{{ artifactory_home }}/var/etc/system.yaml"
|
||||
when:
|
||||
- artifactory_systemyaml is defined
|
||||
when:
|
||||
- artifactory_systemyaml is defined
|
||||
- artifactory_systemyaml|length > 0
|
||||
- artifactory_systemyaml_override or (not systemyaml.stat.exists)
|
||||
notify: restart artifactory
|
||||
@@ -125,9 +125,9 @@
|
||||
template:
|
||||
src: binarystore.xml.j2
|
||||
dest: "{{ artifactory_home }}/var/etc/artifactory/binarystore.xml"
|
||||
when:
|
||||
- artifactory_binarystore is defined
|
||||
- artifactory_binarystore|length > 0
|
||||
when:
|
||||
- artifactory_binarystore is defined
|
||||
- artifactory_binarystore | length > 0
|
||||
notify: restart artifactory
|
||||
|
||||
- name: Configure single license
|
||||
@@ -135,8 +135,8 @@
|
||||
template:
|
||||
src: artifactory.lic.j2
|
||||
dest: "{{ artifactory_home }}/var/etc/artifactory/artifactory.lic"
|
||||
when:
|
||||
- artifactory_single_license is defined
|
||||
when:
|
||||
- artifactory_single_license is defined
|
||||
- artifactory_single_license|length > 0
|
||||
notify: restart artifactory
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
src: artifactory.cluster.license.j2
|
||||
dest: "{{ artifactory_home }}/var/etc/artifactory/artifactory.cluster.license"
|
||||
when:
|
||||
- artifactory_licenses is defined
|
||||
- artifactory_licenses is defined
|
||||
- artifactory_licenses|length > 0
|
||||
notify: restart artifactory
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
dest: "{{ artifactory_home }}/var/bootstrap/artifactory/tomcat/lib"
|
||||
owner: "{{ artifactory_user }}"
|
||||
group: "{{ artifactory_group }}"
|
||||
when:
|
||||
when:
|
||||
- postgres_driver_download_url is defined
|
||||
- not database_driver.stat.exists
|
||||
notify: restart artifactory
|
||||
@@ -185,10 +185,13 @@
|
||||
- name: Restart artifactory
|
||||
meta: flush_handlers
|
||||
|
||||
- name : Wait for artifactory to be fully deployed
|
||||
uri: url=http://127.0.0.1:8082/router/api/v1/system/health timeout=130
|
||||
- name: Make sure artifactory is up and running
|
||||
uri:
|
||||
url: http://127.0.0.1:8082/router/api/v1/system/health
|
||||
timeout: 130
|
||||
status_code: 200
|
||||
register: result
|
||||
until: result.status == 200
|
||||
until: result is succeeded
|
||||
retries: 25
|
||||
delay: 5
|
||||
when: not ansible_check_mode
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
- name: perform installation
|
||||
- name: Perform installation
|
||||
include_tasks: "install.yml"
|
||||
when:
|
||||
- artifactory_enabled
|
||||
- not artifactory_upgrade_only
|
||||
- name: perform upgrade
|
||||
|
||||
- name: Perform upgrade
|
||||
include_tasks: "upgrade.yml"
|
||||
when:
|
||||
- artifactory_enabled
|
||||
- artifactory_upgrade_only
|
||||
- artifactory_upgrade_only
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
---
|
||||
- debug:
|
||||
msg: "Performing upgrade of Artifactory version to : {{ artifactory_version }} "
|
||||
|
||||
@@ -60,8 +59,8 @@
|
||||
template:
|
||||
src: artifactory.lic.j2
|
||||
dest: "{{ artifactory_home }}/var/etc/artifactory/artifactory.lic"
|
||||
when:
|
||||
- artifactory_single_license is defined
|
||||
when:
|
||||
- artifactory_single_license is defined
|
||||
- artifactory_single_license|length > 0
|
||||
notify: restart artifactory
|
||||
|
||||
@@ -71,8 +70,8 @@
|
||||
src: artifactory.cluster.license.j2
|
||||
dest: "{{ artifactory_home }}/var/etc/artifactory/artifactory.cluster.license"
|
||||
when:
|
||||
- artifactory_licenses is defined
|
||||
- artifactory_licenses|length > 0
|
||||
- artifactory_licenses is defined
|
||||
- artifactory_licenses | length > 0
|
||||
notify: restart artifactory
|
||||
|
||||
- name: Check if database driver exists
|
||||
@@ -88,7 +87,7 @@
|
||||
dest: "{{ artifactory_home }}/var/bootstrap/artifactory/tomcat/lib"
|
||||
owner: "{{ artifactory_user }}"
|
||||
group: "{{ artifactory_group }}"
|
||||
when:
|
||||
when:
|
||||
- postgres_driver_download_url is defined
|
||||
- not database_driver.stat.exists
|
||||
notify: restart artifactory
|
||||
@@ -105,8 +104,8 @@
|
||||
template:
|
||||
src: binarystore.xml.j2
|
||||
dest: "{{ artifactory_home }}/var/etc/artifactory/binarystore.xml"
|
||||
when:
|
||||
- artifactory_binarystore is defined
|
||||
when:
|
||||
- artifactory_binarystore is defined
|
||||
- artifactory_binarystore|length > 0
|
||||
notify: restart artifactory
|
||||
|
||||
@@ -121,10 +120,10 @@
|
||||
template:
|
||||
src: "{{ artifactory_system_yaml_template }}"
|
||||
dest: "{{ artifactory_home }}/var/etc/system.yaml"
|
||||
when:
|
||||
- artifactory_systemyaml is defined
|
||||
when:
|
||||
- artifactory_systemyaml is defined
|
||||
- artifactory_systemyaml|length > 0
|
||||
- artifactory_systemyaml_override or (not systemyaml.stat.exists)
|
||||
- artifactory_systemyaml_override or (not systemyaml.stat.exists)
|
||||
notify: restart artifactory
|
||||
|
||||
- name: Ensure permissions are correct
|
||||
@@ -138,10 +137,13 @@
|
||||
- name: Restart artifactory
|
||||
meta: flush_handlers
|
||||
|
||||
- name : Wait for artifactory to be fully deployed
|
||||
uri: url=http://127.0.0.1:8082/router/api/v1/system/health timeout=130
|
||||
- name: Make sure artifactory is up and running
|
||||
uri:
|
||||
url: http://127.0.0.1:8082/router/api/v1/system/health
|
||||
timeout: 130
|
||||
status_code: 200
|
||||
register: result
|
||||
until: result.status == 200
|
||||
until: result is succeeded
|
||||
retries: 25
|
||||
delay: 5
|
||||
when: not ansible_check_mode
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
---
|
||||
# platform collection version
|
||||
platform_collection_version: 7.23.3
|
||||
platform_collection_version: 7.24.3
|
||||
|
||||
# indicates where this collection was downloaded from (galaxy, automation_hub, standalone)
|
||||
ansible_marketplace: galaxy
|
||||
ansible_marketplace: galaxy
|
||||
|
||||
Reference in New Issue
Block a user