diff --git a/x-pack/plugins/beats_management/public/pages/main/enroll_fragment.tsx b/x-pack/plugins/beats_management/public/pages/main/enroll_fragment.tsx index 2cc249127e5b14..8de416675325d8 100644 --- a/x-pack/plugins/beats_management/public/pages/main/enroll_fragment.tsx +++ b/x-pack/plugins/beats_management/public/pages/main/enroll_fragment.tsx @@ -140,7 +140,7 @@ export class EnrollBeat extends React.Component { -

Select your operating system:

+

Select your platform:

@@ -149,7 +149,7 @@ export class EnrollBeat extends React.Component { options={[ { value: `sudo ${this.state.beatType}`, - label: 'DEB', + label: 'DEB / RPM', }, { value: `PS C:\\Program Files\\${capitalize(this.state.beatType)}> ${ @@ -161,10 +161,6 @@ export class EnrollBeat extends React.Component { value: `./${this.state.beatType}`, label: 'MacOS', }, - { - value: `sudo ${this.state.beatType}`, - label: 'RPM', - }, ]} onChange={(e: any) => this.setState({ command: e.target.value })} fullWidth={true} diff --git a/x-pack/plugins/beats_management/server/lib/adapters/framework/kibana_framework_adapter.ts b/x-pack/plugins/beats_management/server/lib/adapters/framework/kibana_framework_adapter.ts index a819eaa37b35d7..815b3696ef1402 100644 --- a/x-pack/plugins/beats_management/server/lib/adapters/framework/kibana_framework_adapter.ts +++ b/x-pack/plugins/beats_management/server/lib/adapters/framework/kibana_framework_adapter.ts @@ -115,25 +115,13 @@ export class KibanaBackendFrameworkAdapter implements BackendFrameworkAdapter { }; } - const VALID_LICENSE_MODES = ['trial', 'gold', 'platinum']; + const VALID_LICENSE_MODES = ['trial', 'standard', 'gold', 'platinum']; const isLicenseValid = xPackInfo.license.isOneOf(VALID_LICENSE_MODES); const isLicenseActive = xPackInfo.license.isActive(); const licenseType = xPackInfo.license.getType(); const isSecurityEnabled = xPackInfo.feature('security').isEnabled(); - // Security is not enabled in ES - if (!isSecurityEnabled) { - const message = - 'Security must be enabled in order to use Beats centeral management features.' + - ' Please set xpack.security.enabled: true in your elasticsearch.yml.'; - return { - securityEnabled: false, - licenseValid: true, - message, - }; - } - // License is not valid if (!isLicenseValid) { return { @@ -152,6 +140,18 @@ export class KibanaBackendFrameworkAdapter implements BackendFrameworkAdapter { }; } + // Security is not enabled in ES + if (!isSecurityEnabled) { + const message = + 'Security must be enabled in order to use Beats centeral management features.' + + ' Please set xpack.security.enabled: true in your elasticsearch.yml.'; + return { + securityEnabled: false, + licenseValid: true, + message, + }; + } + // License is valid and active return { securityEnabled: true,