mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 02:06:56 -06:00
Add in support for offline install, and other methods of acquiring nginx
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
ansible_marketplace: standalone
|
ansible_marketplace: standalone
|
||||||
|
|
||||||
# The version of Artifactory to install
|
# The version of Artifactory to install
|
||||||
artifactory_version: 7.6.1
|
artifactory_version: 7.7.3
|
||||||
|
|
||||||
# licenses file - specify a licenses file or specify up to 5 licenses
|
# licenses file - specify a licenses file or specify up to 5 licenses
|
||||||
artifactory_license1:
|
artifactory_license1:
|
||||||
@@ -29,7 +29,7 @@ artifactory_file_store_dir: /data
|
|||||||
artifactory_flavour: pro
|
artifactory_flavour: pro
|
||||||
|
|
||||||
extra_java_opts: -server -Xms2g -Xmx14g -Xss256k -XX:+UseG1GC
|
extra_java_opts: -server -Xms2g -Xmx14g -Xss256k -XX:+UseG1GC
|
||||||
|
artifactory_system_yaml: system.yaml.j2
|
||||||
artifactory_tar: https://dl.bintray.com/jfrog/artifactory-pro/org/artifactory/pro/jfrog-artifactory-pro/{{ artifactory_version }}/jfrog-artifactory-pro-{{ artifactory_version }}-linux.tar.gz
|
artifactory_tar: https://dl.bintray.com/jfrog/artifactory-pro/org/artifactory/pro/jfrog-artifactory-pro/{{ artifactory_version }}/jfrog-artifactory-pro-{{ artifactory_version }}-linux.tar.gz
|
||||||
artifactory_home: "{{ jfrog_home_directory }}/artifactory"
|
artifactory_home: "{{ jfrog_home_directory }}/artifactory"
|
||||||
artifactory_untar_home: "{{ jfrog_home_directory }}/artifactory-{{ artifactory_flavour }}-{{ artifactory_version }}"
|
artifactory_untar_home: "{{ jfrog_home_directory }}/artifactory-{{ artifactory_flavour }}-{{ artifactory_version }}"
|
||||||
|
|||||||
@@ -25,6 +25,19 @@
|
|||||||
state: directory
|
state: directory
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
|
- name: Local Copy artifactory
|
||||||
|
unarchive:
|
||||||
|
src: "{{ local_artifactory_tar }}"
|
||||||
|
dest: "{{ jfrog_home_directory }}"
|
||||||
|
owner: "{{ artifactory_user }}"
|
||||||
|
group: "{{ artifactory_group }}"
|
||||||
|
creates: "{{ artifactory_untar_home }}"
|
||||||
|
become: yes
|
||||||
|
when: local_artifactory_tar is defined
|
||||||
|
register: downloadartifactory
|
||||||
|
until: downloadartifactory is succeeded
|
||||||
|
retries: 3
|
||||||
|
|
||||||
- name: download artifactory
|
- name: download artifactory
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "{{ artifactory_tar }}"
|
src: "{{ artifactory_tar }}"
|
||||||
@@ -34,6 +47,7 @@
|
|||||||
group: "{{ artifactory_group }}"
|
group: "{{ artifactory_group }}"
|
||||||
creates: "{{ artifactory_untar_home }}"
|
creates: "{{ artifactory_untar_home }}"
|
||||||
become: yes
|
become: yes
|
||||||
|
when: artifactory_tar is defined
|
||||||
register: downloadartifactory
|
register: downloadartifactory
|
||||||
until: downloadartifactory is succeeded
|
until: downloadartifactory is succeeded
|
||||||
retries: 3
|
retries: 3
|
||||||
@@ -67,7 +81,7 @@
|
|||||||
|
|
||||||
- name: configure system yaml
|
- name: configure system yaml
|
||||||
template:
|
template:
|
||||||
src: system.yaml.j2
|
src: "{{ artifactory_system_yaml }}"
|
||||||
dest: "{{ artifactory_home }}/var/etc/system.yaml"
|
dest: "{{ artifactory_home }}/var/etc/system.yaml"
|
||||||
become: yes
|
become: yes
|
||||||
when: system_file is not defined
|
when: system_file is not defined
|
||||||
@@ -134,18 +148,36 @@
|
|||||||
become: yes
|
become: yes
|
||||||
when: artifactory_license_file is not defined and artifactory_is_primary == true
|
when: artifactory_license_file is not defined and artifactory_is_primary == true
|
||||||
|
|
||||||
|
- name: Copy local database driver
|
||||||
|
copy:
|
||||||
|
src: "{{ db_local_location }}"
|
||||||
|
dest: "{{ artifactory_home }}/var/bootstrap/artifactory/tomcat/lib"
|
||||||
|
owner: "{{ artifactory_user }}"
|
||||||
|
group: "{{ artifactory_group }}"
|
||||||
|
when: db_local_location is defined
|
||||||
|
become: yes
|
||||||
|
|
||||||
- name: download database driver
|
- name: download database driver
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ db_download_url }}"
|
url: "{{ db_download_url }}"
|
||||||
dest: "{{ artifactory_home }}/var/bootstrap/artifactory/tomcat/lib"
|
dest: "{{ artifactory_home }}/var/bootstrap/artifactory/tomcat/lib"
|
||||||
owner: "{{ artifactory_user }}"
|
owner: "{{ artifactory_user }}"
|
||||||
group: "{{ artifactory_group }}"
|
group: "{{ artifactory_group }}"
|
||||||
|
when: db_download_url is defined
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
- name: create artifactory service
|
- name: create artifactory service
|
||||||
shell: "{{ artifactory_home }}/app/bin/installService.sh"
|
shell: "{{ artifactory_home }}/app/bin/installService.sh"
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
|
- name: Ensure permissions are correct
|
||||||
|
file:
|
||||||
|
path: "{{ artifactory_home }}"
|
||||||
|
group: "{{ artifactory_group }}"
|
||||||
|
owner: "{{ artifactory_user }}"
|
||||||
|
recurse: yes
|
||||||
|
become: yes
|
||||||
|
|
||||||
- name: start and enable the primary node
|
- name: start and enable the primary node
|
||||||
service:
|
service:
|
||||||
name: artifactory
|
name: artifactory
|
||||||
|
|||||||
Reference in New Issue
Block a user