CreateImageWizard: warning for unavailable on-prem OpenSCAP
Add a warning if the required packages for the OpenSCAP step are not available.
This commit is contained in:
parent
9d883a8dfc
commit
c38e821ae5
3 changed files with 93 additions and 1 deletions
|
|
@ -0,0 +1,48 @@
|
|||
import React from 'react';
|
||||
|
||||
import {
|
||||
Alert,
|
||||
ClipboardCopy,
|
||||
CodeBlock,
|
||||
CodeBlockCode,
|
||||
Form,
|
||||
FormGroup,
|
||||
Title,
|
||||
} from '@patternfly/react-core';
|
||||
|
||||
const OscapOnPremWarning = () => {
|
||||
return (
|
||||
<Form>
|
||||
<Title headingLevel="h1" size="xl">
|
||||
OpenSCAP profile
|
||||
</Title>
|
||||
<FormGroup>
|
||||
<Alert
|
||||
style={{
|
||||
margin:
|
||||
'0 var(--pf-v5-c-toolbar__content--PaddingRight) 0 var(--pf-v5-c-toolbar__content--PaddingLeft)',
|
||||
}}
|
||||
isInline
|
||||
variant="warning"
|
||||
title="The packages required to apply security profiles by using OpenSCAP are missing on this host. Install them with the following command"
|
||||
ouiaId="oscap-unavailable-alert"
|
||||
/>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
<CodeBlock>
|
||||
<CodeBlockCode>
|
||||
<ClipboardCopy
|
||||
hoverTip="Copy"
|
||||
clickTip="Copied"
|
||||
variant="inline-compact"
|
||||
>
|
||||
sudo dnf install openscap-scanner scap-security-guide
|
||||
</ClipboardCopy>
|
||||
</CodeBlockCode>
|
||||
</CodeBlock>
|
||||
</FormGroup>
|
||||
</Form>
|
||||
);
|
||||
};
|
||||
|
||||
export default OscapOnPremWarning;
|
||||
Loading…
Add table
Add a link
Reference in a new issue