-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
74 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,52 @@ | ||
export default (grunt) => { | ||
const version = grunt.config.get('pkg.version'); | ||
const productionPath = `kibana/${version.match(/\d\.\d/)[0]}`; | ||
const stagingPath = `kibana/staging/${version.match(/\d\.\d\.\d/)[0]}-XXXXXXX/repos/${version.match(/\d\./)[0]}x`; | ||
const rpmFolder = 'centos'; | ||
const debFolder = 'debian'; | ||
const VERSION = grunt.config.get('pkg.version'); | ||
|
||
const FOLDER_STAGING = `kibana/staging/${VERSION.match(/\d\.\d\.\d/)[0]}-XXXXXXX/repos/${VERSION.match(/\d\./)[0]}x`; | ||
const FOLDER_PRODUCTION = `kibana/${VERSION.match(/\d\.\d/)[0]}`; | ||
|
||
const FOLDERNAME_DEB = 'debian'; | ||
const FOLDERNAME_RPM = 'centos'; | ||
|
||
const PREFIX_STAGING_DEB = `${FOLDER_STAGING}/${FOLDERNAME_DEB}`; | ||
const PREFIX_STAGING_RPM = `${FOLDER_STAGING}/${FOLDERNAME_RPM}`; | ||
const PREFIX_PRODUCTION_DEB = `${FOLDER_PRODUCTION}/${FOLDERNAME_DEB}`; | ||
const PREFIX_PRODUCTION_RPM = `${FOLDER_PRODUCTION}/${FOLDERNAME_RPM}`; | ||
|
||
const FOLDER_CONFIG = '/etc/kibana'; | ||
const FOLDER_LOGS = '/var/log/kibana'; | ||
const FOLDER_HOME = '/usr/share/kibana'; | ||
|
||
const FILE_KIBANA_CONF = `${FOLDER_CONFIG}/kibana.yml`; | ||
const FILE_KIBANA_BINARY = `${FOLDER_HOME}/bin/kibana`; | ||
|
||
return { | ||
staging: { | ||
bucket: 'download.elasticsearch.org', | ||
debPrefix: `${stagingPath}/${debFolder}`, | ||
rpmPrefix: `${stagingPath}/${rpmFolder}` | ||
publish: { | ||
staging: { | ||
bucket: 'download.elasticsearch.org', | ||
debPrefix: PREFIX_STAGING_DEB, | ||
rpmPrefix: PREFIX_STAGING_RPM | ||
}, | ||
production: { | ||
bucket: 'packages.elasticsearch.org', | ||
debPrefix: PREFIX_STAGING_DEB, | ||
rpmPrefix: PREFIX_STAGING_RPM | ||
} | ||
}, | ||
production: { | ||
bucket: 'packages.elasticsearch.org', | ||
debPrefix: `${productionPath}/${debFolder}`, | ||
rpmPrefix: `${productionPath}/${rpmFolder}` | ||
user: 'kibana', | ||
group: 'kibana', | ||
name: 'kibana', | ||
description: 'Explore\ and\ visualize\ your\ Elasticsearch\ data', | ||
site: 'https://www.elastic.co', | ||
vendor: 'Elasticsearch,\ Inc.', | ||
maintainer: 'Kibana Team\ \<info@elastic.co\>', | ||
license: 'Apache\ 2.0', | ||
version: VERSION, | ||
path: { | ||
conf: FOLDER_CONFIG, | ||
logs: FOLDER_LOGS, | ||
home: FOLDER_HOME, | ||
kibanaBin: FILE_KIBANA_BINARY, | ||
kibanaConfig: FILE_KIBANA_CONF | ||
} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters