Skip to content

Commit

Permalink
[ansible] JFrog Platform 11.0.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDuhan committed Feb 14, 2025
1 parent 17b8ea6 commit 9c3305a
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 52 deletions.
4 changes: 4 additions & 0 deletions Ansible/ansible_collections/jfrog/platform/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# JFrog Platform Ansible Collection Changelog
All changes to this collection will be documented in this file.

## [11.0.1] - Feb 12, 2025
* Fixed an issue with running install.sh for Xray and Distribution. [GH-424](https://github.com/jfrog/JFrog-Cloud-Installers/issues/424)
* Product Updates/fixes

## [11.0.0] - Jan 30, 2025
* Insight role has been removed. Use the 10.x version of the platform collection for installation and upgrades.
* Artifactory - Added ability to generate bootstrap admin token for artifactory [GH-432](https://github.com/jfrog/JFrog-Cloud-Installers/pull/432)
Expand Down
2 changes: 1 addition & 1 deletion Ansible/ansible_collections/jfrog/platform/galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace: "jfrog"
name: "platform"

# The version of the collection. Must be compatible with semantic versioning
version: "11.0.0"
version: "11.0.1"

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: "README.md"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Defaults file for artifactory

# The version of artifactory to install
artifactory_version: 7.104.5
artifactory_version: 7.104.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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# platform collection version
platform_collection_version: 11.0.0
platform_collection_version: 11.0.1

# indicates where this collection was downloaded from (galaxy, automation_hub, standalone)
ansible_marketplace: galaxy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# defaults file for distribution

# The version of distribution to install
distribution_version: 2.28.1
distribution_version: 2.28.2

# whether to enable HA
distribution_ha_enabled: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
expect {
{% for each_request in exp_scenarios %}
-nocase -re {{ '{' }}{{ each_request.expecting }}.*} {
send "{{ each_request.sending }}\n"
send "{{ each_request.sending | replace('"', '') | trim }}\n"
}
{% endfor %}
eof {
set CYCLE_END 1
}
}
set count "[expr $count + 1]"
if { $count > 16} {
if { $count > 16 } {
exit 128
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
apply:
environment:
YQ_PATH: "{{ distribution_thirdparty_path }}/yq"
register: distribution_install_flag
when: install_wrapper_script.stat.exists

- name: Configure redis config
Expand All @@ -143,7 +144,7 @@
when:
- distribution_systemyaml is defined
- distribution_systemyaml | length > 0
- distribution_systemyaml_override or (not systemyaml.stat.exists)
- distribution_systemyaml_override or (not systemyaml.stat.exists) or (distribution_install_flag is succeeded )
notify: Restart distribution

- name: Configure installer info
Expand Down Expand Up @@ -181,6 +182,6 @@
status_code: 200
register: result
until: result is succeeded
retries: 25
delay: 5
retries: 40
delay: 10
when: not ansible_check_mode
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# platform collection version
platform_collection_version: 11.0.0
platform_collection_version: 11.0.1

# indicates were this collection was downlaoded from (galaxy, automation_hub, standalone)
ansible_marketplace: galaxy
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ distribution_installer_scenario:
"sending": "{{ join_key }}"
}
- {
"expecting": "jfrog url:",
"expecting": "jfrog url( \\[.+)?:(?!.*Skipping prompt)",
"sending": "{{ jfrog_url }}"
}
- {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Defaults file for xray

# The version of xray to install
xray_version: 3.111.9
xray_version: 3.111.13

# Whether to enable HA
xray_ha_enabled: false
Expand All @@ -24,7 +24,7 @@ xray_home: "{{ jfrog_home_directory }}/xray"

xray_install_script_path: "{{ xray_home }}/app/bin"
xray_thirdparty_path: "{{ xray_home }}/app/third-party"
xray_archive_service_cmd: "{{ xray_install_script_path }}/install.sh"
xray_archive_service_cmd: "{{ xray_install_script_path }}/installService.sh"
xray_service_file: /lib/systemd/system/xray.service

# Xray users and groups
Expand Down Expand Up @@ -102,7 +102,7 @@ xray_systemyaml: |-
value: "{{ xray_rabbitmq_default_cookie }}"
url: "{{ xray_rabbitmq_url }}"
username: "{{ xray_rabbitmq_user }}"
password: "{{xray_rabbitmq_password }}"
password: "{{ xray_rabbitmq_password }}"
security:
joinKey: {{ join_key }}
router:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
# handlers file for xray
- name: Restart xray
become: true
become_user: xray
ansible.builtin.command: "{{ xray_home }}/app/bin/xray.sh restart"
ansible.builtin.systemd:
name: "{{ xray_daemon }}"
state: restarted
when:
- xray_start_service | bool

- name: Stop xray
become: true
become_user: xray
ansible.builtin.command: "{{ xray_home }}/app/bin/xray.sh stop"
ansible.builtin.systemd:
name: "{{ xray_daemon }}"
state: stopped
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
while { $CYCLE_END == 0 } {
expect {
{% for each_request in exp_scenarios %}
-nocase -re {{ '{' }}{{ each_request.expecting }}.*{{ '}' }} {
send "{{ each_request.sending }}\n"
-nocase -re {{ '{' }}{{ each_request.expecting }}.*} {
send "{{ each_request.sending | replace('"', '') | trim }}\n"
}
{% endfor %}
eof {
set CYCLE_END 1
}
}
set count "[expr $count + 1]"
if { $count > 16 } {
if { $count > 16} {
exit 128
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
apply:
environment:
YQ_PATH: "{{ xray_thirdparty_path }}/yq"
register: xray_install_flag
when: install_wrapper_script.stat.exists

- name: Configure rabbitmq config
Expand Down Expand Up @@ -158,7 +159,7 @@
when:
- xray_systemyaml is defined
- xray_systemyaml | length > 0
- xray_systemyaml_override or (not systemyaml.stat.exists)
- xray_systemyaml_override or (not systemyaml.stat.exists) or (xray_install_flag is succeeded )
notify: Restart xray

- name: Ensure permissions are correct
Expand All @@ -170,33 +171,16 @@
group: "{{ xray_group }}"
recurse: true

- name: Include interactive installer scripts
ansible.builtin.include_vars: script/archive.yml

- name: Install xray
ansible.builtin.include_tasks: expect.yml
vars:
exp_executable_cmd: "./install.sh -u {{ xray_user }} -g {{ xray_group }}"
exp_dir: "{{ xray_install_script_path }}"
exp_scenarios: "{{ xray_installer_scenario['main'] }}"
args:
apply:
environment:
YQ_PATH: "{{ xray_thirdparty_path }}/yq"
when: install_wrapper_script.stat.exists

- name: Ensure /opt/jfrog/xray directory has correct ownership
- name: Install xray as a service
become: true
ansible.builtin.file:
path: "{{ xray_home }}"
owner: xray
group: xray
recurse: yes
ansible.builtin.command: "{{ xray_archive_service_cmd }}"
args:
chdir: "{{ xray_install_script_path }}"
creates: "{{ xray_service_file }}"
register: check_service_status_result

- name: Restart Xray
become: true
become_user: xray
ansible.builtin.command: "{{ xray_home }}/app/bin/xray.sh start"
- name: Restart xray
ansible.builtin.meta: flush_handlers
when:
- xray_start_service | bool

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
apply:
environment:
YQ_PATH: "{{ xray_thirdparty_path }}/yq"
register: xray_install_flag
when:
- install_wrapper_script.stat.exists
- download_xray.changed
Expand Down Expand Up @@ -101,7 +102,7 @@
when:
- xray_systemyaml is defined
- xray_systemyaml | length > 0
- xray_systemyaml_override or (not systemyaml.stat.exists)
- xray_systemyaml_override or (not systemyaml.stat.exists) or (xray_install_flag is succeeded )
notify: Restart xray

- name: Configure installer info
Expand Down Expand Up @@ -136,9 +137,7 @@
when: xray_allow_crontab

- name: Restart xray
become: true
become_user: xray
ansible.builtin.command: "{{ xray_home }}/app/bin/xray.sh restart"
ansible.builtin.meta: flush_handlers
when:
- xray_start_service | bool

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# platform collection version
platform_collection_version: 11.0.0
platform_collection_version: 11.0.1

# indicates were this collection was downlaoded from (galaxy, automation_hub, standalone)
ansible_marketplace: galaxy
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ xray_installer_scenario:
"expecting": "please specify the ip address of this machine(?!.*Skipping prompt)",
"sending": "{{ ansible_host }}"
}
- {
"expecting": "do you want to continue",
"sending": "y"
}
- {
"expecting": "are you adding an additional node",
"sending": "{% if xray_ha_node_type is defined and xray_ha_node_type == 'master' %}n{% else %}y{% endif %}"
Expand Down

0 comments on commit 9c3305a

Please # to comment.