Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
/ puppet-artifactory Public archive

Artifactory OSS installation and basic management

Notifications You must be signed in to change notification settings

aursu/puppet-artifactory

Repository files navigation

Notes
- "artifactory::java_manage" flag set to "true" enables class "java" declaration
  as we need to override attributes "package" and "java_home"
  https://puppet.com/docs/puppet/5.3/lang_classes.html#resource-like-behavior


Recommended minimal JVM parameters

The larger your repository or number of concurrent users, the larger you need to
make the -Xms and -Xmx values accordingly. Recommended minimal values are:

    -server -Xms512m -Xmx2g -Xss256k -XX:+UseG1GC

For more recommendations about your hardware configuration (especially the -Xmx
parameter), please refer to Recommended Hardware:

https://www.jfrog.com/confluence/display/RTF/System+Requirements#SystemRequirements-RecommendedHardware


Where you set your JVM parameters depends on how you are running Artifactory:

For a manual installation, modify
    JAVA_OPTIONS in $ARTIFACTORY_HOME/bin/artifactory.default.

For a service installation, modify
    JAVA_OPTIONS  in $ARTIFACTORY_HOME/etc/default

(you will need to stop and then restart the service after making the
modification)

For an RPM or Debian installation, modify
    JAVA_OPTIONS in /etc/opt/jfrog/artifactory/default


Managed Files and Folders

Artifactory home            /var/opt/jfrog/artifactory          artifactory
Artifactory etc             /etc/opt/jfrog/artifactory          artifactory
Artifactory logs            /var/opt/jfrog/artifactory/logs     artifactory
Artifactory env variables   /etc/opt/jfrog/artifactory/default  artifactory 
Tomcat home                 /opt/jfrog/artifactory/tomcat	    artifactory  (root for sub dirs)
Artifactory startup script  /etc/init.d/artifactory             root
Artifactory binary          /opt/jfrog/artifactory              root


Installing Artifactory OSS from an RPM disribution

```
wget https://bintray.com/jfrog/artifactory-rpms/rpm -O bintray-jfrog-artifactory-rpms.repo
sudo mv bintray-jfrog-artifactory-rpms.repo /etc/yum.repos.d/
sudo yum install jfrog-artifactory-oss
```


Resource limit directives, their equivalent ulimit shell commands and the unit used

Directive	        ulimit equivalent   Unit
LimitCPU=           ulimit -t           Seconds
LimitFSIZE=         ulimit -f           Bytes
LimitDATA=          ulimit -d           Bytes
LimitSTACK=         ulimit -s           Bytes
LimitCORE=          ulimit -c           Bytes
LimitRSS=           ulimit -m           Bytes
LimitNOFILE=        ulimit -n           Number of File Descriptors
LimitAS=            ulimit -v           Bytes
LimitNPROC=         ulimit -u           Number of Processes
LimitMEMLOCK=       ulimit -l           Bytes
LimitLOCKS=	        ulimit -x           Number of Locks
LimitSIGPENDING=    ulimit -i           Number of Queued Signals
LimitMSGQUEUE=      ulimit -q           Bytes
LimitNICE=          ulimit -e           Nice Level
LimitRTPRIO=        ulimit -r           Realtime Priority
LimitRTTIME=        No equivalent       Microseconds

Oracle Java download via curl (reflects puppetlabs/java and puppet/archive)

curl -fsSL 'http://download.oracle.com/otn-pub/java/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jre-8u161-linux-x64.rpm' -b 'gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie' -D- -o/tmp/jdk-8u162-linux-x64.rpm_20180130-11842-1iicswq

About

Artifactory OSS installation and basic management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published