mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 06:06:56 -06:00
Prepping changes for better install
This commit is contained in:
@@ -52,8 +52,30 @@
|
|||||||
until: downloadartifactory is succeeded
|
until: downloadartifactory is succeeded
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
||||||
- name: MV untar directory to artifactory home
|
- name: Create artifactory home folder
|
||||||
command: "mv {{ artifactory_untar_home }} {{ artifactory_home }}"
|
file:
|
||||||
|
state: directory
|
||||||
|
path: "{{ artifactory_home }}"
|
||||||
|
owner: "{{ artifactory_user }}"
|
||||||
|
group: "{{ artifactory_group }}"
|
||||||
|
become: yes
|
||||||
|
|
||||||
|
- name: Create Symlinks for var folder
|
||||||
|
file:
|
||||||
|
state: link
|
||||||
|
src: "{{ artifactory_untar_home }}/var"
|
||||||
|
dest: "{{ artifactory_home }}/var"
|
||||||
|
owner: "{{ artifactory_user }}"
|
||||||
|
group: "{{ artifactory_group }}"
|
||||||
|
become: yes
|
||||||
|
|
||||||
|
- name: Create Symlinks for app folder
|
||||||
|
file:
|
||||||
|
state: link
|
||||||
|
src: "{{ artifactory_untar_home }}/app"
|
||||||
|
dest: "{{ artifactory_home }}/app"
|
||||||
|
owner: "{{ artifactory_user }}"
|
||||||
|
group: "{{ artifactory_group }}"
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
- name: ensure artifactory_file_store_dir exists
|
- name: ensure artifactory_file_store_dir exists
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
- name: MV artifactory home to artifactory untar home
|
||||||
|
command: "mv {{ artifactory_home }} {{ temp_untar_home }}"
|
||||||
|
become: yes
|
||||||
|
- name: Ensure untar home permissions are correct
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
path: "{{ temp_untar_home }}"
|
||||||
|
owner: "{{ artifactory_user }}"
|
||||||
|
group: "{{ artifactory_group }}"
|
||||||
|
become: yes
|
||||||
|
- name: Create artifactory home folder
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
path: "{{ artifactory_home }}"
|
||||||
|
owner: "{{ artifactory_user }}"
|
||||||
|
group: "{{ artifactory_group }}"
|
||||||
|
become: yes
|
||||||
|
- name: Create Symlinks for var folder
|
||||||
|
file:
|
||||||
|
state: link
|
||||||
|
src: "{{ temp_untar_home }}/var"
|
||||||
|
dest: "{{ artifactory_home }}/var"
|
||||||
|
owner: "{{ artifactory_user }}"
|
||||||
|
group: "{{ artifactory_group }}"
|
||||||
|
become: yes
|
||||||
|
- name: Create Symlinks for app folder
|
||||||
|
file:
|
||||||
|
state: link
|
||||||
|
src: "{{ temp_untar_home }}/app"
|
||||||
|
dest: "{{ artifactory_home }}/app"
|
||||||
|
owner: "{{ artifactory_user }}"
|
||||||
|
group: "{{ artifactory_group }}"
|
||||||
|
become: yes
|
||||||
@@ -1,6 +1,35 @@
|
|||||||
- name: perform installation
|
- name: Rectify Legacy Installation Block
|
||||||
include_tasks: "install.yml"
|
block:
|
||||||
when: not artifactory_upgrade_only
|
- name: Check symlink method
|
||||||
- name: perform upgrade
|
stat:
|
||||||
include_tasks: "upgrade.yml"
|
path: /opt/jfrog/artifactory/app
|
||||||
when: artifactory_upgrade_only
|
register: newMethod
|
||||||
|
- name: Check artifactory version
|
||||||
|
uri:
|
||||||
|
url: "{{ web_method }}://{{ artifactory_server_url }}:{{ url_port }}/artifactory/api/system/version"
|
||||||
|
url_username: "{{ artifactory_app_username }}"
|
||||||
|
url_password: "{{ artifactory_app_user_pass }}"
|
||||||
|
register: artifactory_installed_version
|
||||||
|
- name: Debug defunct installation
|
||||||
|
debug:
|
||||||
|
var: artifactory_installed_version
|
||||||
|
- name: Setup temporary untar home
|
||||||
|
set_fact:
|
||||||
|
temp_untar_home: "{{ jfrog_home_directory }}/artifactory-{{ artifactory_flavour }}-{{ artifactory_installed_version }}"
|
||||||
|
- name: Rectify legacy installation
|
||||||
|
include_tasks: "legacy_migration.yml"
|
||||||
|
when: (not newMethod.stat.islnk) and newMethod.stat.exists
|
||||||
|
rescue:
|
||||||
|
- name: Setup temporary untar home (assuming version is set var for version)
|
||||||
|
set_fact:
|
||||||
|
temp_untar_home: "{{ jfrog_home_directory }}/artifactory-{{ artifactory_flavour }}-{{ artifactory_version }}"
|
||||||
|
- name: Rectify legacy installation
|
||||||
|
include_tasks: "legacy_migration.yml"
|
||||||
|
when: (not newMethod.stat.islnk) and newMethod.stat.exists
|
||||||
|
always:
|
||||||
|
- name: perform installation
|
||||||
|
include_tasks: "install.yml"
|
||||||
|
when: not artifactory_upgrade_only
|
||||||
|
- name: perform upgrade
|
||||||
|
include_tasks: "upgrade.yml"
|
||||||
|
when: artifactory_upgrade_only
|
||||||
0
Openshift4/helm/openshift-xray/LICENSE
Executable file → Normal file
0
Openshift4/helm/openshift-xray/LICENSE
Executable file → Normal file
0
Openshift4/operator/xray-operator/helm-charts/openshift-xray/README.md
Executable file → Normal file
0
Openshift4/operator/xray-operator/helm-charts/openshift-xray/README.md
Executable file → Normal file
Reference in New Issue
Block a user