configs
diff --git a/artifactory/files/storage.properties b/artifactory/files/storage.properties
index 01142ab..751084f 100644
--- a/artifactory/files/storage.properties
+++ b/artifactory/files/storage.properties
@@ -48,7 +48,7 @@
## fullDb - binaries are stored as blobs in the db, filesystem is used for caching
## cachedFS - binaries are stored in the filesystem, but a front cache (with faster access) is added
## IMPORTANT NOTE: This property should not be change after the initial setup. To change binaries storage you have to export and import
-#binary.provider.type=filesystem
+binary.provider.type=filesystem
## Determines the maximum filesystem cache size in bytes when using binary provider type fullDb or cachedFS. Default is 5GB
## Supported units are TB (terabytes), GB (gigabytes), MB (megabytes) and KB (kilobytes)
diff --git a/artifactory/map.jinja b/artifactory/map.jinja
index 4fa4f92..cbe71cb 100644
--- a/artifactory/map.jinja
+++ b/artifactory/map.jinja
@@ -20,4 +20,4 @@
engine: derby
{%- endload %}
-{%- set server = salt['grains.filter_by'](base_defaults, merge=salt['pillar.get']('artifactory:server')) %}
\ No newline at end of file
+{%- set server = salt['grains.filter_by'](base_defaults, merge=salt['pillar.get']('artifactory:server')) %}
diff --git a/artifactory/server.sls b/artifactory/server.sls
index 852efa8..c31bf36 100644
--- a/artifactory/server.sls
+++ b/artifactory/server.sls
@@ -15,6 +15,19 @@
- watch_in:
- service: artifactory_service
+{%- if server.license is defined %}
+
+artifactory_license_config:
+ file.managed:
+ - name: /etc/opt/jfrog/artifactory/artifactory.lic
+ - contents_pillar: artifactory:server:license
+ - require:
+ - pkg: artifactory_packages
+ - watch_in:
+ - service: artifactory_service
+
+{%- endif %}
+
{%- if server.database.engine == "postgresql" %}
artifactory_lib_postresql:
@@ -27,6 +40,18 @@
- watch_in:
- service: artifactory_service
+{%- elif server.database.engine == "mysql" %}
+
+artifactory_lib_mysql:
+ file.managed:
+ - name: /var/opt/jfrog/artifactory/tomcat/lib/mysql.jar
+ - source: {{ server.lib.mysql }}
+ - skip_verify: True
+ - require:
+ - pkg: artifactory_packages
+ - watch_in:
+ - service: artifactory_service
+
{%- endif %}
artifactory_service: