Skip to content

Commit

Permalink
Revert "[deb/rpm] Generate os package specific kibana.yml (#98213) (#… (
Browse files Browse the repository at this point in the history
#111966)

This reverts commit 5d0065f.
  • Loading branch information
jbudz authored Sep 14, 2021
1 parent 245d207 commit dc8f435
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 65 deletions.
4 changes: 0 additions & 4 deletions src/dev/build/build_distributables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@ export async function buildDistributables(log: ToolingLog, options: BuildOptions
// control w/ --skip-archives
await run(Tasks.CreateArchives);
}

if (options.createDebPackage || options.createRpmPackage) {
await run(Tasks.CreatePackageConfig);
}
if (options.createDebPackage) {
// control w/ --deb or --skip-os-packages
await run(Tasks.CreateDebPackage);
Expand Down
50 changes: 0 additions & 50 deletions src/dev/build/tasks/os_packages/create_os_package_kibana_yml.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/dev/build/tasks/os_packages/create_os_package_tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@
import { Task } from '../../lib';
import { runFpm } from './run_fpm';
import { runDockerGenerator } from './docker_generator';
import { createOSPackageKibanaYML } from './create_os_package_kibana_yml';

export const CreatePackageConfig: Task = {
description: 'Creating OS package kibana.yml',

async run(config, log, build) {
await createOSPackageKibanaYML(config, build);
},
};

export const CreateDebPackage: Task = {
description: 'Creating deb package',
Expand Down
1 change: 0 additions & 1 deletion src/dev/build/tasks/os_packages/run_fpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export async function runFpm(
`${resolveWithTrailingSlash(fromBuild('.'))}=/usr/share/kibana/`,

// copy the config directory to /etc/kibana
`${config.resolveFromRepo('build/os_packages/config/kibana.yml')}=/etc/kibana/kibana.yml`,
`${resolveWithTrailingSlash(fromBuild('config'))}=/etc/kibana/`,

// copy the data directory at /var/lib/kibana
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Environment=KBN_PATH_CONF=/etc/kibana
EnvironmentFile=-/etc/default/kibana
EnvironmentFile=-/etc/sysconfig/kibana

ExecStart=/usr/share/kibana/bin/kibana
ExecStart=/usr/share/kibana/bin/kibana --logging.dest="/var/log/kibana/kibana.log" --pid.file="/run/kibana/kibana.pid"

Restart=on-failure
RestartSec=3
Expand Down

0 comments on commit dc8f435

Please sign in to comment.