mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 05:06:56 -06:00
artifactory
The artifactory role installs the Artifactory Pro software onto the host. Per the Vars below, it will configure a node as primary or secondary. This role uses secondary roles artifactory_nginx to install nginx.
1.1.1 contains breaking changes. To mitigate this, use the role before doing any upgrades, let it mitigate the path changes, and then run again with your upgrade.
Role Variables
- artifactory_version: The version of Artifactory to install. eg. "7.4.1"
- master_key: This is the Artifactory Master Key. See below to autogenerate this key.
- join_key: This is the Artifactory Join Key. See below to autogenerate this key.
- db_download_url: This is the download URL for the JDBC driver for your database. eg. "https://jdbc.postgresql.org/download/postgresql-42.2.12.jar"
- db_type: This is the database type. eg. "postgresql"
- db_driver: This is the JDBC driver class. eg. "org.postgresql.Driver"
- db_url: This is the JDBC database url. eg. "jdbc:postgresql://10.0.0.120:5432/artifactory"
- db_user: The database user to configure. eg. "artifactory"
- db_password: The database password to configure. "Art1fact0ry"
- server_name: This is the server name. eg. "artifactory.54.175.51.178.xip.io"
- artifactory_system_yaml: Your own system YAML file can be specified and used. If specified, this file will be used rather than constructing a file from the parameters above.
- binary_store_file: Your own binary store file can be used. If specified, the default cluster-file-system will not be used.
- artifactory_upgrade_only: Perform an software upgrade only. Default is false.
primary vars (vars used by the primary Artifactory server)
- artifactory_is_primary: For the primary node this must be set to true.
- artifactory_license1 - 5: These are the cluster licenses.
- artifactory_license_file: Your own license file can be used. If specified, a license file constructed from the licenses above will not be used.
secondary vars (vars used by the secondary Artifactory server)
- artifactory_is_primary: For the secondary node(s) this must be set to false.
Additional variables can be found in defaults/main.yml.
Example Playbook
---
- hosts: primary
roles:
- artifactory
Upgrades
The Artifactory role supports software upgrades. To use a role to perform a software upgrade only, use the artifactory_upgrade_only variable and specify the version. See the following example.
- hosts: artifactory
vars:
artifactory_version: "{{ lookup('env', 'artifactory_version_upgrade') }}"
artifactory_upgrade_only: true
roles:
- artifactory