Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--------- **Commit 1:** [build] Commit install/remove scripts instead of generating, stop service before removing * Original sha: 08c9897 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-03-28T02:06:16Z **Commit 2:** [build] template user in install/remove scripts * Original sha: 5387167 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-05-02T15:57:16Z **Commit 3:** [build] Run as group kibana * Original sha: d9a84b2 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-05-02T16:27:58Z **Commit 4:** [build] Recursive chown optimize folder * Original sha: 07618c3 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-05-03T15:12:04Z **Commit 5:** [build] Try service kibana stop before init script * Original sha: 83c5802 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-05-03T15:20:16Z **Commit 6:** [build] Attempt to stop service pre-install * Original sha: 6c6e4d3 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-05-09T19:40:05Z **Commit 7:** [build] Fail on errors * Original sha: f9033a1 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-05-10T15:47:07Z **Commit 8:** [build] Cleanup postrm * Original sha: bab73b8 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-05-10T18:16:51Z **Commit 9:** [build] Add comment in postrm explaining empty cases * Original sha: 4336f2b * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-05-13T15:03:22Z **Commit 10:** [build] move install to /usr/share, config to /etc/kibana * Original sha: 6d293af * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-05-25T14:12:08Z **Commit 11:** [build] consolidate package config * Original sha: 8f0be48 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-05-25T19:21:36Z **Commit 12:** [build] Cleanup packages task * Original sha: db5ac1e * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-05-25T20:15:09Z **Commit 13:** [build] Style cleanup * Original sha: 6189c19 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-05-25T20:19:16Z **Commit 14:** [build] template chown optimize dir * Original sha: 9213e61 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-05-25T21:27:20Z **Commit 15:** [build] Add name and description to init scripts * Original sha: e1cb593 * Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-06-07T19:48:57Z
- Loading branch information
Showing
5 changed files
with
123 additions
and
73 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
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