Giter VIP home page Giter VIP logo

ansible-role-artifactory's Introduction

jpnewman.artifactory

Ansible Role Build Status

This is an Ansible role to install artifactory or Jfrog Container Registry (based on artifactory).

Requirements

Ansible 2.x

Role Variables

Variable Description Default
defaults jpnewman.artifactory
artifactory_type oss pro / oss
artifactory_home /var/opt/jfrog/artifactory
artifactory_default_file /etc/opt/jfrog/artifactory/default
artifactory_license_file
artifactory_license_path "/etc/opt/jfrog/artifactory/artifactory.lic"
artifactory_service_name artifactory
Derby Database / Derby Tools
artifactory_derby_tools_install False
artifactory_derby_tools_version 10.12.1.1
artifactory_derby_tools_url "http://apache.mirror.anlx.net//db/derby/db-derby-{{ artifactory_derby_tools_version }}/db-derby-{{ artifactory_derby_tools_version }}-bin.zip"
MySQL
artifactory_database artifactory_database_object_derby / artifactory_database_object
JDBC Connector-J
artifactory_database_file_title mysql-connector-java-5.1.40
artifactory_database_jdbc_url "http://dev.mysql.com/get/Downloads/Connector-J/{{ artifactory_database_file_title }}.tar.gz"
geerlingguy.mysql
mysql_innodb_file_per_table "1"
mysql_innodb_buffer_pool_size 1536M
mysql_tmp_table_size 512M
mysql_max_heap_table_size 512M
mysql_innodb_log_file_size 256M
mysql_innodb_log_buffer_size 4M
Reverse Proxy
artifactory_proxy apache / nginx
JMX
artifactory_jmx_enable true
artifactory_jmx_java_options 'export JAVA_OPTIONS="$JAVA_OPTIONS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.rmi.port=9011 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname={{ ansible_hostname }}"'
artifactory_jmx_jmxterm_install true
artifactory_jmx_jmxterm_url https://downloads.sourceforge.net/project/cyclops-group/jmxterm/1.0.0/jmxterm-1.0.0-uber.jar

artifactory_database_object_derby

Variable Description Default
type Derby / MySQL / PostgreSQL Derby
url jdbc:derby:{db.home};create=true
driver org.apache.derby.jdbc.EmbeddedDriver

artifactory_database_object_mysql

Variable Description Default
type mysql
driver com.mysql.jdbc.Driver
url 'jdbc:mysql://localhost:3306/artdb?characterEncoding=UTF-8&elideSetAutoCommits=true'
username artifactory
password password
database artdb

NOTES

Review TODO.md for information on outstanding items, like nginx reverse proxy support.

Tuning MySQL

Create a variable file named geerlingguy.mysql.yml with the following content and place it in either host_vars or group_vars folder.

---

mysql_innodb_file_per_table: "1"

mysql_innodb_buffer_pool_size: 1536M
mysql_tmp_table_size: 512M
mysql_max_heap_table_size: 512M

mysql_innodb_log_file_size: 256M
mysql_innodb_log_buffer_size: 4M

JMX Connection

Connection String

service:jmx:rmi://<pub-ip>:<rmi-port>/jndi/rmi://<pub-ip>:<registry-port>/jmxrmi

JConsole

JConsole service:jmx:rmi://artifactory-server:9011/jndi/rmi://artifactory-server:9010/jmxrmi

JMXTerms

java -jar jmxterm.jar -l "service:jmx:rmi://artifactory-server:9011/jndi/rmi://artifactory-server:9010/jmxrmi"

License

MIT / BSD

Author Information

John Paul Newman

ansible-role-artifactory's People

Contributors

cedriclevasseur avatar jpnewman avatar jpnewman-wonga avatar mdiers avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.