mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 07:06:56 -06:00
ARM template bug fixes and improvements (#49)
* ARM templates - nginx.config file, $ sign escaped in the config * ARM templates - storage size increase for the Postgresql (Xray and Artifactory), Callhome data - different callhome file will indicate, if VM image is used with the template
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
},
|
||||
"skuSizeMB": {
|
||||
"type": "int",
|
||||
"defaultValue": 5120
|
||||
"defaultValue": 102400
|
||||
},
|
||||
"skuTier": {
|
||||
"type": "string",
|
||||
|
||||
@@ -68,9 +68,9 @@ cat <<EOF >/etc/nginx/nginx.conf
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
default_type application/octet-stream;
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
log_format main '\$remote_addr - \$remote_user [\$time_local] "\$request" '
|
||||
'\$status \$body_bytes_sent "\$http_referer" '
|
||||
'"\$http_user_agent" "\$http_x_forwarded_for"';
|
||||
access_log /var/log/nginx/access.log main;
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
},
|
||||
"skuSizeMB": {
|
||||
"type": "int",
|
||||
"defaultValue": 5120
|
||||
"defaultValue": 102400
|
||||
},
|
||||
"skuTier": {
|
||||
"type": "string",
|
||||
|
||||
@@ -68,9 +68,9 @@ cat <<EOF >/etc/nginx/nginx.conf
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
default_type application/octet-stream;
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
log_format main '\$remote_addr - \$remote_user [\$time_local] "\$request" '
|
||||
'\$status \$body_bytes_sent "\$http_referer" '
|
||||
'"\$http_user_agent" "\$http_x_forwarded_for"';
|
||||
access_log /var/log/nginx/access.log main;
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
@@ -256,6 +256,17 @@ cat /tmp/temp.key | sed 's/KEY----- /&\n/' | sed 's/ -----END/\n-----END/' | awk
|
||||
rm /tmp/temp.key
|
||||
fi
|
||||
|
||||
cat <<EOF >/var/opt/jfrog/artifactory/etc/info/installer-info.json
|
||||
{
|
||||
"productId": "ARM_artifactory-pro-template/1.0.0",
|
||||
"features": [
|
||||
{
|
||||
"featureId": "Partner/ACC-007221"
|
||||
}
|
||||
]
|
||||
}
|
||||
EOF
|
||||
|
||||
chown artifactory:artifactory -R /var/opt/jfrog/artifactory/* && chown artifactory:artifactory -R /var/opt/jfrog/artifactory/etc/security && chown artifactory:artifactory -R /var/opt/jfrog/artifactory/etc/*
|
||||
|
||||
# start Artifactory
|
||||
|
||||
@@ -25,7 +25,7 @@ apt-get -y install jfrog-artifactory-pro=${ARTIFACTORY_VERSION} >> /tmp/install-
|
||||
mkdir -p /var/opt/jfrog/artifactory/etc/info
|
||||
cat <<EOF >/var/opt/jfrog/artifactory/etc/info/installer-info.json
|
||||
{
|
||||
"productId": "ARM_artifactory-pro/1.0.0",
|
||||
"productId": "ARM_artifactory-pro-vm/1.0.0",
|
||||
"features": [
|
||||
{
|
||||
"featureId": "Partner/ACC-007221"
|
||||
|
||||
Reference in New Issue
Block a user